FORTRAN Quiz – FORTRAN Multiple Choice Questions and Answers

FORTRAN Quiz
Join Telegram Join Telegram
Join Whatsapp Groups Join Whatsapp

FORTRAN Quiz – FORTRAN Multiple Choice Questions and Answers: Looking for Fortran MCQ Quiz? Then this article will be very productive for you. We have seen that many of the aspirants are searching for the FORTRAN Multiple Choice Questions and Answers which can help them prepare for many ongoing competitive exams. Hence, in this article, we have established the Fortran Online Practice Tests, which you can take any time and ultimately know how many marks you have scored in the FORTRAN Quiz. We assure you that the Fortran MCQ & Online Quiz which is provided below will help you in knowing new concepts about FORTRAN.

FORTRAN Quiz – Details

Quiz Name FORTRAN Quiz
Exam Type MCQ (Multiple Choice Questions)
Category Technical Quiz
Mode of Quiz Online

FORTRAN Multiple Choice Questions and Answers – Fortran MCQ Quiz

Which statement is used to declare a variable in FORTRAN?
a. DIM
b. VAR
c. REAL
d. DEFINE
Answer: c. REAL
Explanation: The REAL statement is used to declare a variable in FORTRAN.

Which statement is used to assign a value to a variable in FORTRAN?
a. ASSIGN
b. VALUE
c. STORE
d. LET
Answer: d. LET
Explanation: The LET statement is used to assign a value to a variable in FORTRAN.

Which operator is used to perform exponentiation in FORTRAN?
a. ^
b. **
c. ^
d. &
Answer: b. **
Explanation: The ** operator is used to perform exponentiation in FORTRAN.

Which statement is used to read input from the user in FORTRAN?
a. INPUT
b. READ
c. GET
d. IN
Answer: b. READ
Explanation: The READ statement is used to read input from the user in FORTRAN.

Which statement is used to write output to the screen or file in FORTRAN?
a. WRITE
b. PRINT
c. OUTPUT
d. DISPLAY
Answer: a. WRITE
Explanation: The WRITE statement is used to write output to the screen or file in FORTRAN.

Which statement is used to loop through a block of code in FORTRAN?
a. LOOP
b. WHILE
c. DO
d. FOR
Answer: c. DO
Explanation: The DO statement is used to loop through a block of code in FORTRAN.

Which statement is used to terminate a loop in FORTRAN?
a. EXIT
b. QUIT
c. STOP
d. END
Answer: a. EXIT
Explanation: The EXIT statement is used to terminate a loop in FORTRAN.

Which statement is used to branch to a specific line of code in FORTRAN?
a. GOTO
b. JUMP
c. BRANCH
d. SKIP
Answer: a. GOTO
Explanation: The GOTO statement is used to branch to a specific line of code in FORTRAN.

Which statement is used to define a subroutine in FORTRAN?
a. SUB
b. DEFINE
c. SUBROUTINE
d. PROCEDURE
Answer: c. SUBROUTINE
Explanation: The SUBROUTINE statement is used to define a subroutine in FORTRAN.

Which statement is used to call a subroutine in FORTRAN?
a. CALL
b. SUB
c. EXECUTE
d. RUN
Answer: a. CALL
Explanation: The CALL statement is used to call a subroutine in FORTRAN.

Which statement is used to define a function in FORTRAN?
a. FUNCTION
b. DEFINE
c. SUBROUTINE
d. PROCEDURE
Answer: a. FUNCTION
Explanation: The FUNCTION statement is used to define a function in FORTRAN.

Which statement is used to return a value from a function in FORTRAN?
a. RETURN
b. END
c. EXIT
d. DONE
Answer: a. RETURN
Explanation: The RETURN statement is used to return a value from a function in FORTRAN.

Which statement is used to declare a one-dimensional array in FORTRAN?
a. ARRAY
b. DIM
c. DECLARE
d. SET
Answer: b. DIM
Explanation: The DIM statement is used to declare a one-dimensional array in FORTRAN.

Which statement is used to access an element of an array in FORTRAN?
a. INDEX
b. ELEMENT
c. ITEM
d. SUBSCRIPT
Answer: d. SUBSCRIPT
Explanation: The SUBSCRIPT statement is used to access an element of an array in FORTRAN.

Which statement is used to sort an array in FORTRAN?
a. SORT
b. ORDER
c. ARRANGE
d. RANK
Answer: a. SORT
Explanation: The SORT statement is used to sort an array in FORTRAN.

Which statement is used to find the maximum value in an array in FORTRAN?
a. MAX
b. MAXIMUM
c. LARGEST
d. BIGGEST
Answer: a. MAX
Explanation: The MAX statement is used to find the maximum value in an array in FORTRAN.

Which statement is used to find the minimum value in an array in FORTRAN?
a. MIN
b. MINIMUM
c. SMALLEST
d. TINIEST
Answer: a. MIN
Explanation: The MIN statement is used to find the minimum value in an array in FORTRAN.

Which statement is used to find the sum of the elements in an array in FORTRAN?
a. SUM
b. ADD
c. TOTAL
d. TALLY
Answer: a. SUM
Explanation: The SUM statement is used to find the sum of the elements in an array in FORTRAN.

Which statement is used to calculate the square root of a number in FORTRAN?
a. SQRT
b. ROOT
c. SQR
d. SQUARE
Answer: a. SQRT
Explanation: The SQRT statement is used to calculate the square root of a number in FORTRAN.

Which statement is used to generate a random number in FORTRAN?
a. RAND
b. RANDOM
c. RND
d. RNG
Answer: b. RANDOM
Explanation: The RANDOM statement is used to generate a random number in FORTRAN.

We like to believe this article Fortran MCQ & Online Quiz has helped you guys in testing your knowledge about FORTRAN. For more such technical quizzes visit our Freshersnow.com website.