Fortran MCQ
Fortran MCQ
com
Fortran Online Test
A. System supported
B. Programmer supported
C. Case Sensitive
D. Source supported
A. Colon
B. Comma
C. Blank space
D. Semicolon
Q3. A program that reads the source code and converts it to a form usable by the
computer:
A. Compiler
B. Assembler
C. Linker
D. Interpreter
A. Celsius real
B. real :: Celsius
C. real : Celsius
D. real Celsius
A. make
B. select
C. change
D. kind
Q6. For the following FORTRAN operations give the rank from fastest to slowest in
terms of computer time required:
A. x+0.5
B. x**0.5
C. sqrt(x)
D. x*0.5
Q7. On the Hammond machines, a single percision floating point (REAL*4) number
uses how many bits of memory?
A. 8
B. 15
C. 32
D. 47
A. FORTRAN
B. Pascal
C. Ada
D. COBOL
Q9. 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)
A. 1-2-4-3
B. 2-1-4-3
C. 1-2-3-4
D. 2-1-3-4
A. DO 10001 = 1,5
B. Continue
C. P + Q +
D. Dimension X (30,20)
A. Google
B. IBM
C. Apple
D. Black berry
Q13. 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?
A. 2,000,000,000,000
B. 1025
C. 2,000,000
Q15. Which of the following statements is a valid way to open the file test.data and
associate it with unit 10?
A. open(10,’test.data’)
B. open(10,file=’test.data’)
C. open(10,test.data)
D. open(10, file= test.data )
Q16. In a FORTRAN program, I have set x=2.0, a=2.0 and b=4.0. What is the value of
y if y = a*x+b**2/x?
A. 8.0
B. 16.0
C. 64.0
D. 12.0
Q17. The command ” man ls > more ” will:
A. Provide help on the command “ls” viewed with the utility “more”
B. Result in a system message: “Command not found”
C. Provide help on the command “ls” as text in a file called “more”
D. Provide help on commands alphabetically between ls and more
Q18. When using vi, which of the following commands will delete a full line?
A. dd
B. r
C. x
D. dl
Q19. After compiling the FORTRAN statement: y = c/d + a*x**2-5 Which operation is
performed first by the computer?
A. +
B. /
C. *
D. **
Q20. not determined due to a Fortran Syntax error 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)
A. 12.0
B. not determined due to a FORTRAN syntax error
C. 14.0
D. 15.0
Q22. How can we continue source code from one line to the next in Fortran 95?
A. A C in column one
B. An exclamation mark ! anywhere on the line
C. An asterisk * in column six?
D. None of the above
Q25. Which of the following is an executable statement ( takes action when “a.out” is
executed)?
A. DIMENSION
B. CLOSE
C. EXTERNAL
D. INTRINSIC
Q26. What is the first number in the following list that can not be represented with a
FORTRAN REAL*8 ( Double Precision ) variable?
A. 3.0*101000
B. 3.0*10-80
C. 3.0*10100
D. 3.0*1050
A. DO 88 L = 3, K, 2
B. DO 77 NX= 1,27
C. DO 71 X = 1, 10, 2
D. DO 50 IPQ = 3, 27,2.
A. 5.1 x 106
B. 0.51 x 106
C. 5 x 106.
D. 51 x 106
A. 50 and 16
B. 50 and 64
C. 50 and 80.
D. 50 and 32