Home / CSE MCQs / FORTRAN ::

CSE MCQs :: FORTRAN

  1. For the following FORTRAN operations give the rank from fastest to slowest in terms of computer time required
  2. A.
    x*0.5
    B.
    x+0.5
    C.
    x**0.5
    D.
    sqrt(x)

  3. On the Hammond machines, a single percision floating point (REAL*4) number uses how many bits of memory?
  4. A.
    4
    B.
    7
    C.
    15
    D.
    32

  5. Language used to solve complex mathematical computations is termed as
  6. A.
    FORTRAN
    B.
    COBOL
    C.
    Pascal
    D.
    Ada

  7. 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)
  8. A.
    1-2-3-4
    B.
    1-2-4-3
    C.
    2-1-3-4
    D.
    2-1-4-3

  9. Which of the following is invalid statement in FORTRAN
  10. A.
    P + Q +
    B.
    DO 10001 = 1,5
    C.
    Dimension X (30,20)
    D.
    Continue

  11. FORTRAN was developed by
  12. A.
    Apple
    B.
    Google
    C.
    IBM
    D.
    Black berry

  13. Which of the following is not a valid property of a PARAMETER statement?
  14. A.
    Can combine other parameters with FORTRAN arithmetic operators to compute the value of a new parameter
    B.
    Parameters can be set anywhere in a program
    C.
    Integer parameters can be used to set array dimensions
    D.
    Parameters can be used as bounds on do loops

  15. A FORTRAN WHERE statement:
  16. 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 the terminal screen

  17. Which of the following statements is a valid way to open the file test.data and associate it with unit 10?
  18. A.
    open(10,test.data)
    B.
    open(10,'test.data')
    C.
    open(10, file= test.data )
    D.
    open(10,file='test.data')