Nested Statement

Quiz
•
Computers
•
University
•
Easy
AZLINA MYDIN
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
FOP - RECAP CHAP 3

Quiz
•
University
10 questions
Topic2: If method

Quiz
•
University
10 questions
Quiz 1

Quiz
•
University
12 questions
Quiz 9: Pointer

Quiz
•
University
11 questions
Quiz 2: C++ Basics

Quiz
•
University
10 questions
Quiz 3

Quiz
•
University
10 questions
Excel IF and Nested IF Functions Quiz

Quiz
•
12th Grade - University
10 questions
Quiz Ke 8 alprog if-09

Quiz
•
University
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