You are on page 1of 18

11.

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)

67. Consider the following statements.


[IES-2004]
1. RAM is the place in a computer where the operating system, application
programs, and data in current use are kept

2. Data in RAM stays there only as long as the computer is running


Which of the statements given above is/are correct?
(a) 1 only
(b) 2 only
(c) Both 1 and 2
(d) Neither 1 nor 2
67. Ans. (c)
73. Consider the following statements:
[IES-2004]
1. The data in ROM is lost when the computer power is turned off
2. ROM contains the programming that allows the computer to be booted up each
time it is turned on
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
73. Ans. (b)
105. In computer application, if a direct dialogue is carried on between computer and
user, it is referred to as [IES-2003]
(a) Real-time application
(b) Decision application
(c) Batch processing application
(d) Interfacing
105. Ans. (d)
38. Match List I with List II and select the correct answer using the codes given below
the Lists:
List I
List I [IES-2000]
A. RAM
1. Network of computers
B. ROM
2. Software which makes the computer work
C. DOS
3. Memory used for processing
D. LAN
4. Memory in which user cannot write anything
Code: A
B
C
D
A
B
C
D
(a)
1
2
3
4
(b)
3
4
2
1
(c)
2
3
4
1
(d)
3
4
1
2
38. Ans. (b)
18. In a computer application where a direct dialogue is carried on between the
computer and the user is referred to as
[IES-1995]
(a) interfacing (b) batch processing (c) decision application
(d)
Real
time
application
18. Ans. (d)
66. Assertion (A): Computer simulation can be used for seemingly intractable problems,
those that are difficult or complex to solve mathematically.
[IES-1993]
Reason (R): Simulation guarantees the optimal solution.
66. Ans. (b) Both A and R are true but R is not the explanation for A
1.23 In computer aided drafting practice, an arc is defined by
(a) two end points only
(b) centre and radius
(c) radius and one end point (d) two end points and centre
1.23 Ans. (d)

[GATE-2000]

60. Which of the following are the advantages of indirect addressing over direct
addressing? [IES-2006]

1. The program length is shorter.


2. The program takes lesser time to
execute.
3. It allows the flexibility of using pointers. 4. It allows more efficient use of the cache.
Select the correct answer using the codes given below:
(a) Only 1,2 and 3
(b) Only 1 and 3
(c) Only 2, 3 and 4
(d) Only 1 and 2
60. Ans. (b)
55. Compiler translates
[IES-1998]
(a) Assembly language to machine language
language
(c) High level language to machine language
language
55. Ans. (d)

(b) Machine language to high level


(d) High level language to assembly

53. The software package used for computer simulation is known as


[IES-1993]
(a) GPSS
(b) HTPM
(c) CRAFT
(d) COMSOAL
53. Ans. (d) COMSOAL is the software package used for computer simulation.

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)

and select the correct

D
3
1

106. In the above flow chart, if the values


of input are, A = 64 and B = 3; the value of
D is
(a) 2
(b) 30
(c) 32
(d) 60
[IES-2003]

106. Ans. (c)

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]

29. Ans. (c)

37. Consider the following flow chart


The printed value X, Y and Z by the
computer will be
(a) the highest
(b) the middle
(c) the lowest
(d) None of the above
[IES-2000]

37. Ans. (a)


69. Consider the following flow chart:
If the values of inputs are X = 20, Y = 6
and Z = 0, then the value of output Z will
be
(a) 35
(b) 25
(c) 15
(d) 5
[IES-1999]

69. Ans. (c)

50. Consider the following flowchart:


If this flowchart is followed, then the value
of S for N = 4, X = 2 will be
(a) 20
(b) 16
(c) 15

(d) 31
[IES-1997]

50. Ans. (d)

60. When will be the output values of A


and B for the chart given?
(a) (A * B), X
(b) A, B
(c) B, A
(d) X, Y
[IES-2002]

60. Ans. (c)

59. For the given flowchart, if input X = 3, then the


printed value of SUM is
(a) 12
(b) 39
(c) 120
(d) 363 [IES-2001]

59. Ans. (c)

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)

48. Which one of the following is not a permissible FORTRAN IV character?


[IES1997]
(a) Slash (l)
(b) Colon (:)
(c) Dollar sign ($)
(d) Blank (b)
48. Ans. (d)
51. Consider the following four arithmetic statements in FORTRAN IV:
[IES-1997]
1. P/Q + R/S ** L + T ** M
2. P/Q + (R/S) ** L + (T ** M)
3. (P/Q) + R/S ** L + (T ** M)
4. P/(Q + R)/(S ** L) + T ** M
If these expressions are evaluated,
(a) all four of them will give the same answer (b) they will give four different answers
(c) l and 2 will give the same answer
(d) l and 3 will give the same answer
51. Ans. (d)

5.5 In the following FORTRAN statements, what is the value of X at exit?


1995]

5.5 Ans. (c)

[GATE-

3.4. The following is a correct FORTRAN 77 statement


II (DABS ((X-XI)/XD-0.4 D-0.5), 10, 10, 15
3.4 Ans. False
Correct statement is
IF (DABS ((X-XI)/XI) - 0.4 D - 0.5) 10, 10, 15

[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 )

60. The initial contents of an array A are: [IES-2005]


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, 7, 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]
60. Ans. (c)
30. I = 1, 3, 4, 2, 6, 5 [IES-2002]
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)
30. Ans. (b)

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)

48. Which of the following are the advantages of subroutines in a program?


1. They reduce execution time of the program. [IES-2006]
2. They make the program more maintainable.
3. Modular development can be achieved.
4. They can be parameterized.
Select the correct answer using the codes given below
(a) Only 2 and 3
(b) 1, 2, 3 and 4
(c) Only 2, 3 and 4
(d) Only 1 and 4
48. Ans. (b)
62. # include <stdio.h> [IES-2005]
main () {
int i = 4, j = 6, k = 6;
{
int i = 4;
printf ("% d% d% d", i, j++, --k);
}
i++; j++; k++;
printf ("% d% d% d\n", i, j, k);
}
What would be the printed output after the program given above is executed?
(a) 4 7 5 6 8 6
(b) 4 6 5 6 8 6
(c) 4 6 6 6 8 6
(d) 5 7 5 6 8 6
62. Ans. (a)
63. Consider the following piece of codes defining function XYZ:
int XYZ (int x)
{
if (x> = 0)
return x;
else
return XYZ (-x);
}
Which one of the following statements is correct?

[IES-2005]

(a) The function XYZ is syntactically incorrect.


(b) The function XYZ runs forever for some values of its parameter x.
(c) The function XYZ computes the absolute value of x.
(d) The function XYZ counts the number of binary digits in the number.
63. Ans. (c)
64. Consider the following segment of a program:
int j = 1, x = 4
while (++ j < = 10)
x++;
What is the final value of x?
(a) 11
(b) 12
(c) 13
64. Ans. (c)

[IES-2005]

(d) 14

115. Consider the following statements:


[IES-2004]
1. C is an object-oriented programming like Java
2. C++ uses the same set of programming concepts as those of C
Which of the statements given above is/are correct?
(a) 1 only
(b) 2 only
(c) Both 1 and 2
(d) Neither 1 nor 2
115. Ans. (b)

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

(b) 1 and 3 are correct


(d) 1, 3 and 4 are correct

Control system
19.Which of the following is the correct data structure for solid models?
(a) solid part faces edges vertices

[GATE-2009]

(b) solid part edges faces vertices


(c) vertices edges faces solid parts
(d) vertices faces edges solid parts
19. Ans. (c)

1. Match List I with List II and select


Lists:
List I
A. Open loop system
B. Closed loop system
C. Step input
D. Sinusoidal input
A
B
C
D
(a)
2
3
4
1
(c)
2
1
4
3
1. Ans. (a)

the correct answer using the codes given below the


[IES-2004]
List II
1. Frequency domain analysis
2. More stable
3. Less stable
4. Time domain analysis
A
B
C
D
(b)
4
1
2
3
(d)
4
3
2
1

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

(d) Human body


95. Ans. (d)
92. In a transfer line [IES-1994]
(a) all the machine tools must be automatic. (b) the work stations must form a closedloop.
(c) the cycle time is total time taken by all the machining operations.
(d) all the machine tools must be of conventional and general purpose type.
92. Ans. (a) In transfer line, all the machine tools must be automatic.
105. Assertion (A): The automatic traffic control is an open-loop system. [IAS-1995]
Reason(R): The input is independent of the output.
105. Ans. (a) Both A and R are true and R is the correct explanation of A
Automatic traffic control is an open-loop system, being of sequential nature. Assertion is
thus true. In this case input is generation by a relay logic and is not dependent on output.
Thus (R) is also true and appears to be an explanation for A. Thus answer is (a).
14. A servomotor is connected through a gear ratio of 10 (i.e., motor speed: load side
speed = 10: 1) to a load having moment of inertia J. The equivalent parameter referred
to motor shaft side is
[IES-2001]
(a) J eq = 0.01J
(b) J eq = 10 J
(c) J eq = 0.1J
(d) J eq = 100 J
14. Ans. (a)
84. Which of the following derive system is used in computer Numerically controlled
machine tools?
[IES-1992]
(a) Stepper motor
(b) amorphous structure
(c) Thyristor controlled DC motor
(d) Servo controlled pneumatic dries.
84. Ans. (d)
109. Assertion (A): The use of servo-controls in machine tools helps in achieving better
machining accuracy.
[IAS-2003]
Reason (R): The stability of the system automatically improves due to the introduction of
feed back control.
109. Ans. (a)

120. Consider the following statements in respect of introduction of feedback in a control


system:
1. It enhances its gain.
2. It attenuates the unwanted noise.
3. It helps in improving the accuracy of the system.
Which of these statements are correct?
[IES-1999]
(a) 2 and 3
(b) 1, 2 and 3
(c) 1 and 3
(d) 1 and 2
120. Ans. (c)

94. A physical system is


translated into functional block
diagram of the type shown in
the figure. The command
input r(t) and controlled output
c(t) of this basic system are
given by
[IES-1998]

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.

Its simplified form will be as in

[IAS-1998]

95. Ans. (d)

You might also like