complete solutions
The programming process consists of several steps, which include:
A. Design, Creation, Testing and Debugging
B. Syntax, Logic and Error Handling
C. Key Words, Operators, and Punctuation
D. Input, Processing and Output - correct answer ✔✔A
A(n) _________ is a set of instructions that the computer follows to solve a problem.
A. Program
B. Linker
C. Operator
D. Compiler - correct answer ✔✔A
________ are used to translate each source code instruction into the appropriate machine language
instruction.
A. Library routines
B. Modules
C. Translator
D. Compilers - correct answer ✔✔D
The statements written by the programmer are called:
A. Object code
B. Runtime Libraries
C. Source code
D. Logic - correct answer ✔✔C
,C++ is based on the C language and offers object-oriented features not found in C. - correct answer
✔✔True
The 3 primary activities of a program are:
A. lines, statements, punctuation
B. input, processing, output
C. variable definitions, operators, lists of key words
D. integer, floating-point, character definitions - correct answer ✔✔B
Machine language is an example of a high-level language - correct answer ✔✔false
pseudocode is a form of a program statement that will always evaluate to "false" - correct answer
✔✔false
what data type should you use to store a person's age?
A. double
B. char
C. float
D. int - correct answer ✔✔D
which of the following is a C++ identifier?
A. a
B. 12
C. int
D. "hello" - correct answer ✔✔A
which of the following is not a data type in C++?
A. long
B. float
, C. int
D. decimal - correct answer ✔✔D
how would you consolidate the following declaration statements into one statement?
int x = 7;
int y = 16;
int z = 28;
A. int x = 7; y = 16; z = 28;
B. int x = 7, y = 16, z = 28;
C. int x, y, z = 7, 16, 28
D. int x = 7 y = 16 z = 28; - correct answer ✔✔B
which of the following is a char literal in C++?
A. _x
B. 'a'
C. A
D. "abc" - correct answer ✔✔B
what will the following code display?
cout << "Monday";
cout << "Tuesday";
cout << "Wednesday";
A. MondayTuesdayWednesday
B. "Monday"
"Tuesday"
"Wednesday"
C. Monday Tuesday Wednesday
D. Monday