Fortran MCQ Questions and Answers Quiz

21. On the Hammond machines, a single precision floating point (REAL*4) number uses how many bits of memory?

  1. 4
  2. 7
  3. 15
  4. 32

22. A number stored in Double Precision Floating Point (REAL*8) format can have at most approximately how many decimal digits of precision?

  1. 3
  2. 7
  3. 15
  4. 32

23. A real number established with selected_real_kind(6,30) uses how many bits?

  1. 16
  2. 30
  3. 32
  4. 48

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

  1. 1025
  2. 2,000,000
  3. 2,000,000,000,000

25. What is the first number in the following list that can not be represented with a FORTRAN REAL*8 (Double Precision) variable?

  1. -3.0*1050
  2. 3.0*101000
  3. 3.0*10-80
  4. 3.0*10100

26. Which of the following is an executable statement (takes an action when a.out is executed)?

  1. ALLOCATE
  2. DIMENSION
  3. PARAMETER
  4. EXTERNAL

27. Which of the following is an executable statement (takes action when a.out is executed)?

  1. CLOSE
  2. EXTERNAL
  3. DIMENSION
  4. INTRINSIC

28. A FORTRAN WHERE statement:

  1. Provides the current line number in the input file being processed
  2. Returns the name of the current Subroutine or Function
  3. Conditionally executes one or more Fortran 90 vector (array) statements
  4. Provides the current cursor position on the terminal screen
Tags

MCQ Multiple Choice Questions and Answers on Fortran

Fortran Trivia Questions and Answers PDF

Fortran Question and Answer

Spreading Knowledge Across the World

USA - United States of America  Canada  United Kingdom  Australia  New Zealand  South America  Brazil  Portugal  Netherland  South Africa  Ethiopia  Zambia  Singapore  Malaysia  India  China  UAE - Saudi Arabia  Qatar  Oman  Kuwait  Bahrain  Dubai  Israil  England  Scotland  Norway  Ireland  Denmark  France  Spain  Poland  and many more....