WorksheetsProgramming in C
Total questions: 10
Worksheet time: 5mins
All keywords in C are in ____________
LowerCase letters
UpperCase letters
Numeric letters
Alphanumeric letters
Which is valid C expression?
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
What is an example of iteration in C?
for
while
do-while
all of the mentioned
What is the output of this statement "printf("%d", (a++))"?
The value of (a + 1)
The current value of a
Error message
Garbage
Which of the following is not a valid C variable name?
int number;
float rate;
int variable_count;
int $main;
Which one of the following is a loop construct that will always be executed once?
for
while
switch
do while
What is the output of C Program.?
int main()
{
int a=32;
do
{
printf("%d ", a);
a++;
}
while(a <= 30);
return 0;
}
32
33
30
No Output
What is the way to suddenly come out of or Quit any Loop in C Language.?
continue; statement
break; statement
leave; statement
quit; statement
which is the only function all C programs must contain?
start()
sys()
main()
scanf()
Which of the following is not a correct variable type?
float
real
int
double
