Fortran Multiple Choice Questions and Answers for Practice

Here is the list of Fortran multiple choice questions and answers available online and pdf download format to practice for exams.

Fortran Questions with Answers

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

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

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)

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)

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

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

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

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?

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

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

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

28. A FORTRAN WHERE statement:

Tags

Multiple Choice Questions and Answers on Fortran

Fortran Multiple Choice Questions and Answers

Fortran Trivia Quiz

Fortran Question and Answer PDF Online


Spreading Knowledge Across the World

United States, United Kingdom, India, Nigeria, Philippines, Pakistan, Nepal, Singapore, Indonesia, Bangladesh, Ghana, United Arab Emirates, Kenya, Canada, Malaysia, Australia, Iran, South Africa, Uganda, France, Ireland, Egypt, Tanzania, Ethiopia, Thailand, Sri Lanka, Cameroon, Hong Kong, Spain, Vietnam, New Zealand, Japan, Brazil, Saudi Arabia, Zambia, Czechia, Italy, Russia, Myanmar (Burma), Netherlands, Germany, Romania, Mexico, Rwanda, Sierra Leone, Turkey, Zimbabwe, Poland, Iraq, Cyprus, Algeria, Liberia, Greece, Jamaica, Malawi, Qatar, Portugal, South Korea, Argentina, Colombia, Morocco, Peru, Kuwait, Lithuania, Finland, Somalia, Israel, Bulgaria, Chile, Hungary, Trinidad & Tobago, Uzbekistan, Ukraine, Sweden, Kazakhstan, Norway, Macedonia, Benin, Switzerland, Oman, Botswana, Belgium, Ecuador, Slovakia, China, Croatia, Brunei, Serbia, Papua New Guinea, Bahrain, Guyana, Denmark, Lesotho, Lebanon, Jordan, Azerbaijan, Latvia, Cambodia, Namibia, Mauritius, Austria, Mongolia, Albania, Libya, Gambia, Taiwan, Bhutan, Venezuela, Dominican Republic, Tunisia, Luxembourg, Bosnia & Herzegovina, Guatemala, Solomon Islands, Guam, Costa Rica, Yemen, Bolivia, and many more ...