Unit 1 Exam Questions with complete
solutions rated A+
An Integrated Development Environment typically consists of: - correct answer ✔✔A text editor, A
compiler, and A debugger.
The purpose of a memory address is: - correct answer ✔✔To identify the location of a byte.
___________ are used to translate each source code instruction into the appropriate machine language
instruction. - correct answer ✔✔Compilers
Characters or symbols that perform operations on one or more operands are: - correct answer
✔✔Operators
This is used in a program to mark the beginning or ending of a statement, or separate items in a list. -
correct answer ✔✔Punctuation
A set of well-define steps for performing a task or solving a problem is known as a(n): - correct answer
✔✔Algorithm
The statements written by the programmer are called: - correct answer ✔✔Source code
Internally, the CPU consists of two parts: - correct answer ✔✔The Control Unit (CU) and the Arithmetic
and Logic Unit (ALU)
Even when there is no power to the computer, data can be held in: - correct answer ✔✔Secondary
storage
, Words that have a special meaning and may be used only for their intended purpose are known as: -
correct answer ✔✔Key Words
In a C++ program, two slash marks (//) indicate: - correct answer ✔✔The beginning of a comment
A statement that starts with a # symbols is called a: - correct answer ✔✔Preprocessor directive
The _______ is/are used to display information on the computer's screen. - correct answer ✔✔cout
object
___________ represent storage locations in the computer's memory. - correct answer ✔✔Variables
Of the following, which is a valid C++ identifier? - correct answer ✔✔All the above (June1997,
employee_number, __department, myExtraLongVaraibleName)
The numeric data types in C++ can be broken into two general categories: - correct answer ✔✔integer
and floating point
These are data items whose values do not change while the program is running. - correct answer
✔✔Literals
You must have a ______ for every variable you intend to use in a program. - correct answer
✔✔Definition
What is the modulus operator? - correct answer ✔✔%
Which data type typically requires only one byte of storage? - correct answer ✔✔char
What is the output of the following statement?
cou << 4 * ( 15 / (1 + 3) ) << endl; - correct answer ✔✔12