FORTRAN Yearwise Questions -IES

2008
Which one of the following statements about
FORTRAN is not correct?
a. GO TO 999
b. CONTINUE 999
c. PRINT 999
d. DIMENSION A (999)
119. If A is greater than B then it is expressed in
FORTRAN as:
a. A > B
b. AGTB
c. A.GT.B
d. AGT.B
2007
87. The arithmetic expression 2.4**3.0 will be
computed by the FORTRAN compiler as:
a. 2.4*2.4*2.4
b. 103.0 log 102.4
c. e3.0 log e2.4
d. 2.4*2.4*3.0
2006
58. Given J = 2, K = –4, A = –5, B = 0.4, C =
10.5
What are the values of the FORTRAN
variables
JIP = J*K + J**K, IVAL = A + B + C ?
a. 15.3 and 5.9, respectively
b. –7.83 and 5.9, respectively
c. –7.83 and 5, respectively
d. –8 and 5, respectively
2005
60. The initial contents of an array A are:
A= [2 7 8 6 15 14 0 50 3]
What would be the contents of the array A
after executing the following segment of
the FORTRAN code?
DO 35 J = 1, T,1
TEMP = A(J)
A(J) = A(J+2)
A(J+1) = TEMP
35 CONTINUE
a. A= [7 2 8 6 14 15 50 0 3]
b. A= [8 6 2 7 0 50 15 14 3]
c. A = [8 6 15 14 0 50 3 7 2]
d. A= [0 2 3 6 7 8 14 15 50]
61. Match List I (Illegal Statement) with List
II (Reason) and select the correct answer
using the code given below:
List I
A. READ*,(A(I),I=(0,5)
B. READ*,(A(I,J), I=1,10),J= 1,8)
C. IF (2.GE. B) THEN B=0
D. IF (A+B)GN.(C+D) THEN TOT= 100
List II
1. Mismatched parenthesis
2. Invalid operator
3. Illegal subscript
4. Mismatched data types
A B C D
a. 4 1 3 2
b. 3 2 4 1
c. 4 2 3 1
d. 3 1 4 2
2002
30. I = 1,3,4,2,6,5
K(I) = 100, 52, 300, 51, 600
Select the correct FORTRAN read
statement from the following:
a. READ(I, K(I),L = 1, 6)
b. READ(L, K(I), I = 1, 6)
c. READ(I, K(L), L = 1, 6)
d. READ(L, K(L), L = 1, 6)
59. Assertion (A): Function statements in a
FORTRAN program is given in terms of
parameters.
Reason (R): Function statements in a
FORTRAN program can be shared by two
subroutines in a program.

Comments

Anonymous said…
Plz post about study material of elements of computation
Anurag said…
IES Elements of Computations includes following-Computer Architecture, DBase, Lotus-1,2,3, Fortran, C languages. Quick ref material of Fortran & Yearwise questions has already been added for future aspirants help. I would soon be posting notes for DBase, Lotus which I prepared for my IES. Please wait.
Anurag said…
Please donot post as Anonymous.

Popular posts from this blog

Beauty of Mechanical Engineering

ICC Cricket World Cup 2023

FEELING BIRTHDAY