
C++ quiz 6

Quiz
•
Professional Development
•
Professional Development
•
Medium
cybernaut c++team
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many Types of loops are there?
1
4
3
2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
odd one out
while
dowhile
for
Switch
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct Syntax .
for(initialization,condition,increment/decrement)
for(initialization,condition,increment/decrement);
for(initialization;condition;increment/decrement)
for(initialization;condition;increment/decrement);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for(int i=0;i<5;i++)
{
cout<<"hello";
}
how many times does the loop runs.
4
5
6
0
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for(int i=1;i<5;i++)
{
if(i==3)
{
break;
}
cout<<i<<" ";
}
what is the output of the program?
1 2
1 2 3
1 2 3 4
1 2 3 4 5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
what is syntax of continue statement?
continue
continue;
cont;
cont
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the operation for break statement?
It skips the specific condition.
It terminates the loop when the specific condition is reached
It terminate the whole loop
No output
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Three HVAC Diagnostic Scenarios

Quiz
•
Professional Development
10 questions
Unsafe Condition and Unsafe Act

Quiz
•
10th Grade - Professi...
10 questions
History taking and Physical exams

Quiz
•
Professional Development
10 questions
occupational health and safety

Quiz
•
Professional Development
10 questions
Time Management & Prioritization

Quiz
•
Professional Development
8 questions
Vocabulary: ADVERTISING TRENDS

Quiz
•
Professional Development
15 questions
Comparative 1 & 2

Quiz
•
Professional Development
10 questions
6.0 SAFe SM 6.0 L3

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade