Quiz V5.0 'C' Programming Language. 10 Questions.


Credits to: Ian Rogers


Attempt All Questions.
Unanswered questions will be considered Incorrect
Use the 'Score' button to show your Score.! You can re-attempt any incorrectly answered Questions and re-check your Score!

Your Score:
Q1: What value will 'x' hold after the following code is run ?

for(x=0; x<10; x++) {}

1
0
9
10
Q1: Marking=
Q2:What character is used to end a line of C code?



. ( period )
; ( semi colon)
: ( colon )
' ( apostrophe )
Q2: Marking=
Q3: Which of the following is the correct equality operator?

:=
==
equal
=
Q3: Marking=
Q4: Which of the following correctly declares an array?

char my_array[10];
char my_array;
char my_array{10};
array my_array[10];
Q4: Marking=
Q5: Which syntax is used for a typecast?

a(long);
long'a';
cast(long, a);
(long)a;
Q5: Marking=
Q6: Which is not a C loop structure?

for
do while
Begin end
while
Q6: Marking=
Q7: What ascii character ends strings in C?





'\0'
'%n'
'.'
'\n'
Q7: Marking=
Q8: In the following code.How many characters will print?

for(x='A'; x <'z'; x++);
{
printf("%c",x);
}
10
26
1
54
Q8: Marking=
Q9: Which is NOT a valid C operator?

>=
=<
==
|=
Q9: Marking=
Q10: Which of these identifiers are valid.?

'123abc'
"!abc123"
"_abc123"
"123_abc"
Q10: Marking=