Review 2019
Review 2019
Review 2019
1/
(i) p r
(ii) p r
(i) pr
(ii) pr
3/
“It is not true that if you are good, then you are rich”
Answer: (g r)
p r ?
T T F
T F T
F T F
F F F
Answer: p r
6/
Let p and r denote propositions. Which of the following statements is/are TRUE?
(i)
(ii)
Answer: Both
8/
(i) x (x > 3 x 3)
(ii) x (x > 3 x 3)
9/
10/
11/
12/
Answer: 01010101
13/
14/
Find the next two terms of the sequence 1, 5, 9, 13, 17, 21, …
15/ Find the general term of the sequence {an} if a1 = 3, a2 = 5, a3 = 7, a4 = 9, a5 = 11, a6 = 13, …
Answer: an = 2n + 1
16/
Suppose that A = {1, 3, 5, 7} and B = {5, 6, 7, 8} are two subsets
Answer: 00001010
17/
Find the next two terms of the sequence 1, 4, 5, 9, 14, 23, 37, …
Answer: 60, 97
18/
(i)
(ii)
Answer: (ii)
19/
Answer: 2
20/
Answer: (i)
21/
22/
Answer: (220)3
Answer: 29 28 14 21
24/
Answer: 25 + 2 = 27 options: 12 63 30
25
Answer: 1 10 111
with seed x0 = 1.
Answer: 10, 11
Find {1, 2, 3, 4, 5, 6} – A.
29/ Find f(3), f(4) if f is defined recursively by f(1) = 2, f(2) = 3 and for n = 3, 4, ...
Answer: 7, 18
30/
if (n = 1) then result:= 5
return result
Answer: 8 options 5 9 6
31/
Find f(3), f(4) if f is defined recursively by f(1) = 3, f(2) = 2 and for n = 3, 4, ...
Answer: 8, 12 options
5/
return 3
else
return thuattoan(n-1)
Answer: 3 options: 18 27 6
33/ How many bit strings of length eight that start with 10 or end with 01?
Answer: 27 – 24
34/ Given two sets A and B with |A B| = 9, |A| = 5 and |B| = 7. Find |AB|.
Answer: 3
35/ Suppose that f(n) = f(n/2) + 1, when n is an even positive integer, and f(1) = 3.
Find f(128).
Answer: 10
36
How many strings of ten uppercase English letters are there that start with D and end with M?
Answer: 268
37/
How many different functions are there from the set {a, b, c, d} to the set {1, 2, 3}?
Answer: 34
38/
A multiple-choice test contains 15 questions. There are four possible answers for each question.
In how many ways can a student answer the questions on the test if the student answers every
question?
Answer: 415
39/ Let R = {(a, b) | a > b} be the relation from the set A = {1, 2, 3} to the set B = {0, 1, 2}.
Answer: 6
S = {(1, 1)}.
Answer: None
41/ Let R be the relation on the set of integers such that xRy if and only if x = 5y.
(i) 15R3
(ii) 1R5
42/
Consider the relation R = {(a, 1), (a, 2), (b, 2), (c, 3), (d, 3)} from the set {a, b, c, d}
Answer: 7
43/
(i) R is reflexive
(ii) R is symmetric
Answer: (ii) only
44/
Answer: [0 1 0]
45/ Let R be the relation on the set of integers where xRy if and only if x + y = 8.
(i) R is reflexive
(ii) R is symmetric
46/
(i) R is symmetric
(ii) R is reflexive
---------------------
47/ How many edges does a graph have if its degree sequence is 3, 3, 2, 2, 1, 1, 0?
Answer: 6 options 14 28 no such graph
48/
G H
Answer: H only
49/
Suppose G is an undirected graph with 12 vertices, each of degree 3. How many edges does G
have?
Answer: 18
50/
How many leaves does a full 4-ary tree with 101 vertices have?
51/
52/
53/