Fortran multiple choice questions and answers on Fortran MCQ questions quiz on Fortran objective questions pdf test paper

Fortran MCQ Questions and Answers Quiz

1. The statement read(10,end=100) mm will:

  1. branch to the statement with label 100 when the end of the file is reached on unit 10
  2. branch to the statement label with 100 when the struing end is read from unit 10
  3. branch to the end of the program when a value of 100 is read from unit 10
  4. Set the variable mm = 100 when the end of the file is reached

2. Which of the following statements is a valid way to open the file and associate it with unit 10?

  1. open(10,
  2. open(10,
  3. open(10, file= )
  4. open(10,

3. On the Hammond machines, a single percision floating point (REAL*4) number uses how many bits of memory?

  1. 4
  2. 7
  3. 32
  4. 15

4. What are the basic datatypes in Fortran?

  1. Integer, Real, Double Precision, Character
  2. Integer, Real, Character, Logical
  3. INteger, Real, Complex, Character

5. In which column does the code start in Fortran 77 fixed format?

  1. 6
  2. 9
  3. 7

6. What signals a comment in Fortran 95?

  1. An exclamationmark ! anywhere on the line
  2. A C in column one
  3. An asterisk * in column six?

7. How can we continue source code from one line to the next in Fortran 95?#by an asterisk * in column 6

  1. An ampersand & at the end of a line
  2. By using brackets

8. What is the purpose of a number in column 2 to 5 in Fortran 77 fixed format

  1. A jump label or format label
  2. Just a jump label
  3. Just a format label

9. Which of the following is not a valid property of a PARAMETER statement?

  1. Can combine other parameters with FORTRAN arithmetic operators to compute the value of a new parameter
  2. Parameters can be set anywhere in a program
  3. Integer parameters can be used to set array dimensions
  4. Parameters can be used as bounds on do loops.

10. When using vi, which of the following commands will delete a full line?

  1. d
  2. dd
  3. dl
  4. r

MCQ Multiple Choice Questions and Answers on Fortran

Fortran Question and Answer