C++ Quiz 2

C++ Quiz 2

8th Grade

15 Qs

quiz-placeholder

Similar activities

Python Review Quiz

Python Review Quiz

7th - 9th Grade

20 Qs

Python list

Python list

8th Grade

20 Qs

Class VIII_Basic Python Programming Quiz

Class VIII_Basic Python Programming Quiz

8th Grade

10 Qs

Calculator

Calculator

2nd - 8th Grade

15 Qs

Time Table

Time Table

3rd - 8th Grade

15 Qs

Unit 2 Lesson 2 Intro to HTML

Unit 2 Lesson 2 Intro to HTML

7th - 8th Grade

20 Qs

Programare cu C++ nivel incepatori 3

Programare cu C++ nivel incepatori 3

6th - 8th Grade

10 Qs

Database Knowledge Check 2

Database Knowledge Check 2

6th - 8th Grade

12 Qs

C++ Quiz 2

C++ Quiz 2

Assessment

Quiz

Computers

8th Grade

Medium

Created by

Thanuja V

Used 5+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To go to new line, we can use ________

endl

;

\endl

/endl

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do write single line comment in C++?

/*comment

#comment

//comment

/*comment*/

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a multiline comments in C++?

/*comment*/

//comment

#comment

/comment/

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can we declare multiple variables in single line?

Yes

NO

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the int size(in bytes)?

2

3

4

5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the correct syntax of Ternary Operator

(percentage>40) "passed" : "Failed"

(percentage>40) ? "passed" ; "Failed"

(percentage>40) ? "passed" : "Failed"

(percentage>40) ? passed : Failed

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

sqrt(244)

12

19

32

6

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?