Professional Documents
Culture Documents
Elements of Computation by S K Mondal
Elements of Computation by S K Mondal
ELEMENTS OF COMPUTATION:
Computer Organisation
Flow charting
FORTRAN
d Base III
Lotus 1-2-3
C
Elementary Programming
Control system
Computer Organisation
61. Match the terms under the List-I with their description under the List-II in respect of
computer organization and select the correct answer using the code given below the
Lists: [IES-2006]
List - I
List - II
A. Distributed system
1. Multiple control units
B. MIMD
2. Different steps of instruction are executed in separate
stages with latches
C. SIMD
3. Independent processors which are networked together
D. Pipelined machine
4. Lock-step synchronization between multiple functional
units
A
B
C
D
A
B
C
D
(a)
3
1
4
2
(b)
4
2
3
1
(c)
3
2
4
1
(d)
4
1
3
2
61. Ans. (c)
72. Consider the following statements:
[IES-2004]
1. The operating system must be designed to work with the particular processor's
set of instructions
1. 2 The term processor has generally replaced the term CPU
Which of the statements given above is/are correct?
(a) 1 only
(b) 2 only
(c) Both 1 or 2
(d) Neither 1 nor 2
72. Ans. (c)
[GATE-2000]
60. Which of the following are the advantages of indirect addressing over direct
addressing? [IES-2006]
Flow charting
63. Match List I (Symbols in Flowcharts) with List II (Actions)
answer using the codes given below the Lists:
[IES-2004]
List I
List II
A. Parallelogram
1. Decision
B. Diamond shaped box
2. Stop
C. Ellipse
3. Processing
D. Rectangle
4. Input/output
A
B
C
D
A
B
C
(a)
4
3
2
1
(b)
2
1
4
(c)
4
1
2
3
(d)
2
3
4
63. Ans. (a)
D
3
1
64
=32; D = 64-32 = 32
2
64
Second J=
=2; D = 64-2 = 62
32
64
Third J=
=32; D = 64-32 = 32
2
First J=
29. Which one of the following flow charts is correct for swapping values of A and B?
[IES-2002]
(d) 31
[IES-1997]
FORTRAN
57. When the FORTRAN IV statement
[IES-1998]
1= 21/2 + 3/2 * 5
is executed, the result stored in the memory will be
(a) 18.0
(b) 18
(c) 15
57. Ans. (b)
(d) 17
58. What will be the output at the end of the execution of the following program? [IES1998]
Y=20
X=2
DO 10 k = 2, 10, 5
X = X*2 + X
IF (X.GT.Y) GO TO 20
10 CONTINUE
20 PRINT, X
(a) 2
(b) 6
58. Ans. (d)
(c) 18
(d) 54
61. Match List I (Illegal Statement) with List II (Reason) and select the correct answer
using the code given below: [IES-2005]
List I
List II
A READ*, (A (I), 1=0, 5)
1. Mismatched parenthesis
B. READ*, (A (I, J), I= 1, 10), J= 1, 8)
2. Invalid operator
C. IF (2.GE.B) THEN B=0
3. Illegal subscript
D. IF (A+B).GN. (C+D)) THEN TOT= 100 4. Mismatched data types
A
B
C
D
A
B
C
D
(a)
4
1
3
2
(b)
3
2
4
1
(c)
4
2
3
1
(d)
3
1
4
2
61. Ans. (d)
[GATE-
[GATE-1994]
106. The arithmetic expression 2.4**3.0 will be computed by the FORTRAN compiler as
(a) 2.4*2.4*2.4
(b) 103.0log102.4
3.0log 2.4
(d) 2.4*2.4*3.0
[IES 2007]
(c) e
e
Ans. (b) do not confuse with(a) because if we want to calculate 2.4*3.2 then (a) will
fail.
58. Given J = 2, K = -4, A = -5, B = 0-4, C = 105 [IES-2006]
What are the values of the FORTRAN variables
JIP = J*K + J**K, IVAL = A + B + C?
(a) 153 and 5.9, respectively
(b) -7.83 and 5.9, respectively
(c)-7.83 and 5, respectively
(d) -8 and 5, respectively
58. Ans. (d) All are integer IVAL, JIP, J, K
so JIP = 2 ( 4 ) + 2 ( 4 ) = 8 ( only int eger part ) IVAL = 5 + 0.4 + 10.5 = 5 ( only int er part )
43. Match List I with List II and select the correct answer: [IES-2002]
List I (Computer language)
List II (Application)
A. COBOL
1. System software
B. FORTRAN
2. System software and other common applications
C. C
3. Business application
D. Assembler
4. Scientific application
A
B
C
D
A
B
C
D
(a)
3
4
2
1
(b)
2
1
3
4
(c)
3
1
2
4
(d)
2
4
3
1
43. Ans. (a)
59. Assertion (A): A Function statement 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. [IES-2002]
59. Ans. (b)
d Base III
108. For deleting a record from a dBase III plus file, the command(s) given is/are
(a) delete
(b) delete followed by pack [IES-2003]
(c) delete followed by done
(d) delete followed by modify
108. Ans. (b)
68. Which one of the following statements is not corrected in respect of dBase III plus?
(a) CREATE c0mmand is used for creating a new database file. [IES-1999]
(b) The structure of the database file to be created can be decided by the user.
(c) The structure of an existing database file can be altered by 'CHANGE STRUCTURE'
command.
(d) The package does not have facility for drawing graphs, curves, etc.
68. Ans. (c)
Lotus 1-2-3
C
107. Which one of the following statements is not correct? [IES-2003]
(a) Every C-language programme contains a function 'Main'
(b) In symbol in C-language tells the computer programme to print a new line
(c) In a C-language programme, there is no need to declare the variable types
(d) In C-language the text enclosed in /* and */ is a comment
107. Ans. (c)
105. Consider the following statements:
[IES 2007]
1. In C language, both data and the function that operate on that data are combined into
a single unit called object.
2. Almost every correct statement in C is also a correct statement in C++, although the
reverse is not true.
Which of the statements given above is/are correct?
[IES
2007]
(a) 1 only
(b) 2 only
(c) Both 1 and 2
(d) Neither 1 nor 2
Ans. (b)
44. Consider the following statements: [IES-2006]
1. C functions can return arrays.
2. C functions can return functions.
3. An array clement can be void.
4. An array element can be a function.
Which of the statements given above is/are correct?
(a) Only 1 and 4
(b) Only 1 and 3
(c) Only 2
(d) Only 3
44. Ans. (a)
[IES-2005]
[IES-2005]
(d) 14
Elementary Programming
109. Consider the following statements related to computer applications in mechanical
engineering: [IES-2003]
1. Computer can solve any problem that is impossible to be solved by conventional
calculation methods.
2. The optimization techniques involving numerical calculations can be easily
employed using computers.
3. The speed of calculations in computers depends on speed of input-output
devices.
4. The central processor unit mainly co-ordinates the functions of various parts of
the computer system.
Which of these statements is/are correct?
(a) 1, 2, 3 and 4
(b) 2, 3 and 4
(c) 3 only
(d) 2 only
109. Ans. (b)
49. Consider the following statements:
1. not be more than 5 characters.
3. be free from special characters.
functions.
Of these statements
(a) 2, 3 and 4 are correct
(c) 2 and 4 are correct
49. Ans. (c)
[IES-1997]
2. be upto 6 characters.
4. not be the same as names of standard
Control system
19.Which of the following is the correct data structure for solid models?
(a) solid part faces edges vertices
[GATE-2009]
18. Traffic control on the roads by lights where the timing mechanism operates
irrespective of the intensity of traffic is an example of
[IAS-2003]
(a) Closed loop control
(b) Under-damped control
(c) Open loop control
(d) Over-damped control
18. Ans. (c)
42. What is the value of K
for which the relative
damping of the closed loop
system shown above is
equal to 0.5?
(a) 2
(b) 3
(c) 4
(d) 5
[IAS-2004]
42. Ans. (b)
71. The characteristic equation of a closed-loop automatic control system in time domain
is given by
[IAS-1999]
D5+2D4+4D2+D+1=0
Consider the following statements in this regard:
1. The system is linear
2. The system is non-linear
3. The system is stable
4. The system is unstable.
Of these statements
(a) 1 and 3 are correct
(b) 2 and 3 are correct
(c) 1 and 4 are correct
(d) 2 and 4 are correct
71. Ans. (d)
95. Which of the following is a closed-loop control system?
(a) Traffic control on the roads by lights where the timing mechanism is present
irrespective of the intensity of traffic [IES-2002]
(b) Switching off the street lights of a tower at a pre-determined time by a time-switch
irrespective of the fact that the sun rises at a different time each day
(c) Switching off an electric heater by a time-switch irrespective of whether the dish has
been prepared or not
C ( s)
G (s)
=
R( s) 1 + G ( s)
H (s)
C (s)
G (s)
=
(c)
R( s) 1 G ( s) H ( s)
(a )
(b)
C (s)
H (s)
=
R( s) 1 + G ( s) H ( s)
(d)
C (s)
G(s)
=
R(s) 1 + G(s) H (s)
86. Given that G = forward path gain and H = feedback path gain, if G and H are
functions of frequency, then the feedback would affect gain G of a non-feedback system
by a value equal to
(a) 1 + GH
(b) 1 - GH
(c) GH
(d) l/GH
[IES1997]
86. Ans. (a)
59. In which one of the following types of control system is the output of the control
element proportional to the time rate of change the input?
[IAS-2000]
(a) Proportional (b) Integral (c) Proportional and derivative (d) Derivative
59. Ans. (d)
39. Assertion (A): Feed-back is necessary in any automatic control system.
Reason (R): Feed-back improves stability of the system.
[IAS-1999]
39. Ans. (c)
95. The block diagram of an automatic control system is shown in the following figure.
[IAS-1998]