C++ Quiz 2

C++ Quiz 2

8th Grade

15 Qs

quiz-placeholder

Similar activities

CLASS 8 CODING

CLASS 8 CODING

8th Grade

10 Qs

Basic Python Programming_Class VIII

Basic Python Programming_Class VIII

8th Grade

10 Qs

CodeHS Unit 5

CodeHS Unit 5

8th - 12th Grade

20 Qs

HTML Links/Images/Maps

HTML Links/Images/Maps

7th - 12th Grade

15 Qs

Python_Start

Python_Start

5th - 12th Grade

10 Qs

Web Design Creating Part 1

Web Design Creating Part 1

8th Grade

13 Qs

AQA GCSE Computer Science - 3.1.1 Representing algorithms

AQA GCSE Computer Science - 3.1.1 Representing algorithms

8th - 10th Grade

19 Qs

MTA HTML CSS Session 1

MTA HTML CSS Session 1

7th - 9th Grade

18 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?