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

Basic Syntax

4 topics
1.

Comments

10 questions
2.

Data types and declarations

10 questions
3.

Identifiers and keywords

10 questions
4.

Program structure

10 questions

Control Structures

3 topics

Data Types and Variables

4 topics

Subprograms

4 topics

Input and Output

4 topics

Error Handling

3 topics

Advanced Features

4 topics

Best Practices

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

Basic Syntax

4 topics
1.

Comments

10 questions
2.

Data types and declarations

10 questions
3.

Identifiers and keywords

10 questions
4.

Program structure

10 questions

Control Structures

3 topics

Data Types and Variables

4 topics

Subprograms

4 topics

Input and Output

4 topics

Error Handling

3 topics

Advanced Features

4 topics

Best Practices

4 topics