Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
200 Cards in this Set
- Front
- Back
When the computer is turned off, everything in secondary memory is lost. True or False |
False |
|
A variable or expression listed in a call to a funciton is called the ___? a. data type b. actual parameter c. formal parameter d. type of the function |
actual parameter |
|
which of the following will cause a logical error if you are attempting to compare x to 5? if (x == 5) if (x = 5) if (x <= 5) if (x >= 5) |
if (x=5) |
|
When you compile your program, the compiler identifies the logic errors and suggests how to correct them. True or False
|
False
|
|
To use the manipulator setprecision, the program must include the header file ____________________.
|
iomanip
|
|
Putting one control structure statement inside another is called ____________________.
|
Nesting
|
|
In C++, the dot is an operator called the ____________________operator.
|
member access
|
|
If a global identifier in a program has the same name as one of the global identifiers in the header file, the compiler generates a(n) ____________________ error.
|
syntax
|
|
Suppose that ch1, ch2, and ch3 are variables of the type char and the input is :A BC
What is the value of ch3 after the following statements execute? cin.get(ch1); cin.get(ch2); cin.get(ch3); |
'B'
|
|
The identifiers in the system-provided header files such as iostream, cmath, and iomanip are defined in the namespace ____. cctype stdl std stdlib |
std |
|
The general syntax for accessing a namespace member is: namespace_name->identifier. True or false |
False |
|
Which of the following is a valid C++ statement? typedef integer; typedef int; typedef int integer; typedef integer int; |
typedef int integer; |
|
When one control statement is located within another, it is said to be ____. blocked compound nested closed |
nested |
|
Consider the following program segment. ifstream inFile; //Line 1 int x, y; //Line 2 ... //Line 3 inFile >> x >> y; //Line 4 Which of the following statements at Line 3 can be used to open the file progdata.dat and input data from this file into x and y at Line 4? inFile.open("progdata.dat"); inFile(open,"progdata.dat"); open.inFile("progdata.dat"); open(inFile,"progdata.dat"); |
inFile.open("progdata.dat"); |
|
Given the following function prototype: int test(float, char);, which of the following statements is valid? a. cout << test('12', '&'); b. cout << test(12, &); c. cout << test("12.0", '&'); d. int u = test(5.0, '*'); |
d |
|
Consider the following statements:string str1 = "Gone with the wind";string str2;After the statement str2 = str1.substr(5,4); executes, the value of str2 is "____". Gone with the wind |
with |
|
The ____________________ monitors the overall activity of the computer and provides services such as memory management, input/output activities, and storage management. |
operating system |
|
Suppose that x = 25.67, y = 356.876, and z = 7623.9674. What is the output of the following statements? cout << fixed << showpoint;c out << setprecision(2); cout << x << ' ' << y << ' ' << z << endl; 25.67 356.87 7623.96 25.67 356.87 7623.97 25.67 356.88 7623.97 25.67 356.876 7623.967 |
25.67 356.88 7623.97 |
|
The length of the string "Hello There." is ____________________. |
12 |
|
Assembly language uses easy-to-remember instructions called ____________________. |
mnemonics |
|
In ____________________ design, the final program is a collection of interacting objects. |
object oriented |
|
A function ____________________ is a function that is not fully coded. |
stub |
|
An anonymous type can be passed as a parameter to a function. |
false |
|
In C++, the mechanism that allows you to combine data and operations on the data into a single unit is called a(n) ____________________. |
class |
|
Consider the following statements: string str1 = "ABCDEFGHIJKLM"; string str2; After the statement str2 = str1.substr(1,4); executes, the value of str2 is "____". ABCD BCDE BCD CDE |
BCDE |
|
The string expression strVar.____________________ starts at index pos, replaces the next ncharacters of strVar with all the characters of str. |
asdf |
|
What is the output of the following loop? count = 5; cout << 'St'; do { cout << 'o'; count--; } while (count <= 5); St Sto Stop This is an infinite loop. |
Infinite loop |
|
The control statements in the for loop include the initial statement, loop condition, and update statement. |
true |
|
The execution of a return statement in a user-defined function terminates the program. |
false |
|
A compound statement functions as if it was a single statement. |
true |
|
The memory space for a(n) ____________________ data value is 64 bytes. |
long long |
|
Suppose that alpha is an int variable and ch is a char variable and the input is: 17 A What are the values after the following statements execute? cin >> alpha; cin >> ch; alpha = 17, ch = ' ' alpha = 1, ch = 7 alpha = 17, ch = 'A' alpha = 17, ch = 'a' |
alpha = 17, ch = 'A' |
|
The value of the expression 17 % 7 is ____. 1 2 3 4 |
3 |
|
The expression in an if statement is sometimes called a(n) ____. selection statement action statement decision maker action maker |
decision maker |
|
To use the predefined function tolower, the program must include the header file ____. a. b. c. d. |
|
|
A loop that continues to execute endlessly is called a(n) ____ loop. end unhinged infinite definite |
infinite |
|
If a C++ arithmetic expression has no parentheses, operators are evaluated from left to right. |
true |
|
What is the next Fibonacci number in the following sequence? 1, 1, 2, 3, 5, 8, 13, 21, ... |
34 |
|
Consider the declaration: enum sports {BASKETBALL, FOOTBALL, HOCKEY, BASEBALL, SOCCER}; which of the following statements is true? SOCCER-- = BASEBALL BASEBALL++ = SOCCER HOCKEY + FOOTBALL < SOCCER FOOTBALL <= SOCCER |
football <=soccer |
|
The data type of a variable in a return statement must match the function type. |
true |
|
The expression (x >= 0 && x <= 100) evaluates to false if either x < 0 or x >= 100.
|
false
|
|
Suppose that you have the following declaration.
enum cars {FORD, GM, TOYOTA, HONDA}; cars domesticCars = FORD; The statement: domesticCars = static_cast(domesticCars + 1); sets the value of domesticCars to ____. FORD GM TOYOTA HONDA |
GM
|
|
The ____ function is used to interchange the contents of two string variables.
iterator traverse swap change |
swap
|
|
A control structure alters the normal sequential flow of execution in a program.
|
true
|
|
In ANSI/ISO Standard C++, the ____________________ mechanism was designed to solve the problem of overlapping global identifiers.
|
namespace
|
|
Every else must be paired with a(n) ____________________.
|
if
|
|
The heading of the function is also called the ____.
a. function head b. title c. function header d. function signature |
function header
|
|
C++ provides a header file called ____________________, which is used for file I/O.
|
fstream
|
|
A function cannot return the value of an enumeration type.
|
false
|
|
Suppose that ch1 and ch2 are char variables and the input is:
WXYZ What is the value of ch2 after the following statements execute? cin.get(ch1); cin.putback(ch1) ;cin >> ch2; W X Y Z |
w
|
|
The basic commands that a computer performs are ____, and performance of arithmetic and logical operations.
input, file, list output, folder, storage input, output, storage storage, directory, log |
input, output, storage |
|
You can use the function getline to read a string containing blanks.
|
true
|
|
A program called a(n) ____________________ translates the assembly language instructions into machine language.
|
assembler
|
|
The statement: return 8, 10; returns the value ____.
a. 8 b. 10 c. 18 d. 80 |
b. 10
|
|
The number of iterations of a counter-controlled loop is known in advance.
|
true
|
|
Suppose that sum and num are int variables and sum = 5 and num = 10. After the statementsum += num executes, ____.
sum = 0 sum = 5 sum = 10 sum = 15 |
sum = 15
|
|
The term ____________________ describes a process in which the computer evaluates a logical expression from left to right and stops as soon as the value of the expression is known.
|
short circuit evaluation
|
|
The value of the expression 33/10, assuming both values are integral data types, is ____.
0.3 3 3.0 3.3 |
3
|
|
In ____ structures, the computer repeats particular statements a certain number of times depending on some condition(s).
looping branching selection sequence |
looping
|
|
Assume all variables are properly declared. The output of the following C++ code is 2 3 4 5.
n = 1; while (n < 5) { n++; cout << n << " "; } |
true
|
|
A comma is also called a statement terminator.
|
false
|
|
A ____________________ operator allows you to make comparisions in a program.
|
relational
|
|
Given the following function prototype: int myFunc(int, int);, which of the following statements is valid? Assume that all variables are properly declared.
a. cout << myFunc(myFunc(7), 15); b. cin >> myFunc(y); c. cin >> myFunc('2', '3'); d. cout << myFunc(myFunc(7, 8), 15); |
d
|
|
Given the following code
namespace globalType { void printResult(); } which of the following statements is needed to access printResult? globalType.printResult(); globalType.printResult; globalType::printResult(); globalType:printResult(); |
globalType::printResult(); |
|
What is the initial statement in the following for loop? (Assume that all variables are properly declared.)
int i; for (i = 1; i < 20; i++) c out << "Hello World"; cout << "!" << endl; i = 1; i < 20; i++; cout << "Hello World"; |
i = 1; |
|
A(n) ____________________ is a memory location whose contents can be changed.
|
variable
|
|
Suppose that x and y are int variables, ch is a char variable, and the input is:
4 2 A 12 Choose the values of x, y, and ch after the following statement executes: cin >> x >> ch >> y; x = 4, ch = 2, y = 12 x = 4, ch = A, y = 12 x = 4, ch = ' ', y = 2 This statement results in input failure |
This statement results in input failure |
|
Given the following function:
int strange(int x, int y) { if (x > y)return x + y;elsereturn x – y; } what is the output of the following statement? cout << strange(4, 5) << endl; a. -1 b. 1 c. 9 d. 20 |
a.
|
|
Which statement below about prototypes and headers is true?
a. Headers end with a semicolon, but prototypes do not. b. Parameter names must be listed in the prototype, but not necessarily in the header. c. Headers should come before prototypes. d. Prototypes end with a semicolon, but headers do not. |
d |
|
Suppose P and Q are logical expressions. The logical expression P && Q is true if both P and Q are true.
|
true
|
|
The maximum number of significant digits in float values is up to 6 or 7.
|
true
|
|
____ is a valid char value.
-129 ‘A’ 128 129 |
‘A’ |
|
In C++, reserved words are the same as predefined identifiers.
|
false
|
|
Suppose j, sum, and num are int variables, and the input is 26 34 61 4 -1. What is the output of the code?
sum = 0; cin >> num; for (int j = 1; j <= 4; j++) { sum = sum + num; cin >> num; } cout << sum << endl; 124 125 126 127 |
125
|
|
Suppose that alpha, beta, and gamma are int variables and the input is:
100 110 120 200 210 220 300 310 320 What is the value of gamma after the following statements execute? cin >> alpha; cin.ignore(100, '\n'); cin >> beta;cin.ignore(100,'\n'); cin >> gamma; 100 200 300 320 |
300
|
|
A(n) ____________________ structure does not require the evaluation of a logical expression.
|
switch
|
|
The length of the string "computer science" is ____.
14 15 16 18 |
16
|
|
In July ____, ANSI/ISO Standard C++ was officially approved. 1996 1998 1999 2000 |
1998
|
|
What is the output of the following C++ code?
int x = 35; int y = 45; int z; if (x > y) z = x + y; else z = y – x; cout << x << " " << y << " " << z << endl; 35 45 80 35 45 10 35 45 –10 35 45 0 |
35 45 10
|
|
Which executes first in a do...while loop?
the statement loop condition the expression update statement |
the statement |
|
Several categories of computers exist, such as ____.
microframe, midframe, and miniframe midsize, microframe, and mainframe mainsize, midsize, and microsize mainframe, midsize, and micro |
mainframe, midsize, and micro
|
|
Dividing a problem into smaller subproblems is called ____ design.
OOD top-down refinement structured analog |
structured
|
|
Assume that all variables are properly declared. The following for loop executes 20 times. for (i = 0; i <= 20; i++) cout << i; |
false |
|
For the operator + to work with the string data type, one of the operands of + must be a(n) ____________________ variable. |
string |
|
The devices that the computer uses to display results are called ____ devices. exit entry output input |
output |
|
Suppose a = 5. After the execution of the statement ++a; the value of a is 6. |
true |
|
Which of the following operators has the lowest precedence? ! || && = |
= |
|
To develop a program, you can use an informal mixture of C++ and ordinary language, called ____. assert code pseudocode cppcode source code |
pseudocode |
|
The structured design approach is also known as ____________________. |
top down |
|
Which of the following function prototypes is valid? a. int funcTest(int, int y, float z) b. int funcTest(int, int, float); c. funcTest(int x, int y, float){}; d. int funcTest(int x, int y, float z){} |
b. int funcTest(int, int, float); |
|
The conditional operator ?: takes ____ arguments. two three four five |
three |
|
Which of the following is a relational operator? = == ! && |
== |
|
Suppose sum, num, and j are int variables, and the input is 4 7 12 9 -1. What is the output of the following code? cin >> sum; cin >> num; for (j = 1; j <= 3; j++) { cin >> num; sum = sum + num; } cout << sum << endl; 24 25 41 42 |
24 |
|
When reading data into a char variable, after skipping any leading whitespace characters, the extraction operator >> finds and stores only the next character; reading stops after a single character. |
true |
|
Before using the data type string, the program must include the header file ____. enum iostream string std |
string |
|
Suppose str = "abcd"; After the statement str[1] = 'A'; The value of str is "____________________". |
aBcd |
|
The function eof is a member of the data type ____________________. |
istream |
|
Consider the following statements. int score; string grade; if (score >= 65) grade = "pass"; else grade = "fail"; If score is equal to 75, the value of grade is "____________________". |
pass |
|
Suppose that str1, str2, and str3 are string variables. After the following statements execute, the value of str3 is "____". str1 = "abc"; str2 = "xyz"; str3 = str1 + '-' + str2; abc xyz abc-xyz xyz-abc |
abc-xyz |
|
In C++, !, &&, and || are called relational operators. |
false |
|
Suppose str = "abcd". After the statement str = str + "ABCD"; the value of str is "____________________". |
abcdABCD |
|
The term GB refers to ____. giant byte gigabyte group byte great byte |
gigabyte |
|
A(n) ____-controlled while loop uses a bool variable to control the loop. counter sentinel flag EOF |
flag |
|
The following while loop terminates when j > 20. j = 0; while (j < 20) j++; |
false |
|
The statement: return 2 * 3 + 1, 1 + 5; returns the value ____. a. 2 b. 3 c. 6 d. 7 |
c. 6 |
|
In C++, namespace is a reserved word. |
true |
|
The data type string has a named constant, ____________________, associated with it. |
string::npos |
|
The maximum number of significant digits is called the ____________________. |
precision |
|
The ____________________ of a function consists of the function name and its formal parameter list. |
signature |
|
In C++, ____ is a reserved word. |
typedef |
|
A semicolon at the end of the for statement (just before the body of the loop) is a(n) ____________________ error. |
semantic |
|
To use a parameterized stream manipulator in a program, you must include the header file ____________________. |
iomanip |
|
Consider the following code. (Assume that all variables are properly declared.) cin >> ch; while (cin) { cout << ch; cin >> ch; } This code is an example of a(n) ____ while loop. sentinel-controlled flag-controlled EOF-controlled counter-controlled |
EOF |
|
The memory allocated for a float value is ____ bytes. two four eight sixteen |
four |
|
When the power is switched off, everything in ____ is lost. main memory secondary storage hard disks floppy disks |
main memory |
|
The machine language version of the high-level language program is called a(n) ____________________. |
object program |
|
What is the output of the following C++ code?num = 10; while (num > 10) num = num - 2; cout << num << endl; 0 6 8 10 |
10 |
|
In C++, && has a higher precedence than ||. |
true |
|
Functions that do not have a return type are called ____ functions. a. zero b. empty c. null d. void |
d |
|
In C++, ____ is called the scope resolution operator. . ? : :: |
:: |
|
The term ____________________ is used to describe a program that has been written in a high-level language. |
source code |
|
In a(n) “____________________” problem, either the loop executes one too many or one too few times. |
off by 1
|
|
In a ____ control structure, the computer executes particular statements depending on some condition(s). looping repetition selection sequence |
selection |
|
Suppose that alpha and beta are int variables. The statement alpha = beta--; is equivalent to the statement(s) ____. alpha = 1 - beta; alpha = beta - 1; beta = beta - 1; alpha = beta; alpha = beta; beta = beta - 1; |
alpha = beta;beta = beta - 1; |
|
The command that does the linking on Visual C++ 2010 Express and Visual Studio 2010 is Make or Remake. |
false |
|
It is a good idea to redefine cin and cout in your programs. |
false |
|
Putting ____________________ in front of a logical expression reverses the value of that logical expression. |
! |
|
C++ comes with a wealth of functions, called ____________________ functions, that are written by other programmers. |
predefined |
|
An example of a floating point data type is ____. int char double short |
double |
|
To generate a random number, you can use the function rand of the header file ____________________. |
cstdlib |
|
The devices that feed data and programs into computers are called ____ devices. entry input output secondary |
input |
|
The result of a logical expression cannot be assigned to an int variable, but it can be assigned to a boolvariable. |
false |
|
If a(n) ____________________ statement is placed in a do...while structure, the loop-continue test is evaluated immediately after this statement. |
continue |
|
Main memory is directly connected to the CPU. |
true |
|
A for loop is typically called a counted or ____________________ for loop. |
indexed |
|
The stream function ____________________ lets you put the last character extracted from the input stream by the get function back into the input stream. |
putback |
|
cin is called a(n) ____________________ object. |
istream |
|
The string expression strVar.____________________ inserts all the characters of str at index posinto strVar. |
insert(pos, str); |
|
The output of the statement: cout << tolower('$') << endl; is ____. a. '$' b. '0' c. '1' d. An error, because you cannot use tolower with '$'. |
$ |
|
Using functions greatly enhances a program’s readability because it reduces the complexity of the function main. |
true |
|
A(n) ____________________ is a collection of statements, and when it is activated, or executed, it accomplishes something. |
function |
|
The smallest individual unit of a program written in any language is called a(n) ____________________. |
token |
|
A(n) ____ consists of data and the operations on those data. disk compiler interpreter object |
object |
|
Suppose str = "ABCDEFGHI". The output of the statement cout << str.length() << endl; is ____. 7 8 9 10 |
9 |
|
What is the value of x after the following statements execute? int x; x = (5 <= 3 && 'A' < 'F') ? 3 : 4 2 3 4 5 |
4 |
|
When a value of one data type is automatically changed to another data type, a(n) ____________________ type coercion is said to have occurred. |
implicit |
|
The extraction operator >> skips only all leading blanks when searching for the next data in the input stream. |
false |
|
An enumeration type can be passed as a parameter to a function only by value. |
false |
|
No arithmetic operations are allowed on the enumeration type. |
true |
|
In C++, [] is called the array subscript operator. |
true |
|
The following statements will result in input failure if the input values are not on a separate line. (Assume that x and y are int variables.) cin >> x; cin >> y; |
false |
|
The expression static_cast(9.9) evaluates to ____. |
9 |
|
Word processors, spreadsheets, and games are examples of ____________________. |
applications |
|
Considering the statement string str = "Gone with the wind";, the output of the statementcout << str.find("the") << endl; is ____. |
10 |
|
____________________ rules determine the meaning of instructions. |
semantic |
|
When you want to process only partial data, you can use the stream function ____ to discard a portion of the input. clear skip delete ignore |
ignore |
|
To develop a program to solve a problem, you start by ____. analyzing the problem implementing the solution in C++ designing the algorithm entering the solution into a computer system |
analyzing the problem |
|
For a program to use the assert function, it must include which of the following? #include assert #include cassert #include assertc #include NDEBUG |
cassert |
|
Suppose that ch1 and ch2 are char variables, alpha is an int variable, and the input is: A 18 What are the values after the following statement executes? cin.get(ch1); cin.get(ch2); cin >> alpha; ch1 = 'A', ch2 = ' ', alpha = 18 ch1 = 'A', ch2 = '1', alpha = 8 ch1 = 'A', ch2 = ' ', alpha = 1 ch1 = 'A', ch2 = '\n', alpha = 1 |
ch1 = 'A', ch2 = ' ', alpha = 18 |
|
The ____ is the brain of the computer and the single most expensive piece of hardware in your personal computer. MM ROM RAM CPU |
cpu |
|
Suppose that x is an int variable, y is a double variable, z is an int variable, and the input is: 15 76.3 14 Choose the values after the following statement executes: cin >> x >> y >> z; x = 15, y = 76, z = 14 x = 15, y = 76, z = 0 x = 15, y = 76.3, z = 14 x = 15.0, y = 76.3, z = 14.0 |
x = 15, y = 76.3, z = 14 |
|
____ are executable statements that inform the user what to do. Variables Prompt lines Named constants Expressions |
Prompt lines |
|
An operator that has only one operand is called a unique operator. |
false |
|
In a while and for loop, the loop condition is evaluated before executing the body of the loop. Therefore,while and for loops are called ____________________ loops. |
pretest |
|
The declaration int a, b, c; is equivalent to which of the following? inta , b, c; int a,b,c; int abc; int a b c; |
int a,b,c; |
|
Which of the following is the “not equal to” relational operator? |
!= |
|
In C++, the logical operator AND is represented by ____________________. |
&& |
|
Suppose that alpha and beta are int variables. The statement alpha = --beta; is equivalent to the statement(s) ____. |
beta = beta - 1; alpha = beta; |
|
____ is a parameterized stream manipulator. endl fixed scientific setfill |
setfill |
|
Consider the following code. // Insertion Point 1 using namespace std; const float PI = 3.14; int main() { //Insertion Point 2 float r = 2.0; float area; area = PI * r * r; cout << "Area = " << area << endl; return 0; } // Insertion Point 3 where does the include statement belong? |
insertion 1 |
|
Consider the following code. int limit; int reps = 0; cin >> limit; while (reps < limit) { cin >> entry; triple = entry * 3; cout << triple; reps++; } cout << endl; This code is an example of a(n) ____ while loop flag-controlled counter-controlled EOF-controlled sentinel-controlled |
counter |
|
Suppose that x and y are int variables, z is a double variable, and the input is: 28 32.6 12 Choose the values of x, y, and z after the following statement executes: cin >> x >> y >> z; x = 28, y = 32, z = 0.6 x = 28, y = 32, z = 12.0 x = 28, y = 12, z = 32.6 x = 28, y = 12, z = 0.6 |
x = 28 y = 32 z = 0.6 |
|
Suppose that count is an int variable and count = 1. After the statement count++; executes, the value of count is ____. 1 2 3 4 |
2 |
|
A program called a(n) ____ combines the object program with the programs from libraries. assembler decoder linker compiler |
linker |
|
Suppose that ch1 and ch2 are char variables and the input is: WXYZ What is the value of ch2 after the following statements execute? cin >> ch1; ch2 = cin.peek(); cin >> ch2; W X Y Z |
x |
|
Assume the following. static_cast('a') = 97 static_cast('A') = 65 The output of the statement: cout << static_cast(tolower('B')) << endl; is ____. a. 65 b. 67 c. 96 d. 98 |
98 |
|
____ consists of 65,536 characters. ASCII-8 ASCII Unicode EBCDIC |
unicode |
|
Suppose that str1 and str2 are string variables. After the following statements execute, the value ofstr2 is "____________________". str1 = "abc"; str2 = str1 + '-'; str2 = str2 + "xyz"; |
abc:xyz |
|
The ____ statement can be used to eliminate the use of certain (flag) variables. while switch break if |
break |
|
If the formal parameter list of a function is empty, the parentheses after the function name are not needed. |
false |
|
Entering a char value into an int variable causes serious errors, called input failure. |
true |
|
Suppose that alpha and beta are int variables. The statement alpha = ++beta; is equivalent to the statement(s) ____. |
beta = beta + 1; alpha = beta; |
|
____ is a valid int value. 46,259 46259 462.59 -32.00 |
46259 |
|
The basic commands that a computer performs are input (get data), output (display result), storage, and performance of arithmetic and logical operations. |
true |
|
In a C++ program, ____________________ are used to separate special symbols, reserved words, and identifiers. |
whitespace |
|
The functions get, ignore, and so on are members of the data type ____________________. |
istream |
|
Suppose that outFile is an ofstream variable and output is to be stored in the file outputData.out. Which of the following statements opens the file outputData.out and associates outFile to the output file? outFile("outputData.out"); outFile.open("outputData.out"); open(outFile,"outputData.out"); open.outFile("outputData.out"); |
outFile.open("outputData.out"); |
|
____________________ functions are those that have already been written and are provided as part of the system. |
predefined |
|
The following is a valid C++ enumeration type: enum places {1ST, 2ND, 3RD, 4TH};. |
false |
|
Information stored in main memory must be transferred to some other device for permanent storage. |
true |
|
Given the function prototype: double testAlpha(int u, char v, double t); which of the following statements is legal? a. cout << testAlpha(5, 'A', 2); b. cout << testAlpha(5.0, "65", 2.0); c. cout << testAlpha( int 5, char 'A', int 2); d. cout << testAlpha('5.0', 'A', '2.0'); |
a. cout << testAlpha(5, 'A', 2); |
|
The manipulator ____________________ is used to output the value of an expression in a specific number of columns. |
setw |
|
What does <= mean? less than greater than less than or equal to greater than or equal to |
less than or equal to |
|
Suppose found = true and num = 6. The value of the expression (!found) || (num > 6) is ____________________. |
false |
|
The scope of a namespace member is local to the ____. function block file namespace |
namespace |
|
The values in the domain of an enumeration type are called ____________________. |
enumerators |
|
Manipulators without parameters are part of the ____ header file. iostream iomanip ifstream pmanip |
iostream |
|
Which of the following is a repetition structure in C++? if switch while...do do...while |
do...while |
|
The following return statement returns the value 10.return 10, 16; |
false |
|
Putting a semicolon after the parentheses following the expression in an if statement (that is, before the statement) is a(n) ____________________ error. |
semantic |