Computer Fundamentals Multiple choice Questions and Answers on FORTRAN Basics for Freshers

1. Which is interpreted language?

a) C++
b) C
c) MATLAB
d) Fortran
Answer: c

Explanation: MATLAB is an interpreted language. All the other languages are compiled languages. In the case of Interpreted language, the translation to machine-language is performed incrementally at run-time.
2. In compiled language, the translation to machine-language is performed incrementally at run-time.

a) True
b) False
Answer: b

Explanation: The statement is false. The translation is performed once, then executable file is run as frequently as needed without further translation.
3. The first widely-used high level language developed in 1957.

a) C
b) Java
c) Fortran
d) Cobol
Answer: c

Explanation: Fortran which stands for Formula Translation was the first widely-used high level language. It was developed by IBM for scientific applications. The program was entered as punch cards.
4. A text file that contains our program is called as __________

a) Exe file
b) Doc file
c) Obj file
d) Source file
Answer: d

Explanation: A file that contains the code or the main program is called as the source file. Source code must be processed by a compiler to create an executable file.
5. First statement in a fortran code is _________

a) include statement
b) import statement
c) program statement
d) @data statement
Answer: c

Explanation: It is the program statement. program statement is followed by the program name.
Syntax : program xyz
6. A Fortran is not ___________

a) System supported
b) Source supported
c) Case Sensitive
d) Programmer supported
Answer: c

Explanation: Fortran is not a case sensitive language. For e.g. PROGRAM xyz also works. Also, multiple consecutive blank spaces are ignored.
7. The delimiter in a FORTRAN code.

a) Semicolon
b) Blank space
c) Colon
d) Comma
Answer: b

Explanation: Delimiter separates the tokens we use in our code. In a FORTRAN code, single blank space serves as a delimiter. Though, multiple blank spaces are ignored.
8. A program that reads the source code and converts it to a form usable by the computer.

a) Interpreter
b) Compiler
c) Linker
d) Assembler
Answer: b

Explanation: A compiler does this task. Internally, 3 steps are performed: preprocessing, checking and compiling. Further, assembler and linker do the work.
9. A valid variable declaration in FORTRAN is __________

a) real :: Celsius
b) real Celsius;
c) Celsius real;
d) real : Celsius
Answer: a

Explanation: A variable declaration has the following syntax:
Data type :: variable name
10. In FORTRAN, the declarations of variables can be modified using the _____ parameter.

a) kind
b) make
c) select
d) change
Answer: a

Explanation: Kind can be used for this purpose. It can often be used for the precision of reals. If you want to change the precision, it can easily be done using one line of code.

Related

Data Structures Multiple Choice Questions and Answers on Uniform Binary Search

1. When is the uniform binary search an optimization over the usual binary search? a) A table lookup is generally faster than an addition and a shiftb) Many searches will be performed on the same a...

Data Structures Multiple Choice Questions and Answers on Binary Search Iterative

1. What is the advantage of recursive approach than an iterative approach? a) Consumes less memoryb) Less code and easy to implementc) Consumes more memoryd) All of the mentioned Answer: b Explan...

Data Structure Questions and Answers on Bubble Sort for Freshers

1. What is an external sorting algorithm? a) Algorithm that uses tape or disk during the sortb) Algorithm that uses main memory during the sortc) Algorithm that involves swappingd) Algorithm tha...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item