Nested Statement

Nested Statement

University

10 Qs

quiz-placeholder

Similar activities

PHAR AD - QUIZ 5 (Management Info System)

PHAR AD - QUIZ 5 (Management Info System)

University

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

CHAPTER 1: COMPUTER SECURITY REVIEW

CHAPTER 1: COMPUTER SECURITY REVIEW

University

10 Qs

Basic on Operating System

Basic on Operating System

University

10 Qs

Evaluasi Pertemuan 12 DRPL TI-3B

Evaluasi Pertemuan 12 DRPL TI-3B

University

15 Qs

Pythonintro

Pythonintro

University

15 Qs

Pop Quiz- Abstraction, Algorithm

Pop Quiz- Abstraction, Algorithm

University

14 Qs

AWS ACF Módulo 2 - Economia e Faturamento na Nuvem

AWS ACF Módulo 2 - Economia e Faturamento na Nuvem

University

15 Qs

Nested Statement

Nested Statement

Assessment

Quiz

Computers

University

Practice Problem

Easy

Created by

AZLINA MYDIN

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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";
          }
}

Switch
If Else if 
If else (binary choice)
Nested If

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers