Professional Documents
Culture Documents
NAME:____________________________________
FAMILY NAME GIVEN NAMES
INSTRUCTIONS
1. Calculators are not permitted.
2. This exam is closed book.
3. Clearly print your name and student ID number on this examination (above).
4. This exam contains multiple choice questions.
5. The values of all non-multiple choice questions are stated explicitly in bold.
6. There are 50 points in total
7. There are 12 pages including this cover sheet.
Page 2 of 12
2
Page 3 of 12
a) n,
b) n2,
c) n3,
d) en,
e) none of these choices.
6. Binary search
a) has logarithmic time complexity,
b) has a best-case time complexity,
c) is intractable,
d) was classified as a search algorithm,
e) none of these choices.
7. The Halting Problem
a) is intractable,
b) is associated with the Church-Turing Thesis,
c) is associated with Gödel’s Incompleteness Theorems,
d) the first and third choices,
e) none of these choices.
8. Von Neumann Architecture includes
a) sequential execution of instructions,
b) the instruction cycle,
c) solid-state secondary storage,
d) an interpreter,
e) none of these choices.
9. The output of a logic gate is ‘1’ when all its input are at logic 0. The gate is either
a) NAND or an EX OR gate,
b) NOR or an EX-NOR gate,
c) an OR or an EX NOR gate,
d) an AND or an EX-OR gate,
e) none of these choices.
10. A bulb in a staircase has two switches, one switch being at the ground floor and the other
one at the first floor. The bulb can be turned ON and also can be turned OFF by and one of
the switches irrespective of the state of the other switch. The logic of switching of the bulb
resembles.
a) an OR gate,
b) an AND gate,
c) an XOR gate,
d) a NAND gate,
e) none of these choices.
3
Page 4 of 12
a) XOR,
b) NOR,
c) X-NOR,
d) NAND,
e) none of these choices.
12. The sentence, “Colorless green ideas sleep furiously” is
a) grammatically and syntactically correct,
b) only syntactically correct,
c) only semantically correct,
d) neither syntactically or semantically correct,
e) none of these choices.
13. A bit string of at least length ___ is required to represent an alphabet of 2000 unique
Chinese characters in an ASCII-like encoding scheme:
a) 8,
b) 9,
c) 10,
d) 11,
e) none of these choices.
14. A Turing Machine:
a) is a mechanical equivalent to the high-speed electronic digital computer,
b) is at the core of what it means to compute,
c) is only about human computational skills, independent of artificial computation,
d) showed that there are no limits to computation,
e) none of these choices.
15. The difference between while-loops and for-loops:
a) is not worth mentioning since they produce the same result,
b) has to do with flexibility,
c) is historical in that for-loop constructs evolved from while-loop constructs,
d) has nothing to do with the bounding number of loop cycles,
e) none of these choices
16. What does the following finite state machine do?
4
Page 5 of 12
5
Page 6 of 12
6
Page 7 of 12
a) 1,
b) 2,
c) 3,
d) 4,
e) None of these choices.
25. Which is not an axiom of Boolean Algebra:
a) Commutative Law,
b) Positive Law,
c) Distributive Law,
d) Associative Law,
e) None of these choices.
26. The symbol, +, in Boolean Algebra is associated with the logical connective:
a) AND,
b) Inclusive OR,
c) Exclusive OR,
d) Negation,
e) None of these choices.
27. Which logic gates are known as “universal gates”?
a) NAND,
b) NOR,
c) XOR,
d) The first two choices,
e) None of these choices.
7
Page 8 of 12
a)
b)
c)
a) Multiplexer,
b) Binary Adder,
c) Counter,
d) Decoder,
e) None of these choices.
30. The UNICODE system uses ____ bits to represent each character.
a) 4,
b) 8,
c) 16,
d) 32,
e) None of these choices.
31. Transistors are constructed from ____, such as silicon and gallium arsenide.
a) metals,
b) rare earth elements,
c) conductors,
d) The first two choices,
e) None of these choices.
8
Page 9 of 12
32. ____ circuits contain feedback loops in which the output of a gate is fed back as input to an
earlier gate.
a) Combinational,
b) Sequential,
c) Logic,
d) The first two choices,
e) None of these choices.
33. The following two circuits are ___________.
a) combinational,
b) equivalent,
c) sequential,
d) The first two choices,
e) None of these choices.
34. What Boolean expression is derived from the Sum-of-Products Algorithm for the following
truth table?
.
a) (A B) + (A B),
b) (A B’) + (A’ B),
c) (A’ B) + (A’ B),
d) The first two choices,
e) None of these choices.
9
Page 10 of 12
a) AND,
b) NAND,
c) NOR,
d) XOR,
e) None of these choices.
36. ____ circuits are used to determine the order in which operations are carried out inside a
computer and to select the correct data values to be processed.
a) Combinational,
b) Sequential,
c) Control,
d) The first two choices,
e) None of these choices.
37. The set of services and resources created by the system software and seen by the user is
called a(n) ____ machine.
a) Turing,
b) OS,
c) Virtual,
d) Finite State,
e) None of these choices.
38. A program written in assembly language is called the ____ code.
a) object,
b) source,
c) pseudo,
d) system,
e) None of these choices.
39. The number of bits required to represent the octal number, 313054158, in binary is
a) 8,
b) 16,
c) 24,
d) 32,
e) None of these choices.
40. The decimal equivalent of 0xBD is
a) 10111101,
b) 189,
c) 255,
d) 256,
e) None of these choices.
10
Page 11 of 12
11
Page 12 of 12
12