Font size
WorksheetsGetting Started in C Programming
Total questions: 20
Worksheet time: 14mins
Which of the following is a correct C programming statement?
printf(“Programming”)
int num2=3
scanf(“&num”, %d);
printf(“ “);
Which of the following is a correct syntax of printf?
printf( strings );
Printf(“Strings”);
printf(“ strings “);
None of these
C programming is a case-sensitive?
True
False
The format specifier/placeholder (a) is used to print integers.
The format specifier/placeholder (a) is used to print floating points.
The format specifier/placeholder (a) is to used to print single character.
The format specifier/placeholder (a) is used to print string.
The symbol (a) is used to terminate the C statement .
The symbol (a) is used to address a variable.
The escape sequence (a) is used to create a new line.
The escape sequence (a) is used to create a horizontal tab.
Which of the following variable declaration is correct?
char char;
int void;
float _a;
Float a=0;
Given the code above, what is the expected output?
Null
Compilation Error
“ “
0
Given the code above, what is the expected output?
Syntax Error
Null
The value of a = -10
Compilation Error
Given the code above, Assumed that 5 was entered , what is the expected output?
Enter a value of a: 5
You entered the value of a: 5
Compilation error
nothing
Run time error
Given the code above, assumed that HELLO was entered, what is the expected output?
HELLO
Compilation Error
H
Syntax Error
The arithmetic (a) operator is to get the remainder of an integer.
The arithmetic (a) operator is used to add the variable value or to the operand.
The arithmetic (a) operator is used to subtract the value of the variable or to the operand.
What is stdio stands for? (a)
