In C++ can we use multiple if statements in nested if statement.
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
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 Quizizz
11 questions
Quiz 2: C++ Basics

Quiz
•
University
10 questions
FOP - CHAPTER 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
15 questions
Quiz Ke 6 alprog if-09

Quiz
•
University
9 questions
Test-C++Tablouri unidiensionale-prof. Tudor V

Quiz
•
10th Grade - University
10 questions
Visita de Maristas 2024

Quiz
•
University
9 questions
C++ Puntatori

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade