11. The command man ls > more will:

- Provide help on the command ls as text in a file called more
- Provide help on the command ls viewed with the utility more
- Provide help on commands alphabetically between ls and more
- Provide a more detailed help on the command ls than is usually given

12. 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 paramete
- 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

13. 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)

14. 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 ?

- 8.0
- 12.0
- 16.0
- 64.0

15. In a FORTRAN program I have set x=1.5,i=3, and j=2. What is the value of y if:

- 3.0
- 3.5
- 4.0
- 4.5

16. In a FORTRAN program I have set x=1.5,i=3, and j=2. What is the value of y if:

- 3.0
- 3.5
- 4.0
- 4.5

17. 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

- 1.5
- 3.0
- 4.5
- 6.0

18. 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)

- 12.0
- 16.0
- 18.0
- not determined due to a FORTRAN syntax error

19. After compiling the FORTRAN statement: y = c/d + a*x**2-5 Which operation is performed first by the computer?

- /
- +
- *
- **

20. 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

MCQ Multiple Choice Questions and Answers on Fortran

Fortran Question and Answer