Search Header Logo

Module 6: Selection Structures

Authored by ROBERT JONAS SALAZAR TAN

Computers

University

Used 8+ times

Module 6: Selection Structures
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Having an if statement requires an else statement to follow.

True

False

Cannot be determined

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A TRUE value can also be represented in programming as

0

1

Yes

No

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A structure used to perform decision making and then branch the program flow based on the outcome of decision making.

Looping Structure

Selection Structure

Data Structure

Building Structure

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is/ are the proper syntax of an if statement?

if (expression)

statement;

if (expression) {

statement1;

statement2;

}

if (expression) { statement1; statement 2; }

All syntax are correct.

No syntax is correct.

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

The following code is evaluated:

if (1)

{

printf("Hello World");

}

What will happen when executed?

Nothing will happen

Syntax Error

Display "Hello World"

Display "Hello"

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

The following code is evaluated:

if (3)

{

printf("Hello World");

}

What will happen when executed?

Nothing will happen

Syntax Error

Display "Hello World"

Display "Hello"

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In an if...else if...else statement, an expression is true, the rest will no longer be checked.

True

False

Cannot be determined

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