Question 1
1) Since x is initialised, and x is less than 8 , the value of x will start from 0
and end at 8 according to the condition set in the while loop.
Option 4: 0 1 2 3 4 5 6 7 8
2) Since integer x is unknown, int y=10,int z=3
implies that x=y*z-3=10*3-3=30-3=27
the correct option is 4
x=27
3) option 3: 15
4) option 2: Where is the
5) option 4: 8
6) //calculations
input=5
x>=5 meaning the value of x is greater or = to 5
5 *14/100
70/100=0.7
5+0.7=5.7=option 2
, option 2: 2.7
7) // calculations
3*10/100=3/100=0.3+3=option 3
option 3: 3.3
8) option 1: true&&true&&true since all conditions=1
9) option 3: x has a value
10) option 2: enum //there is no such data type
Question 2
2a)
a) *
b) 1 2 3 4 5 6 7 8 9 10
c) **
d) 12 11 10 9
e) *****
f) 12345
2b)
while (age <30 && finalMark>=65) //the while loop
{