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
10 questions
Informatika x

Quiz
•
University
8 questions
C# Conditions Quiz

Quiz
•
University
7 questions
Tutorium 7 - Prog2

Quiz
•
University
10 questions
PHP

Quiz
•
University
10 questions
CSC126_Chapter4_Part1

Quiz
•
University
15 questions
Qûîz

Quiz
•
University
11 questions
Programming I Quiz 1

Quiz
•
University
10 questions
FST Class 2023- Quiz 2

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University