Fortran Quiz Questions and Answers Pdf - 1

Question: 1

In a two dimensional array the second subscript refers to:

(A) The place position

(B) The row position

(C) The column position

(D) Both A and B

Ans: C

The column position

Question: 2

Array subscripts may be

(A) Integer constants

(B) Integer variables

(C) Integer expressions consisting of constants and variables

(D) All of the above

Ans: D

All of the above

Question: 3

When referencing a Library Function or an Arithmetic Statement Function

(A) Formal parameters are used

(B) Actual parameters are used

(C) Sometimes no parameters of either type are used

(D) Both (a) and (c)

Ans: B

Actual parameters are used

Question: 4

In order to refer to the same memory location by several variable names one would use

(A) A EQUIVALENCE statement

(B) A Replacement statement

(C) A DIMENSION statement

(D) A COMMON statement

Ans: A

A EQUIVALENCE statement

Question: 5

With respect to Library Functions, which of the following statements are incorrect

(A) The specific Functions which are available differ from compiler to compiler

(B) The mode (real or integer) of the results depends upon the name of the Library Function

(C) They are supplied as part of the FORTRAN compiler

(D) They return several values to the statement in which they are referenced

Ans: D

They return several values to the statement in which they are referenced

Related Questions