ExamVeda
Login
Home
1
When the function int someFunction(char c) throw( ) is executed, _____
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
2
The two statements that can be used to change the flow of control are
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
3
If p and q are assigned the values 2 and 3 respectively then the statement p = q++
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
4
Which of the following is the insertion operator?
Discuss
Answer & Solution
Answer: Option B
Solution:
The insertion operator in C++ is used to insert data into an output stream, such as cout.

Option A: >> - This is the extraction operator, used to extract data from an input stream, such as cin.

Option B: << - This is the insertion operator, used to insert data into an output stream, such as cout.

Option C: // - This denotes a single-line comment in C++.

Option D: / - This denotes the beginning of a multi-line comment in C++, which ends with /.

Option E: both (a) and (b) - This is incorrect because only Option B: << is the insertion operator.

Therefore, the correct answer is Option B: <<.
5
If you want only one memory location to be reserved for a class variable, no matter how many objects are instantiated, you should declare the variable as
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
6
To use a template class member function, use the ________ with the instantiation
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
7
When a class is derived from another derived class, the newly derived class
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
8
If you assign a default value to any variable in a function prototype's parameter list, then _____
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
9
The dot operator (or class member access operator) connects the following two entities (reading from left to right):
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
10
Which of the following calls a function named displayName, passing it no actual arguments?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board