NEW
Font size
WorksheetsSDF_B10B12Tutorial_December26
Total questions: 10
Worksheet time: 5mins
Predict the output of the given code.
Garbage Value
10
0
Error
Predict the output of the given code.
200 100
100 200
0 25
25 0
Predict the output of the given code.
Hello
Error
WorldC Programming
HelloC Programming
Predict the output of the given code.
0 1 2 3 4 5
Error
5
6
Predict the output of the given code.
8 9
8 8
7 8
8 17
Which of the following is equivalent to the given expression?
(x<y) && (y>=z)
(x>=y) && (y>=z)
( x < y ) && ( y < z )
( x < y) || ( y < z )
Which of the following evaluates to TRUE for a=5, b=-3 and c=0?
( a < b ) || ( c < b )
( c < a ) && ( c < b )
( a > b ) && !c
!( a + b > c )
How to represent the given statement "donation is in the range 4000-5000 or guest is 1" using C language?
donation >= 4000 and donation <= 5000 || guest == 1
donation > 4000 and donation < 5000 || guest == 1
donation > 4000 and donation < 5000 || guest = 1
donation >= 4000 and donation <= 5000 || guest = 1
Which of the following array declaration is correct?
int a(3);
int size=3;
int a[3];
int 3[a];
int a[size];
int size = 3;
Choose an equivalent single C statement for "Decrements the variable n and then adds it to the variable total".
total + n--
n+=1;
total+n
n+=1;
total + --n
total + --n
