Skip to content

Commit 58b48d2

Browse files
authored
Create 3. Expressions quiz.txt
1 parent 9549aba commit 58b48d2

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
******************************
2+
WEEK-2 QUIZ: Expressions Quiz
3+
******************************
4+
5+
6+
--------------------------------------------------------------------------------------------------------------------------------------------------------
7+
1. Assume that int a = 3, b = 4, c = -2;
8+
What is the value of a + b?
9+
10+
I - 3
11+
II - 4
12+
III - 5
13+
IV - 6
14+
V - 7 <---------------------- [ANSWER]
15+
16+
--------------------------------------------------------------------------------------------------------------------------------------------------------
17+
2. Assume that int a = 3, b = 4, c = -2;
18+
What is the value of -a + b?
19+
20+
I - 0
21+
II - 1 <---------------------- [ANSWER]
22+
III - 3
23+
IV - 5
24+
V - 7
25+
26+
--------------------------------------------------------------------------------------------------------------------------------------------------------
27+
3. Assume that int a = 3, b = 4, c = -2;
28+
What is the value of ++a + c?
29+
30+
I - 0
31+
II - 1
32+
III - 2 <---------------------- [ANSWER]
33+
IV - 5
34+
V - 7
35+
36+
--------------------------------------------------------------------------------------------------------------------------------------------------------
37+
4. Assume that int a = 3, b = 4, c = -2;
38+
What is the value of a / b?
39+
40+
I - 0 <---------------------- [ANSWER]
41+
II - 1
42+
III - 2
43+
IV - 5
44+
V - 7
45+
46+
--------------------------------------------------------------------------------------------------------------------------------------------------------
47+
5. Assume that int a = 3, b = 4, c = -2;
48+
What is the value of b / a?
49+
50+
I - 0
51+
II - 1 <---------------------- [ANSWER]
52+
III - 2
53+
IV - 5
54+
V - 7
55+
56+
--------------------------------------------------------------------------------------------------------------------------------------------------------
57+
6. Assume that int a = 3, b = 4, c = -2;
58+
What is the value of ++a + b++?
59+
60+
I - 6
61+
II - 7
62+
III - 8 <---------------------- [ANSWER]
63+
IV - 9
64+
V - 10
65+
66+
--------------------------------------------------------------------------------------------------------------------------------------------------------
67+
68+
69+
70+
~ TSG405, 2021

0 commit comments

Comments
 (0)