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
LOOPS IN C++

Quiz
•
10th Grade - University
10 questions
Looping Statement

Quiz
•
University
5 questions
Quiz 3

Quiz
•
University
15 questions
Java Programming

Quiz
•
University
15 questions
ARRAYLIST - JAVA

Quiz
•
University
15 questions
Python introduction

Quiz
•
University
13 questions
Cuestionario de C++

Quiz
•
University
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
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University