FINAL EXAM PROGRAMMING C UPDATED
ACTUAL QUESTIONS WITH CORRECT ANSWERS
Question 1.
The loop initialization step in a for loop is executed only once
ANSWER
TRUE
Question 2.
x++ is the same as x=x+1
ANSWER
TRUE
Question 3.
The compiler translates your program into (machine) language.
ANSWER
TRUE
Question 4.
A switch statement has an optional default case
ANSWER
TRUE
, Question 5.
What is the only function all C programs must contain? A. start()
B. system()
C. main()
D. program()
E. none of the above
ANSWER
C. main()
Question 6.
Variables refer to memory cells or locations
ANSWER
TRUE
Question 7.
main() function cannot appear anywhere in the program
ANSWER
FALSE
Question 8.
The do-while loop is used when the number of iterations are know
ANSWER
FALSE
ACTUAL QUESTIONS WITH CORRECT ANSWERS
Question 1.
The loop initialization step in a for loop is executed only once
ANSWER
TRUE
Question 2.
x++ is the same as x=x+1
ANSWER
TRUE
Question 3.
The compiler translates your program into (machine) language.
ANSWER
TRUE
Question 4.
A switch statement has an optional default case
ANSWER
TRUE
, Question 5.
What is the only function all C programs must contain? A. start()
B. system()
C. main()
D. program()
E. none of the above
ANSWER
C. main()
Question 6.
Variables refer to memory cells or locations
ANSWER
TRUE
Question 7.
main() function cannot appear anywhere in the program
ANSWER
FALSE
Question 8.
The do-while loop is used when the number of iterations are know
ANSWER
FALSE