
OOPs through C++ Quiz(data types, variables, conditional stmts)

Quiz
•
Computers
•
University
•
Easy
Anjana B
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a function in C++?
if statement
for loop
switch case
cout statement
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following loops will execute at least once in C++?
for loop
while loop
do while loop
switch case
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to switch between different cases in C++?
for loop
while loop
do while loop
switch case
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to comment a single line of code in C++?
//comment
/*comment
*/comment
#comment
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to comment multiple lines of code in C++?
//comment
/*comment*/
*/comment*/
#comment
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used to declare a variable in C++?
var
val
const
int
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are arrays in C++?
A set of statements that perform logical operations
A type of loop
A way of storing multiple values of the same data type
A pointer
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
Introduction to Java

Quiz
•
University
30 questions
Final C Quiz

Quiz
•
University
30 questions
Python Mock

Quiz
•
University
30 questions
Les bases de la programmation en Python

Quiz
•
University
29 questions
REV4- Antenna Systems Part 3

Quiz
•
University
25 questions
C++ Pre-Test

Quiz
•
University
31 questions
N5 High Priority

Quiz
•
12th Grade - University
30 questions
CS 211 - Midterm Review

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University