C++ Training-Day 1_Quiz

C++ Training-Day 1_Quiz

University

10 Qs

quiz-placeholder

Similar activities

C Programming Quiz-5

C Programming Quiz-5

University

10 Qs

Control Statements - Java

Control Statements - Java

University

15 Qs

Array in C

Array in C

University

10 Qs

C programming-1

C programming-1

University

13 Qs

C Programming quiz 3

C Programming quiz 3

University

10 Qs

Java Static

Java Static

University

10 Qs

Tech Quiz Round-2

Tech Quiz Round-2

University

15 Qs

Java Operators

Java Operators

University

14 Qs

C++ Training-Day 1_Quiz

C++ Training-Day 1_Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Ragini Kumari

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

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

Media Image

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

Media Image

Predict the output of following program.

5

6

0

Compile time error

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

What will be the output of following program?

Compile error

Hi

HelloHi

Hello

5.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

What will be the output of following program?

10

Garbage

Runtime Error

Compile Error

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?