
C++ Training-Day 1_Quiz
Authored by Ragini Kumari
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What is the output of following program?
x = garbage value y = garbage value
x = 0 y = 0
Compiler Error
None of the above
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What is the output of the code?
Compiler Error
x = 0 y = 0
x = garbage value y = garbage value
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Predict the output of following program.
5
6
0
Compile time error
4.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What will be the output of following program?
Compile error
Hi
HelloHi
Hello
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What will be the output of following program?
10
Garbage
Runtime Error
Compile Error
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What will be the output of following program?
6553
6533
6522
12200
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which rule will not affect the friend function?
private and protected members of a class cannot be accessed from outside
private and protected member can be accessed anywhere
None of the mentioned
Both a and b
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?