Fortran Language

297 questions in the bank
Are you ready to take quiz?
Explore more
Logo
About the Quiz

Quiz will ask 20 randomly selected questions with allotted time of . You can take the quiz more than once. Once you submit the quiz, you can review how you have done, the correct the answers for each questions and the explanation for the correct the answer.

Quiz Topics

8 Modules

Best Practices

4 topics
1.

Code readability and documentation

9 questions
2.

Performance optimization techniques

10 questions
3.

Testing and debugging strategies

10 questions
4.

Version control and collaboration

9 questions

Advanced Features

4 topics

Error Handling

3 topics

Input and Output

4 topics

Subprograms

4 topics

Data Types and Variables

4 topics

Control Structures

3 topics

Basic Syntax

4 topics
Sample questions

Which of the following statements correctly declares a variable in Fortran?

INTEGER :: a

REAL a

CHARACTER(len=10) :: name

DOUBLE PRECISION a, b

What is the purpose of the 'PROGRAM' statement in Fortran?

It defines the start of a subroutine.

It marks the beginning of the main program.

It declares a module.

It specifies the end of the program.

Which of the following is a valid way to comment in Fortran?

! This is a comment

C This is a comment

  • This is a comment

// This is a comment

What is the correct way to end a Fortran program?

END PROGRAM

END

STOP

END MAIN

Which of the following statements is true regarding Fortran's implicit typing?

Variables starting with letters I-N are automatically INTEGER.

All variables must be explicitly declared.

Implicit typing can be disabled using 'IMPLICIT NONE'.

Variables starting with letters A-H are automatically REAL.

Quiz Topics

8 Modules

Best Practices

4 topics
1.

Code readability and documentation

9 questions
2.

Performance optimization techniques

10 questions
3.

Testing and debugging strategies

10 questions
4.

Version control and collaboration

9 questions

Advanced Features

4 topics

Error Handling

3 topics

Input and Output

4 topics

Subprograms

4 topics

Data Types and Variables

4 topics

Control Structures

3 topics

Basic Syntax

4 topics