C++ Quiz 2

Quiz
•
Computers
•
8th Grade
•
Medium
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
Similar Resources on Wayground
10 questions
Programming in Java

Quiz
•
8th Grade
16 questions
Python Revision

Quiz
•
8th Grade
18 questions
HTML5 CodeHS Basics

Quiz
•
8th - 12th Grade
15 questions
HTML & CSS Quiz

Quiz
•
8th Grade
11 questions
Control Structures - Selection in Python

Quiz
•
8th Grade - University
20 questions
Checkpoint 1 Revision

Quiz
•
8th Grade
15 questions
C++ While Loops

Quiz
•
6th - 8th Grade
11 questions
C++ Functions

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade