Fortran(Engineering > Computer Science And Engineering ) Questions and Answers
Question 1. Which of the following is invalid statement in FORTRAN
P + Q +
DO 10001 = 1,5
Dimension X (30,20)
Continue
Explanation:-
Answer: Option A. -> P + Q +
Question 2. For the following FORTRAN operations give the rank from fastest to slowest in terms of computer time required
x*0.5
x+0.5
x**0.5
sqrt(x)
Explanation:-
Answer: Option C. -> x**0.5
Question 3. Language used to solve complex mathematical computations is termed as
FORTRAN
COBOL
Pascal
Ada
Explanation:-
Answer: Option A. -> FORTRAN
Question 4. On the Hammond machines, a single percision floating point (REAL*4) number uses how many bits of memory?
4
7
15
32
Explanation:-
Answer: Option D. -> 32
Question 5. For the following FORTRAN operations give the rank from fastest to slowest in terms of computer time required: 1)x*0.5 2)x+0.5 3)x**0.5 4)sqrt(x)
1-2-3-4
1-2-4-3
2-1-3-4
2-1-4-3
Explanation:-
Answer: Option D. -> 2-1-4-3
Question 6. FORTRAN was developed by
Apple
Google
IBM
Black berry
Explanation:-
Answer: Option C. -> IBM
Question 7. Which of the following is not a valid property of a PARAMETER statement?
Can combine other parameters with FORTRAN arithmetic operators to compute the value of a new parameter
Parameters can be set anywhere in a program
Integer parameters can be used to set array dimensions
Parameters can be used as bounds on do loops
Explanation:-
Answer: Option B. -> Parameters can be set anywhere in a program
Question 8. A FORTRAN WHERE statement:
Provides the current line number in the input file being processed
Returns the name of the current Subroutine or Function
Conditionally executes one or more Fortran 90 vector (array) statements
Provides the current cursor position on the terminal screen
Explanation:-
Answer: Option C. -> Conditionally executes one or more Fortran 90 vector (array) statements
Question 9. 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?
0
1025
2,000,000
2,000,000,000,000
Explanation:-
Answer: Option D. -> 2,000,000,000,000
Question 10. Which of the following statements is a valid way to open the file test.data and associate it with unit 10?