1) Choose facts about continue; statement is C Language.
A) continue; is used to take the execution control to next iteration or sequence
B) continue; statement causes the statements below it to skip for execution
C) continue; is usually accompanied by IF statement.
2) What is the output of C Program.?
if(a>=16 && a<=18)
printf("%d ", a);
A) 15 16 17 18 19
Between 16 - 18, continue statement skips all other statements below it. So a will not be printed during that time.
16 not printed
17 not printed
18 not printed
3) Choose a correct statement about C break; statement.?
A) break; statement can be used inside switch block
B) break; statement can be used with loops like for, while and do while.
C) break; statement causes only the same or inner loop where break; is present to quit suddenly.
4) Choose a correct statement about C language break; statement.
A) A single break; statement can force execution control to come out of only one loop.
B) A single break; statement can force execution control to come out of a maximum of two nested loops.
C) A single break; statement can force execution control to come out of a maximum of three nested loops.
5) Choose a correct C Statement regarding for loop.
A) for loop works exactly first time
B) for loop works infinite number of times
We are not specifying condition to exit the loop. Eg. for(a=0;a<10;a++)
6) What is the output of C Program.?
int a=10, b, c;
printf("%d %d %d", a, b, c);
A) 10 11 12
a++ first assigns 10 to b. Next a is incremented separately. ++a increments from 11 to 12. Final ++a value is assigned to the left side variable C.
7) What is the output of C Program.?
int a=0, b=0;
while(++a < 4)
printf("%d ", a);
while(b++ < 4)
printf("%d ", b);
A) 0 1 2 3 1 2 3 4
(++a < 4) first increments and compares afterwards. (b++ < 4) first compares and increments afterwards.
8) What is the output of C Program.?
if(a==9 AND b==20)
if(a==10 OR b==21)
There are no keywords like AND / OR in C language. Logical OR is represented with two Pipes ||. Logical AND is represented with two Ampersands &&.
9) What are C ASCII character ranges.?
A) A to Z = 65 to 91
All remaining characters are special characters or symbols in C Language. 0 to 47, 58 to 64, 91 to 96, 123 to 127.
10) Expand or Abbreviate ASCII with regard to C Language.
A) Australian Standard Code for Information Interchange
B) American Standard Code for Information Interchange
C) American Symbolic Code for Information Interchange
D) Australian Symbolic Code for Information Interchange
There were only 128 Characters with 7 Bits in Original ASCII specification. Present character standard in all modern programming languages is UNICODE which covers all languages, Emojis and other special symbols all over the world.