C++ Assessment

C++ Assessment

University

10 Qs

quiz-placeholder

Similar activities

C Programming Quiz-6

C Programming Quiz-6

University

10 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Python

Python

University

10 Qs

Python Control Statements

Python Control Statements

University

10 Qs

Python Basics Quiz 1

Python Basics Quiz 1

8th Grade - University

15 Qs

Arduino

Arduino

KG - University

8 Qs

Quiz 2

Quiz 2

University

10 Qs

Quiz 3

Quiz 3

University

10 Qs

C++ Assessment

C++ Assessment

Assessment

Quiz

Computers

University

Hard

Created by

Amit Maan

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What will be the output of the following C++ code?

Hello

World

error

Hello World

2.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

Which of the following C++ code will give error on compilation?

Code 1 only

Neither code 1 nor code

Both code 1 and code 2

Code 2 only

3.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What is the value of p in the following C++ code snippet?

12

0

2

16

4.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What will be the output of the following C++ code?

Segmentation fault

Nothing is printed

Error

cin: garbage value

5.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What will be the output of the following C++ code?

30

error

segmentation fault

870

6.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What will be the output of the following C++ program?

Sanfoundry!

Sanfoundry!.

Sanfoundry.

Sanfoundry.!

7.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

Media Image

What will be the output of the following C++ code snippet?

10.0 5

10 2.5

10.0 5.0

5.0 2.5

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?