Data structures & Algorithms MCQ Set 9



1.       Naming convention for variable is followed in company because ____________.
A.      it enhances readability
B.      it allows to work without conflicts
C.      it enhances the efficiency
D.      all of the above

2.       The true and false values represent __________.
A.      logical data
B.      numeric data
C.      character data
D.      alphanumeric data

3.       Following operator distinguishes equation from expression
A.      +, -, *, /
B.      < or >
C.      Logical operators
D.      Assignment Operator

4.       Following are called logical operators
A.      +, -, *, /
B.      <, >, <=, >=
C.      AND, OR, NOT
D.      \, MOD

5.       The hierarchy of operations is denoted as _____________.
I.                    +, -
II.                  Power
III.               *, /
IV.                \, MOD
A.      I, II, III, IV
B.      II, IV, III, I
C.      IV, I, III, II
D.      II, III, IV, I

6.       The hierarchy of operations is denoted as _____________.
V.                  +, -
VI.                Power
VII.             *, /
VIII.           \, MOD
A.      I, II, III, IV
B.      II, IV, III, I
C.      IV, I, III, II
D.      II, III, IV, I

7.       Evaluate 5*(x+y)-4*y/(z+6) where x = 2, y = 3, and z = 6
A.      1
B.      24
C.      5
D.      10

8.       Evaluate a-2>b where a=6, b = 8
A.      False
B.      True
C.      6
D.      7
9.       Evaluate for a = 5, b = 4, c = 3, d = 12 for the equation E = a*b+d/c
A.      40
B.      24
C.      10
D.      10.66

10.    Evaluate for the equation e = 5*a\d*(b+1) where a = 5, b = 4, c = 3, d = 12
A.      10
B.      24
C.      0
D.      10





Answers
1.d
2.a
3.d
4.c
5.b
6.b
7.b
8.a
9.b
10.c


0 comments:

Back to TOP