Questions and CORRECT Answers
Every complete statement ends with a - CORRECT ANSWER -;
Which of the following statements is correct?
A) #include (iostream)
B) #include <iostream>
C) #include {iostream}
D) #include [iostream]
E) All of the above - CORRECT ANSWER -B
Every C++ program must have a A) cout statement - CORRECT ANSWER - Function
Main
Preprocessor directives begin with a - CORRECT ANSWER -#
The following data
72
'A'
"Hello World"
2.8712
are all examples of - CORRECT ANSWER - Literals or constants
A group of statements, such as the contents of a function, is enclosed in - CORRECT
ANSWER - Braces
, The negation operator is - CORRECT ANSWER - Unary
A(n) ___________ is like a variable, but its value is read-only and cannot be changed during the
program's execution. - CORRECT ANSWER - named constant
When do preprocessor directives execute? - CORRECT ANSWER -
Assume value is an integer variable. If the user enters 3.14 in response to the following
programming statement, what will be stored in value?
cin >> value; - CORRECT ANSWER -3
The _____ object can be used to read data typed at the keyboard. - CORRECT ANSWER -
cin object
When the user types values at the keyboard, those values are first stored in an area of memory
known as the _______ _______. - CORRECT ANSWER - keyboard buffer
An ________ is a programming statement that has a value. Usually, consisting of an operator and
its operands. - CORRECT ANSWER - Expression
When C++ is working with an operator, it strives to convert the operands to the same type, this
automatic conversion is known as _______ _________. - CORRECT ANSWER - type
coercion
When a variable is assigned a value that is too large or too small in range for that variable's data
type, the variable _________ or __________. - CORRECT ANSWER -
______ ________ allows you to perform manual data type conversion. - CORRECT
ANSWER -