1 Left uncaught, a thrown exception will cause your program to terminate. Select
ID: 3560621 • Letter: 1
Question
1
Left uncaught, a thrown exception will cause your program to terminate.
Select one:
a. FALSE
b. TRUE
2
Only a pointer variable can be set to have the value NULL.
Select one:
a. TRUE
b. FALSE
3
Only a class method can be marked virtual.
Select one:
a. TRUE
b. FALSE
4
For a class Foo, one difference between a variable declared Foo * and a variable declared Foo & is that only the variable declared Foo & can potentially have the value NULL.
Select one:
a. FALSE
b. TRUE
5
Whenever they are passed as parameters to a function, the IO classes istream and ostream must be passed using a pass-by-value parameter passing scheme.
Select one:
a. TRUE
b. FALSE
6
When no class constructors are supplied by the author of a class, C++ itself supplies a default constructor that does nothing.
Select one:
a. TRUE
b. FALSE
7
The body of a do { ... } while(...); loop may never execute at all, depending on what test condition is stated.
Select one:
a. FALSE
b. TRUE
8
The body of a while(...) { ... } loop may never execute depending on what test condition is stated.
Select one:
a. FALSE
b. TRUE
9
A throw(...) statement is an alternative way to return from a function or method that indicates some kind of failure occurred.
Select one:
a. TRUE
b. FALSE
Please consider the following code fragment when answering the next few questions:
char[] var1 =Explanation / Answer
1 > Left uncaught, a thrown exception will cause your program to terminate.
Select one:
a. FALSE
b. TRUE
2 > Only a pointer variable can be set to have the value NULL.
Select one:
a. TRUE
b. FALSE
3 > Only a class method can be marked virtual.
Select one:
a. TRUE
b. FALSE
4 > For a class Foo, one difference between a variable declared Foo * and a variable declared Foo & is that only the variable declared Foo & can potentially have the value NULL.
Select one:
a. FALSE
b. TRUE
5 > Whenever they are passed as parameters to a function, the IO classes istream and ostream must be passed using a pass-by-value parameter passing scheme.
Select one:
a. TRUE
b. FALSE
6 > When no class constructors are supplied by the author of a class, C++ itself supplies a default constructor that does nothing.
Select one:
a. TRUE
b. FALSE
7 > The body of a do { ... } while(...); loop may never execute at all, depending on what test condition is stated.
Select one:
a. FALSE
b. TRUE
8 > The body of a while(...) { ... } loop may never execute depending on what test condition is stated.
Select one:
a. FALSE
b. TRUE
9 > A throw(...) statement is an alternative way to return from a function or method that indicates some kind of failure occurred.
Select one:
a. TRUE
b. FALSE
Please consider the following code fragment when answering the next few questions:
char[] var1 =Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.