Problem 1
How many operands does each of the following types of operators require? ________ Unary ________ Binary ________ Ternary
Problem 2
How may the float variables temp, weight, and age be defined in one statement?
Problem 3
How may the int variables months, days, and years be defined in one statement, with months initialized to 2 and years initialized to 3 ?
Problem 11
include statement. D) All of the above # Every C++ program must have a A) cout statement. B) function main. C) #include statement. D) All of the above
Problem 17
Assume w = 5, x = 4, y = 8, and z = 2. What value will be stored in result in each of the following statements? A) result = x + y; B) result = z * 2; C) result = y / x; D) result = y - z; E) result = w % 2;
Problem 24
A left brace in a C++ program should always be followed by a right brace later in the program.
Problem 27
include iostream using namespace std; int… # There are a number of syntax errors in the following program. Locate as many as you can. */ What's wrong with this program? /* #include iostream using namespace std; int main(); } int a, b, c\\\ Three integers a = 3 b = 4 c = a + b Cout < "The value of c is %d" < C; return 0; {