ExamVeda
Login
Home
41
What is the purpose of the 'break' statement in a loop in C++?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
42
What is the correct way to define a constant named 'PI' with a value of 3.14159 in C++?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
43
What is the output of the following code: cout << (10 % 3); in C++?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
44
What will be the output of the following program in both C and C++?
#include<stdio.h>
int main(int argc, char const *argv[])
{
	printf("%d\n", (int)sizeof('a'));
	return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
45
What happens if a class does not have a name?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
46
Which of the following escape sequence represents carriage return?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
47
What are the formal parameters in C++?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
48
Which of the following is a static polymorphism mechanism?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
49
What if we define the below structure in C and C++?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
50
Which of the following is true?
I. All operators in C++ can be overloaded.
II. The basic meaning of an operator can be changed.
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board