Category Archives: Fortran MCQs

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

A. 4 B. 7 C. 32 D. 15 Ans: D

Posted in Fortran MCQs | Leave a comment

Which of the following statements is a valid way to open the file test.data and associate it with unit 10? | Fortran Questions

A. open(10,test.data) B. open(10,’test.data’) C. open(10, file= test.data ) D. open(10,file=’test.data’) Ans: D

Posted in Fortran MCQs | Leave a comment

The statement “read(10,end=100) mm ” will: | Fortran Questions

A. branch to the statement with label 100 when the end of the file is reached on unit 10 B. branch to the statement label with 100 when the struing “end” is read from unit 10 C. branch to the … Continue reading

Posted in Fortran MCQs | Leave a comment

A FORTRAN WHERE statement: | Fortran Questions

A. Provides the current line number in the input file being processed B. Returns the name of the current Subroutine or Function C. Conditionally executes one or more Fortran 90 vector (array) statements D. Provides the current cursor position on … Continue reading

Posted in Fortran MCQs | Leave a comment

Which of the following is an executable statement ( takes action when “a.out” is executeed)? | Fortran Questions

A. INTRINSIC B. DIMENSION C. EXTERNAL D. CLOSE Ans: D

Posted in Fortran MCQs | Leave a comment

Which of the following is an “executable” statement (takes an action when “a.out” is executed)? | Fortran Questions

A. ALLOCATE B. DIMENSION C. EXTERNAL D. PARAMETER Ans: A

Posted in Fortran MCQs | Leave a comment

What is the first number in the following list that can not be represented with a FORTRAN REAL*8 ( Double Precision ) variable? | Fortran Questions

A. -3.0*1050 B. 3.0*101000 C. 3.0*10-80 D. 3.0*10100 Ans: B

Posted in Fortran MCQs | Leave a comment

What is the first number in the following list that can not be represented with a Fortran INTEGER*4 ( the default setting on the Hammond machines )data type? | Fortran Questions

A. 0 B. 1025 C. 2,000,000 D. 2,000,000,000,000 Ans: D

Posted in Fortran MCQs | Leave a comment

A real number established with “selected_real_kind(6,30)” uses how many bits? | Fortran Questions

A. 4 B. 6 C. 30 D. 32 Ans: D

Posted in Fortran MCQs | Leave a comment

A number stored in Double Precision Floating Point (REAL*8) format can have at most approximately how many decimal digits of precision? | Fortran Questions

A. 3 B. 7 C. 31 D. 15 Ans: D

Posted in Fortran MCQs | Leave a comment