Test Bank for C++ Programming: From Problem Analysis to Program Design, 6th Edition – D.S. Malik - Full Version Is Available For Instant Download
Test Bank for C++ Programming: From Problem Analysis to Program Design, 6th Edition – D.S. Malik - Full Version Is Available For Instant Download
http://testbankbell.com/product/solution-manual-for-c-programming-
from-problem-analysis-to-program-design-6th-edition-d-s-malik/
http://testbankbell.com/product/c-programming-from-problem-analysis-
to-program-design-8th-edition-malik-solutions-manual/
http://testbankbell.com/product/solution-manual-for-c-programming-
program-design-including-data-structures-6th-edition-d-s-malik/
http://testbankbell.com/product/test-bank-for-leadership-theory-and-
practice-8th-edition-peter-g-northouse/
Test Bank for Personal Nutrition, 9th Edition
http://testbankbell.com/product/test-bank-for-personal-nutrition-9th-
edition/
http://testbankbell.com/product/solution-manual-for-marketing-
research-13th-edition-v-kumar-robert-p-leone-david-a-aaker-george-s-
day/
http://testbankbell.com/product/test-bank-for-methods-doing-social-
research-4-e-4th-edition-winston-jackson-norine-verberg/
http://testbankbell.com/product/solution-manual-managerial-accounting-
creating-value-in-a-dynamic-business-environment-9-e-ronald-w-hilton/
http://testbankbell.com/product/exploring-biological-anthropology-the-
essentials-3rd-edition-stanford-allen-anton-test-bank/
Test Bank for Lutz’s Nutrition and Diet Therapy 7th by
Mazur
http://testbankbell.com/product/test-bank-for-lutzs-nutrition-and-
diet-therapy-7th-by-mazur/
Test Bank for C++ Programming: From Problem Analysis to
Program Design, 6th Edition – D.S. Malik
Download full chapter at: https://testbankbell.com/product/test-bank-for-c-
programming-from-problem-analysis-to-program-design-6th-edition-d-s-malik/
TRUE/FALSE
2. The maximum number of significant digits in values of the double type is 15.
5. If a C++ arithmetic expression has no parentheses, operators are evaluated from left to right.
8. The escape sequence \r moves the insertion point to the beginning of the next line.
10. Suppose that sum is an int variable. The statement sum += 7; is equivalent to the statement
sum = sum + 7;
1. The ____ rules of a programming language tell you which statements are legal, or accepted by the
programming language.
a. semantic c. syntax
b. logical d. grammatical
ANS: C PTS: 1 REF: 34
8. The value of the expression 33/10, assuming both values are integral data types, is ____.
a. 0.3 c. 3.0
b. 3 d. 3.3
ANS: B PTS: 1 REF: 43-44
13. In a C++ program, one and two are double variables and input values are 10.5 and 30.6.
After the statement cin >> one >> two; executes, ____.
a. one = 10.5, two = 10.5 c. one = 30.6, two = 30.6
b. one = 10.5, two = 30.6 d. one = 11, two = 31
ANS: B PTS: 1 REF: 64
14. Suppose that count is an int variable and count = 1. After the statement count++;
executes, the value of count is ____.
a. 1 c. 3
b. 2 d. 4
ANS: B PTS: 1 REF: 70
15. Suppose that alpha and beta are int variables. The statement alpha = --beta; is equivalent
to the statement(s) ____.
a. alpha = 1 - beta;
b. alpha = beta - 1;
c. beta = beta - 1;
alpha = beta;
d. alpha = beta;
beta = beta - 1;
ANS: C PTS: 1 REF: 70-71
16. Suppose that alpha and beta are int variables. The statement alpha = beta--; is equivalent
to the statement(s) ____.
a. alpha = 1 - beta;
b. alpha = beta - 1;
c. beta = beta - 1;
alpha = beta;
d. alpha = beta;
beta = beta - 1;
ANS: D PTS: 1 REF: 70-71
17. Suppose that alpha and beta are int variables. The statement alpha = beta++; is equivalent
to the statement(s) ____.
a. alpha = 1 + beta;
b. alpha = alpha + beta;
c. alpha = beta;
beta = beta + 1;
d. beta = beta + 1;
alpha = beta;
ANS: C PTS: 1 REF: 70-71
18. Suppose that alpha and beta are int variables. The statement alpha = ++beta; is equivalent
to the statement(s) ____.
a. beta = beta + 1;
alpha = beta;
b. alpha = beta;
beta = beta + 1;
c. alpha = alpha + beta;
d. alpha = beta + 1;
ANS: A PTS: 1 REF: 70-71
// Insertion Point 1
int main()
{
//Insertion Point 2
float r = 2.0;
float area;
area = PI * r * r;
22. ____ are executable statements that inform the user what to do.
a. Variables c. Named constants
b. Prompt lines d. Expressions
ANS: B PTS: 1 REF: 91
24. Suppose that alpha and beta are int variables and alpha = 5 and beta = 10. After
the statement alpha *= beta; executes, ____.
a. alpha = 5 c. alpha = 50
b. alpha = 10 d. alpha = 50.0
ANS: C PTS: 1 REF: 94
25. Suppose that sum and num are int variables and sum = 5 and num = 10. After the
statement sum += num executes, ____.
a. sum = 0 c. sum = 10
b. sum = 5 d. sum = 15
ANS: D PTS: 1 REF: 95
COMPLETION
ANS:
Programming
programming
PTS: 1 REF: 28
ANS: variable
PTS: 1 REF: 33
PTS: 1 REF: 34
4. ____________________ functions are those that have already been written and are provided as part of
the system.
ANS:
Predefined
predefined
Standard
standard
PTS: 1 REF: 34
ANS:
Semantic
semantic
PTS: 1 REF: 34
6. ____________________ can be used to identify the authors of the program, give the date when the
program is written or modified, give a brief explanation of the program, and explain the meaning of
key statements in a program.
ANS:
Comments
comments
PTS: 1 REF: 34
7. The smallest individual unit of a program written in any language is called a(n)
____________________.
ANS: token
PTS: 1 REF: 35
8. In a C++ program, ____________________ are used to separate special symbols, reserved words, and
identifiers.
ANS:
whitespaces
whitespace
white spaces
white space
PTS: 1 REF: 37
9. The ____________________ type is C++ ’s method for allowing programmers to create their own
simple data types.
ANS: enumeration
PTS: 1 REF: 38
10. The memory space for a(n) ____________________ data value is 64 bytes.
PTS: 1 REF: 39
ANS: precision
PTS: 1 REF: 42
12. When a value of one data type is automatically changed to another data type, a(n)
____________________ type coercion is said to have occurred.
ANS: implicit
PTS: 1 REF: 51
ANS: string
PTS: 1 REF: 53
14. In C++, you can use a(n) ____________________ to instruct a program to mark those memory
locations in which data is fixed throughout program execution.
ANS:
named constant
constant
PTS: 1 REF: 55
15. A data type is called ____________________ if the variable or named constant of that type can store
only one value at a time.
ANS: simple
PTS: 1 REF: 57
Another Random Scribd Document
with Unrelated Content
talked loudly of it, and so it comes that we see the times through
their eyes, and not through those of the silent and the blind.
In the south Dangeau made speech after speech. He wrote to
Danton from Lyons:
"This place smoulders. Words are apt to prove oil on the embers.
There are 900 prisoners, and constant talk of massacre. Chalier is a
firebrand, the Mayor one of those moderate persons who provoke
immoderate irritation in others. We are doing our best."
CHAPTER XIV
A DANGEROUS ACQUAINTANCE
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
testbankbell.com