Question 1 Not yet answered Marked out of 2.00 Flag question Question text Left
ID: 640783 • Letter: Q
Question
Question 1
Not yet answered
Marked out of 2.00
Flag question
Question text
Left uncaught, a thrown exception will cause a compile error.
Select one:
a. TRUE
b. FALSE
Question 2
Not yet answered
Marked out of 2.00
Flag question
Question text
A variable of any type can be set to have the value NULL.
Select one:
a. TRUE
b. FALSE
Question 3
Not yet answered
Marked out of 2.00
Flag question
Question text
Any function, variable declaration or class method can be marked virtual.
Select one:
a. FALSE
b. TRUE
Question 4
Not yet answered
Marked out of 2.00
Flag question
Question text
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
Question 5
Not yet answered
Marked out of 2.00
Flag question
Question text
Whenever they are passed as parameters to a function, the IO classes istream and ostream must be passed using a pass-by-reference parameter passing scheme.
Select one:
a. TRUE
b. FALSE
Question 6
Not yet answered
Marked out of 2.00
Flag question
Question text
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
Question 7
Not yet answered
Marked out of 2.00
Flag question
Question text
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
Question 8
Not yet answered
Marked out of 2.00
Flag question
Question text
The body of a while(...) { ... } loop may never execute depending on what test condition is stated.
Select one:
a. TRUE
b. FALSE
Question 9
Not yet answered
Marked out of 2.00
Flag question
Question text
A throw(...) statement is an alternative way to return from a function or method that indicates some kind of failure occurred.
Select one:
a. FALSE
b. TRUE
Information
Flag question
Information text
Please consider the following code fragment when answering the next few questions:
char[] var1 =Explanation / Answer
1 True, because any exception which is thrown but not caught will always throw an exception
2 FALSE
3 FALSE
4 False, because Foo* is a pointer to a reference and can refer to NULL where as foo& refer to an address and can never be null.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.