Deck 5: Loops and Files

ملء الشاشة (f)
exit full mode
سؤال
This means to increase a value by one.

A)decrement
B)increment
C)modulus
D)parse
E)None of these
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
This statement may be used to stop a loop's current iteration and begin the next one.

A)break
B)terminate
C)re-iterate
D)continue
E)None of these
سؤال
This is a control structure that causes a statement or group of statements to repeat.

A)decision statement
B)constant
C)loop
D)cout object
E)None of these
سؤال
Something within a while loop must eventually cause the condition to become false, or a(n)________ results.

A)null value
B)infinite loop
C)unexpected exit
D)compiler error
E)None of these
سؤال
Look at the following statement. while <strong>Look at the following statement. while   Which operator is used first?</strong> A)++ B)< C)Neither. The expression is invalid. <div style=padding-top: 35px>
Which operator is used first?

A)++
B)<
C)Neither. The expression is invalid.
سؤال
This operator increments the value of its operand, then uses the value in context.

A)prefix increment
B)postfix increment
C)prefix decrement
D)postfix decrement
E)None of these
سؤال
The while loop contains an expression that is tested for a true or false value, and a statement or block that is repeated as long as the expression:

A)is false
B)is true
C)does not evaluate to true or false
D)evaluates to true or false
E)None of these
سؤال
If you place a semicolon after the test expression in a while loop, it is assumed to be a(n):

A)pre-test loop
B)post-test loop
C)null statement
D)infinite loop
E)None of these
سؤال
You may define a ________ in the initialization expression of a for loop.

A)constant
B)function
C)variable
D)new data type
E)None of these
سؤال
What is the output of the following code segment?
<strong>What is the output of the following code segment?  </strong> A)1 2 3 4 5 B)1 1 1... and on forever C)2 3 4 5 6 D)1 2 3 4 E)2 3 4 5 <div style=padding-top: 35px>

A)1 2 3 4 5
B)1 1 1... and on forever
C)2 3 4 5 6
D)1 2 3 4
E)2 3 4 5
سؤال
This is a variable that is regularly incremented or decremented each time a loop iterates.

A)constant
B)counter
C)control statement
D)null terminator
E)None of these
سؤال
In a for statement, this expression is executed only once.

A)test
B)null
C)initialization
D)validation
E)None of these
سؤال
The do-while loop is a(n)________ loop that is ideal in situations where you always want the loop to iterate at least once.

A)post-test
B)pre-test
C)infinite
D)null-terminated
E)None of these
سؤال
These are operators that add and subtract one from their operands.

A)plus and minus
B)++ and --
C)binary and unary
D)conditional and relational
E)None of these
سؤال
The while loop is this type of loop.

A)post-test
B)pre-test
C)infinite
D)limited
E)None of these
سؤال
The while loop has two important parts: an expression that is tested for a true or false value, and:

A)a statement or block that is repeated as long as the expression is true
B)a statement or block that is repeated only if the expression is false
C)one line of code that is repeated once, if the expression is true
D)a statement or block that is repeated once, if the expression is true
سؤال
When the increment operator precedes its operand, as in ++num1, the expression is in this mode.

A)postfix
B)prefix
C)preliminary
D)binary
E)None of these
سؤال
A loop that is inside another loop is called:

A)an infinite loop
B)a pre-test loop
C)a post-test loop
D)a nested loop
E)None of these
سؤال
A for statement contains three expressions: initialization, test, and

A)update
B)reversal
C)null
D)validation
E)None of these
سؤال
The statements in the body of a while loop may never be executed, whereas the statements in the body of a do-while loop will be executed:

A)at least once
B)at least twice
C)as many times as the user wishes
D)never
E)None of these
سؤال
What is the output of the following code segment?
<strong>What is the output of the following code segment?  </strong> A)1 2 3 4 5 B)1 1 1 ... and on forever C)2 3 4 5 6 D)1 2 3 4 E)2 3 4 5 <div style=padding-top: 35px>

A)1 2 3 4 5
B)1 1 1 ... and on forever
C)2 3 4 5 6
D)1 2 3 4
E)2 3 4 5
سؤال
This is a special value that marks the end of a list of values.

A)constant
B)variable
C)loop
D)sentinel
E)None of these
سؤال
To allow file access in a program, you must #include this header file.

A)file
B)fileaccess
C)fstream
D)cfile
سؤال
A file ________ is a small holding section of memory that file-bound information is first written to.

A)name
B)number
C)buffer
D)segment
E)None of these
سؤال
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0 <div style=padding-top: 35px>

A)6
B)5
C)7
D)0
سؤال
To write data to a file, you define an object of this data type.

A)outputFile
B)ifstream
C)fstream
D)ofstream
سؤال
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0 <div style=padding-top: 35px>

A)6
B)5
C)7
D)0
سؤال
To read data from a file, you define an object of this data type.

A)inputFile
B)ifstream
C)fstream
D)ofstream
سؤال
If you want a user to enter exactly 20 values, which loop would be the best to use?

A)do-while
B)for
C)while
D)infinite
E)None of these
سؤال
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0 <div style=padding-top: 35px>

A)6
B)5
C)7
D)0
سؤال
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0 <div style=padding-top: 35px>

A)6
B)5
C)7
D)0
سؤال
This statement may be used to stop a loop's current iteration and begin the next one.

A)break
B)terminate
C)return
D)continue
E)None of these
سؤال
The do-while loop is considered a(n)________ loop.

A)pre-test
B)post-test
C)infinite
D)limited
E)None of these
سؤال
This loop is a good choice when you know how many times you want the loop to iterate in advance of entering the loop.

A)do-while
B)while
C)for
D)infinite
E)None of these
سؤال
This statement causes a loop to terminate early.

A)stop
B)break
C)null
D)terminate
E)None of these
سؤال
This is a pre-test loop that is ideal in situations where you do not want the loop to iterate if the condition is false from the beginning.

A)do-while
B)while
C)for
D)infinite
E)None of these
سؤال
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0 <div style=padding-top: 35px>

A)6
B)5
C)7
D)0
سؤال
Assuming outFile is a file stream object and number is a variable, which statement writes the contents of number to the file associated with outFile?

A)write(outFile, number);
B)outFile >> number;
C)outFile << number;
D)number >> outFile;
سؤال
This may be used to write information to a file.

A)cout object
B)pen object
C)output object
D)stream insertion operator
E)None of these
سؤال
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0 <div style=padding-top: 35px>

A)6
B)5
C)7
D)0
سؤال
How many times will the following loop display "Hello"?
<strong>How many times will the following loop display Hello?  </strong> A)20 B)19 C)21 D)An infinite number of times <div style=padding-top: 35px>

A)20
B)19
C)21
D)An infinite number of times
سؤال
How many times will the following loop display "Hello"?
<strong>How many times will the following loop display Hello?  </strong> A)20 B)19 C)21 D)An infinite number of times <div style=padding-top: 35px>

A)20
B)19
C)21
D)An infinite number of times
سؤال
The scope of a variable declared in a for loop's initialization expression always extends beyond the body of the loop.
سؤال
If you want to stop a loop before it goes through all its iterations, the break statement may be used.
سؤال
You may not use the break statement in a nested loop.
سؤال
Multiple relational expressions cannot be placed into the test condition of a for loop.
سؤال
A while loop is somewhat limited, because the counter can only be incremented by one each time through the loop.
سؤال
The increment and decrement operators can be used in mathematical expressions; however, they cannot be used in relational expressions.
سؤال
A while loop's body can contain multiple statements, as long as they are enclosed in braces.
سؤال
The update expression of a for loop can contain more than one statement, e.g. counter++, total+= sales.
سؤال
Assuming dataFile is a file stream object, the statement: dataFile.close();

A)is illegal in C++
B)needs a filename argument to execute correctly
C)closes a file
D)is legal but risks losing valuable data
E)None of these
سؤال
The condition that is tested by a while loop must be enclosed in parentheses and terminated with a semicolon.
سؤال
You may not use the break and continue statements within the same set of nested loops.
سؤال
How many times will the following loop display "Hello"?
<strong>How many times will the following loop display Hello?  </strong> A)20 B)19 C)21 D)An infinite number of times <div style=padding-top: 35px>

A)20
B)19
C)21
D)An infinite number of times
سؤال
What will the following code display?
<strong>What will the following code display?  </strong> A)  B)0 C)6 D)3 <div style=padding-top: 35px>

A)<strong>What will the following code display?  </strong> A)  B)0 C)6 D)3 <div style=padding-top: 35px>
B)0
C)6
D)3
سؤال
How many times will the following loop display "Hello"?
<strong>How many times will the following loop display Hello?  </strong> A)20 B)19 C)21 D)An infinite number of times <div style=padding-top: 35px>

A)20
B)19
C)21
D)An infinite number of times
سؤال
An output file is a file that data is written to.
سؤال
A file must be ________ before data can be written to or read from it.

A)closed
B)opened
C)buffered
D)initialized
E)None of these
سؤال
You may nest while and do-while loops, but you may not nest for loops.
سؤال
An initialization expression may be omitted from the for loop if no initialization is required.
سؤال
It is possible to define a file stream object and open a file in one statement.
سؤال
string objects have a member function named c_str that returns the contents of the object formatted as a null-terminated C-string.
سؤال
In C++ 11 you can pass a string object as argument to a file stream object's open member function.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/63
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 5: Loops and Files
1
This means to increase a value by one.

A)decrement
B)increment
C)modulus
D)parse
E)None of these
increment
2
This statement may be used to stop a loop's current iteration and begin the next one.

A)break
B)terminate
C)re-iterate
D)continue
E)None of these
continue
3
This is a control structure that causes a statement or group of statements to repeat.

A)decision statement
B)constant
C)loop
D)cout object
E)None of these
loop
4
Something within a while loop must eventually cause the condition to become false, or a(n)________ results.

A)null value
B)infinite loop
C)unexpected exit
D)compiler error
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
5
Look at the following statement. while <strong>Look at the following statement. while   Which operator is used first?</strong> A)++ B)< C)Neither. The expression is invalid.
Which operator is used first?

A)++
B)<
C)Neither. The expression is invalid.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
6
This operator increments the value of its operand, then uses the value in context.

A)prefix increment
B)postfix increment
C)prefix decrement
D)postfix decrement
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
7
The while loop contains an expression that is tested for a true or false value, and a statement or block that is repeated as long as the expression:

A)is false
B)is true
C)does not evaluate to true or false
D)evaluates to true or false
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
8
If you place a semicolon after the test expression in a while loop, it is assumed to be a(n):

A)pre-test loop
B)post-test loop
C)null statement
D)infinite loop
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
9
You may define a ________ in the initialization expression of a for loop.

A)constant
B)function
C)variable
D)new data type
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
10
What is the output of the following code segment?
<strong>What is the output of the following code segment?  </strong> A)1 2 3 4 5 B)1 1 1... and on forever C)2 3 4 5 6 D)1 2 3 4 E)2 3 4 5

A)1 2 3 4 5
B)1 1 1... and on forever
C)2 3 4 5 6
D)1 2 3 4
E)2 3 4 5
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
11
This is a variable that is regularly incremented or decremented each time a loop iterates.

A)constant
B)counter
C)control statement
D)null terminator
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
12
In a for statement, this expression is executed only once.

A)test
B)null
C)initialization
D)validation
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
13
The do-while loop is a(n)________ loop that is ideal in situations where you always want the loop to iterate at least once.

A)post-test
B)pre-test
C)infinite
D)null-terminated
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
14
These are operators that add and subtract one from their operands.

A)plus and minus
B)++ and --
C)binary and unary
D)conditional and relational
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
15
The while loop is this type of loop.

A)post-test
B)pre-test
C)infinite
D)limited
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
16
The while loop has two important parts: an expression that is tested for a true or false value, and:

A)a statement or block that is repeated as long as the expression is true
B)a statement or block that is repeated only if the expression is false
C)one line of code that is repeated once, if the expression is true
D)a statement or block that is repeated once, if the expression is true
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
17
When the increment operator precedes its operand, as in ++num1, the expression is in this mode.

A)postfix
B)prefix
C)preliminary
D)binary
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
18
A loop that is inside another loop is called:

A)an infinite loop
B)a pre-test loop
C)a post-test loop
D)a nested loop
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
19
A for statement contains three expressions: initialization, test, and

A)update
B)reversal
C)null
D)validation
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
20
The statements in the body of a while loop may never be executed, whereas the statements in the body of a do-while loop will be executed:

A)at least once
B)at least twice
C)as many times as the user wishes
D)never
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
21
What is the output of the following code segment?
<strong>What is the output of the following code segment?  </strong> A)1 2 3 4 5 B)1 1 1 ... and on forever C)2 3 4 5 6 D)1 2 3 4 E)2 3 4 5

A)1 2 3 4 5
B)1 1 1 ... and on forever
C)2 3 4 5 6
D)1 2 3 4
E)2 3 4 5
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
22
This is a special value that marks the end of a list of values.

A)constant
B)variable
C)loop
D)sentinel
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
23
To allow file access in a program, you must #include this header file.

A)file
B)fileaccess
C)fstream
D)cfile
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
24
A file ________ is a small holding section of memory that file-bound information is first written to.

A)name
B)number
C)buffer
D)segment
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
25
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0

A)6
B)5
C)7
D)0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
26
To write data to a file, you define an object of this data type.

A)outputFile
B)ifstream
C)fstream
D)ofstream
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
27
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0

A)6
B)5
C)7
D)0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
28
To read data from a file, you define an object of this data type.

A)inputFile
B)ifstream
C)fstream
D)ofstream
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
29
If you want a user to enter exactly 20 values, which loop would be the best to use?

A)do-while
B)for
C)while
D)infinite
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
30
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0

A)6
B)5
C)7
D)0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
31
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0

A)6
B)5
C)7
D)0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
32
This statement may be used to stop a loop's current iteration and begin the next one.

A)break
B)terminate
C)return
D)continue
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
33
The do-while loop is considered a(n)________ loop.

A)pre-test
B)post-test
C)infinite
D)limited
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
34
This loop is a good choice when you know how many times you want the loop to iterate in advance of entering the loop.

A)do-while
B)while
C)for
D)infinite
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
35
This statement causes a loop to terminate early.

A)stop
B)break
C)null
D)terminate
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
36
This is a pre-test loop that is ideal in situations where you do not want the loop to iterate if the condition is false from the beginning.

A)do-while
B)while
C)for
D)infinite
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
37
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0

A)6
B)5
C)7
D)0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
38
Assuming outFile is a file stream object and number is a variable, which statement writes the contents of number to the file associated with outFile?

A)write(outFile, number);
B)outFile >> number;
C)outFile << number;
D)number >> outFile;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
39
This may be used to write information to a file.

A)cout object
B)pen object
C)output object
D)stream insertion operator
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
40
What will the following code display?
<strong>What will the following code display?  </strong> A)6 B)5 C)7 D)0

A)6
B)5
C)7
D)0
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
41
How many times will the following loop display "Hello"?
<strong>How many times will the following loop display Hello?  </strong> A)20 B)19 C)21 D)An infinite number of times

A)20
B)19
C)21
D)An infinite number of times
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
42
How many times will the following loop display "Hello"?
<strong>How many times will the following loop display Hello?  </strong> A)20 B)19 C)21 D)An infinite number of times

A)20
B)19
C)21
D)An infinite number of times
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
43
The scope of a variable declared in a for loop's initialization expression always extends beyond the body of the loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
44
If you want to stop a loop before it goes through all its iterations, the break statement may be used.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
45
You may not use the break statement in a nested loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
46
Multiple relational expressions cannot be placed into the test condition of a for loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
47
A while loop is somewhat limited, because the counter can only be incremented by one each time through the loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
48
The increment and decrement operators can be used in mathematical expressions; however, they cannot be used in relational expressions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
49
A while loop's body can contain multiple statements, as long as they are enclosed in braces.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
50
The update expression of a for loop can contain more than one statement, e.g. counter++, total+= sales.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
51
Assuming dataFile is a file stream object, the statement: dataFile.close();

A)is illegal in C++
B)needs a filename argument to execute correctly
C)closes a file
D)is legal but risks losing valuable data
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
52
The condition that is tested by a while loop must be enclosed in parentheses and terminated with a semicolon.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
53
You may not use the break and continue statements within the same set of nested loops.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
54
How many times will the following loop display "Hello"?
<strong>How many times will the following loop display Hello?  </strong> A)20 B)19 C)21 D)An infinite number of times

A)20
B)19
C)21
D)An infinite number of times
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
55
What will the following code display?
<strong>What will the following code display?  </strong> A)  B)0 C)6 D)3

A)<strong>What will the following code display?  </strong> A)  B)0 C)6 D)3
B)0
C)6
D)3
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
56
How many times will the following loop display "Hello"?
<strong>How many times will the following loop display Hello?  </strong> A)20 B)19 C)21 D)An infinite number of times

A)20
B)19
C)21
D)An infinite number of times
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
57
An output file is a file that data is written to.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
58
A file must be ________ before data can be written to or read from it.

A)closed
B)opened
C)buffered
D)initialized
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
59
You may nest while and do-while loops, but you may not nest for loops.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
60
An initialization expression may be omitted from the for loop if no initialization is required.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
61
It is possible to define a file stream object and open a file in one statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
62
string objects have a member function named c_str that returns the contents of the object formatted as a null-terminated C-string.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
63
In C++ 11 you can pass a string object as argument to a file stream object's open member function.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 63 في هذه المجموعة.