Fortran MCQ
1. In a FORTRAN program x=4.5, y=3.0, and w=1.5, What is the value of z if: z = x+w/y+1
Note: This Question is unanswered, help us to find answer for this one
2. Which of the following statements is a valid way to open the file test.data and associate it with unit 10?
Answer
Correct Answer:
Open(10,file='test.data')
Note: This Question is unanswered, help us to find answer for this one
3. A FORTRAN WHERE statement:
Answer
Correct Answer:
Conditionally executes one or more Fortran 90 vector (array) statements
Note: This Question is unanswered, help us to find answer for this one
4. A real number established with "selected_real_kind(6,30)" uses how many bits?
Note: This Question is unanswered, help us to find answer for this one
5. Which of the following is an executable statement ( takes action when "a.out" is executeed)?
Note: This Question is unanswered, help us to find answer for this one
6. In a FORTRAN program x=1.0, y=2.0 and w=3.0. What is the value of z if: z=2.0(x(y+3.0)+w)
Answer
Correct Answer:
Not determined due to a FORTRAN syntax error
Note: This Question is unanswered, help us to find answer for this one
7. Which of the following is not a valid property of a PARAMETER statement?
Answer
Correct Answer:
Parameters can be set anywhere in a program
Note: This Question is unanswered, help us to find answer for this one
8. The statement "read(10,end=100) mm " will:
Answer
Correct Answer:
Branch to the statement with label 100 when the end of the file is reached on unit 10
Note: This Question is unanswered, help us to find answer for this one
9. In a FORTRAN program I have set x=1.5,i=3, and j=2. What is the value of y if:
Note: This Question is unanswered, help us to find answer for this one
10. A number stored in Double Precision Floating Point (REAL*8) format can have at most approximately how many decimal digits of precision?
Note: This Question is unanswered, help us to find answer for this one
Programming Languages MCQs | Topic-wise