Full Download PDF of Test Bank For C++ Programming: From Problem Analysis To Program Design, 6th Edition - D.S. Malik All Chapter
Full Download PDF of Test Bank For C++ Programming: From Problem Analysis To Program Design, 6th Edition - D.S. Malik All Chapter
Full Download PDF of Test Bank For C++ Programming: From Problem Analysis To Program Design, 6th Edition - D.S. Malik All Chapter
https://testbankmall.com/product/solution-manual-for-c-
programming-from-problem-analysis-to-program-design-6th-edition-
d-s-malik/
https://testbankmall.com/product/c-programming-from-problem-
analysis-to-program-design-8th-edition-malik-solutions-manual/
https://testbankmall.com/product/solution-manual-for-c-
programming-program-design-including-data-structures-6th-edition-
d-s-malik/
https://testbankmall.com/product/solution-manual-for-c-
programming-from-problem-analysis-to-program-design-5th-edition-
barbara-doyle/
Test Bank for Java Programming From Problem Analysis to
Program Design, 5th Edition
https://testbankmall.com/product/test-bank-for-java-programming-
from-problem-analysis-to-program-design-5th-edition/
https://testbankmall.com/product/solution-manual-for-c-
programming-from-problem-analysis-to-program-design-4th-edition-
barbara-doyle-isbn-10-1285096266-isbn-13-9781285096261/
https://testbankmall.com/product/solution-manual-for-visual-c-
how-to-program-6th-edition-deitel-series-6th-edition/
https://testbankmall.com/product/c-how-to-program-10th-edition-
deitel-solutions-manual/
https://testbankmall.com/product/solution-manual-for-c-how-to-
program-10th-by-deitel/
MULTIPLE CHOICE
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 document with
no related content on Scribd:
mies, tahdonko ruveta hänen vaimoksensa!
»Emme puhu siitä nyt sen pitemmältä.» sanoi hän, »minä voin
odottaa. Te olette minulle niin rakas. — Kesän puoleen tulen
uudelleen, teen kysymykseni vielä kerran ja toivon ajan auttavan
minua.»
*****
Ja minä olen elänyt, sillä olen tuntenut, tuntenut niin, että sydän on
ollut haljeta ilosta ja surusta.
Loppu.
*** END OF THE PROJECT GUTENBERG EBOOK KAKSITOISTA
KUUKAUTTA ***
Updated editions will replace the previous one—the old editions will
be renamed.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the terms
of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth in
paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.