C++ Assessment

C++ Assessment

University

10 Qs

quiz-placeholder

Similar activities

Hệ Điều Hành Của Máy Tính

Hệ Điều Hành Của Máy Tính

10th Grade - University

10 Qs

FSA,DFA dan NFA

FSA,DFA dan NFA

University

15 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

Node.js

Node.js

University

10 Qs

CS Open House

CS Open House

University

10 Qs

GUESS THE ANSWER

GUESS THE ANSWER

University

10 Qs

Software Testing

Software Testing

University

10 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

C++ Assessment

C++ Assessment

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Amit Maan

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers