The two statements that can be used to change the flow of control are:
A. if and switch
B. if and while
C. switch and do-while
D. break and continue
Answer
Correct Answer: A. if and switch
A. if and switch
B. if and while
C. switch and do-while
D. break and continue
Correct Answer: A. if and switch
A. permit two different expressions to appear in situations where only one expression would ordinarily be used
B. terminate loops or exit from a switch
C. alter the normal sequence of program execution by transferring control to some other part of the program
D. carry out a logical test and then take one of two possible actions, depending upon the outcome of the test
Correct Answer: C. alter the normal sequence of program execution by transferring control to some other part of the program
A. string
B. character
C. data
D. function
Correct Answer: A. string
A. library function
B. user-defined function
C. header
D. statement
Correct Answer: B. user-defined function
A. extern
B. static
C. register
D. auto
Correct Answer: B. static
A. components are all linked together in some sequential manner
B. there is no beginning and no end
C. components are arranged hierarchically
D. forward and backward transversal within the list is permitted
Correct Answer: B. there is no beginning and no end
A. file
B. File
C. FILE
D. None of the above
Correct Answer: C. FILE
A. the null character
B. the newline character
C. the $ sign
D. the / sign
Correct Answer: A. the null character
A. True
B. False
C. -+
D. Undetermined
Correct Answer: A. True
A. <-
B. ->
C. (arrow)
D. >>
Correct Answer: B. ->