FINAL EXAM PROGRAMMING C UPDATED ACTUAL
QUESTIONS AND CORRECT ANSWERS
Question 1.
A syntax error in a program is an error that causes the program to produce incorrect output.
ANSWER
FALSE
that's a logical error
Question 2.
The compiler translates your program into (machine) language.
ANSWER
TRUE
Question 3.
Functions can be called several times from different points in the program
ANSWER
TRUE
Question 4.
Curly brackets {} in c language are called delimiters
ANSWER
TRUE
Question 5.
Colon (:) is called statement terminator and must be used at the end of every statement
ANSWER
FALSE (;)
1/9
, Question 6.
In conditional program flow, every statement executes once in a sequential manner
ANSWER
FALSE
Question 7.
Scanf() function is used to multiply floating point values
ANSWER
FALSE
Question 8.
The size of int data type is four (04) bytes
ANSWER
TRUE
Question 9.
A switch statement has an optional default case
ANSWER
TRUE
Question 10.
x++ is the same as x=x+1
ANSWER
TRUE
2/9
QUESTIONS AND CORRECT ANSWERS
Question 1.
A syntax error in a program is an error that causes the program to produce incorrect output.
ANSWER
FALSE
that's a logical error
Question 2.
The compiler translates your program into (machine) language.
ANSWER
TRUE
Question 3.
Functions can be called several times from different points in the program
ANSWER
TRUE
Question 4.
Curly brackets {} in c language are called delimiters
ANSWER
TRUE
Question 5.
Colon (:) is called statement terminator and must be used at the end of every statement
ANSWER
FALSE (;)
1/9
, Question 6.
In conditional program flow, every statement executes once in a sequential manner
ANSWER
FALSE
Question 7.
Scanf() function is used to multiply floating point values
ANSWER
FALSE
Question 8.
The size of int data type is four (04) bytes
ANSWER
TRUE
Question 9.
A switch statement has an optional default case
ANSWER
TRUE
Question 10.
x++ is the same as x=x+1
ANSWER
TRUE
2/9