a. Initialization c. Declamation b. Assignment d. Definition ____ 21. All operands used in an expression must ____ before the expression is evaluated. ____ 22. If bis an integer and dis a double-precision number, the evaluation of the expression b*dis a(n) ____ value. ____ 23. When the ++operator appears before a variable, it is called a(n) ____ increment operator. ____ 24. If nis initialized to the value 5, the expression --nchanges the value of nto ____. a. 1 c. b. 4 d. 6 5 ____ 25. The data type returned by abs(x)is ____. ____ 26. The value of pow(x1, x2)is ____. x2* x2____ 27. The cinobject is used to enter data into a program while it is ____. ____ 28. When a coutstatement prints a string that tells the person at the terminal what should be typed, the output string used in this manner is called a(n) ____. a. prompt c. interrupt
b. checkpoint d. pause ____ 29. The cinextraction operation ____ data type conversions. ____ 30. The constqualifier specifies that the declared identifier is read-only after it is ____. ____ 31. Using ____ letters is customary in C++ to make const identifiers easy to identify. ____ 32. The extraction operator used with cinis ____. a. << c. b. >> d. <> , ____ 33. One of the most common C++ programming errors is forgetting to ____ values for all variables that are used in an expression. ____ 34. A ____ relational expression consists of a relational operator connecting two variable and/or constant operands. ____ 35. Like all C++ expressions, relational expressions are evaluated to yield a ____ result. ____ 36. The value of a relational expression such as hours > 40depends on the ____ stored in the variable hours. a. condition c. value b. sign d. relationship ____ 37. If an expression is falseto begin with, then !expressionis trueand evaluates to a value of ____. 2 ____ 38. Many ____ numbers cannot be represented exactly in binary form using a finite number of bits. ____ 39. Using the abs()function requires including the ____ header file. ____ 40. Using ____ to enclose a set of statements creates a single block of statements. a. semicolons c. parentheses b. colons d. braces ____ 41. C++ treats any nonzero value as ____. ____ 42. In a C++ program, statement indentation is ____ as far as the compiler is concerned.
You've reached the end of your free preview.
Want to read all 13 pages?
- Fall '15
- Array, d., B., c.