Nested Statement
Quiz
•
Computers
•
University
•
Practice Problem
•
Easy
AZLINA MYDIN
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++ can we use multiple if statements in nested if statement.
No
Yes
Only Once
Only Singgle
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In nested if statement which statement evaluated first ?
Inner
Outer
Nested
Closer
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++ how many levels of nested if statement is allowed!
Two
Four
Eight
Multiple
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Nested if statement with compound statements use the following parenthesis.
{ }
( )
[ ]
!!
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
WHICH TYPE OF DECISION STRUCTURE IS THIS?
if (x==10)
{
if (y==20)
{
cout<<"Coordinates: 10, 20";
}
}
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the output for the program segment below if the x value is 25?
if (x>=10)
{
if (y<=20)
{
cout<<"The number is below 20";
}
else
{
cout<<"The number is above 20";
}
}
else
cout<< "Number is below 10";
Number is below 10
The number is below 20
The number is above 20
error
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the output for the program segment below if the x value is 8?
if (x>=10)
{
if (y<=20)
{
cout<<"The number is below 20";
}
else
{
cout<<"The number is above 20";
}
}
else
cout<< "Number is below 10";
Number is below 10
The number is below 20
The number is above 20
error
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
LINUX MODULE 03 QUIZ
Quiz
•
University
11 questions
Java Quizz 2
Quiz
•
University
12 questions
Microsoft Office Word
Quiz
•
4th Grade - University
10 questions
python quiz
Quiz
•
6th Grade - Professio...
15 questions
8051-MCQ
Quiz
•
University
15 questions
Fundamentals of Algorithms - Unit 1 - Test 1
Quiz
•
University
10 questions
LEFT_RIGHT_MID Excel Functions Quiz
Quiz
•
9th Grade - University
10 questions
Digital Tools
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
