Exam Questions and CORRECT Answers
The CPU has 2 main parts:
The Control Unit
Arithmetic Logic Unit
True or False - CORRECT ANSWER - True
A Byte is made up of 16 consecutive bits.
True or False - CORRECT ANSWER - False
Syntax is the rules of grammar that must be followed when writing a program.
True or False - CORRECT ANSWER - True
An algorithm is a set of well-defined steps for performing a task or solving a problem.
True or False - CORRECT ANSWER - True
Volatile memory is erased when the computer is turned off.
True or False - CORRECT ANSWER - True
System software is programs that manage the computer hardware and the programs that run on
them.
,True or False - CORRECT ANSWER - True
In a C++ program, two slash marks ( // ) indicates the start of a code block.
True or False - CORRECT ANSWER - False
Literals are data items whose values do not change while the program is running.
True or False - CORRECT ANSWER - True
You must have a definition for every variable you intend to use in a program.
True or False - CORRECT ANSWER - True
The numeric data types in C++ can be classified into two general categories: integer and floating
point.
True or False - CORRECT ANSWER - True
The # symbol is used to begin a preprocessor directive.
True or False - CORRECT ANSWER - True
Directives must end with a semicolon.
True or False - CORRECT ANSWER - False
Some variable do not need a type when defined.
, True or False - CORRECT ANSWER - False
The first character of an identifier must be an alphabetic character or an underscore ( _ ).
True or False - CORRECT ANSWER - True
After the first character you may use alphabetic characters, numbers, or underscore characters.
True or False - CORRECT ANSWER - True
The following definitions in the same program is syntactically correct.
int MyVar;
int myVar;
True or False - CORRECT ANSWER - True
Unsigned integers always treat the sign bit as a magnitude part of the number.
True or False - CORRECT ANSWER - True
The constant 0x75A is base 8.
True or False - CORRECT ANSWER - False
The following will compile: