Structured Programming Exam Full
Structured Programming Exam Full
A. A variable exceeds its maximum value B. A variable is not initialized C. A program runs
A. \n B. \t C. \r D. \
A. The starting point of program execution B. Declares global variables C. Prints data to the
A. % B. / C. // D. *
A set of commands
A. true B. false C. 1 D. 0
A. Declare a variable B. End a program C. Exit a function and optionally return a value D.
Create a loop
18. What type of error occurs when you forget a semicolon in C++?
A. == B. != C. << D. >
A. 0 B. 1 C. Null D. Undefined
new program
A. 1 B. 2 C. 3 D. 0
A. ? : B. && C. == D. =
30. What is the correct data type to store 'true' and 'false'?
A. Returns the length of a string B. Returns the size of a data type in bytes C. Counts the
number of variables in a program D. Checks the type of a variable
A. A tool to run programs B. A tool to convert source code to machine code C. A tool to debug
A. 20 B. 14 C. 11 D. 24
A. Restart a loop B. Exit from a loop C. Skip to the next iteration of a loop D. Pause execution
A. Specify the end of the program B. Provide output C. Handle input D. Declare variables
A. Ends the program B. Adds a new line to the output C. Clears the console D. Defines a
variable