Module 6: Selection Structures

Module 6: Selection Structures

University

10 Qs

quiz-placeholder

Similar activities

G7B_Quiz1_2T

G7B_Quiz1_2T

University

15 Qs

C programming-1

C programming-1

University

13 Qs

Pyflask2020

Pyflask2020

KG - Professional Development

10 Qs

Quiz 1

Quiz 1

University

10 Qs

TECHNICAL C PROGRAM

TECHNICAL C PROGRAM

University

10 Qs

Python Revision

Python Revision

University

14 Qs

002_Java Methods

002_Java Methods

12th Grade - University

15 Qs

Java Method

Java Method

University

15 Qs

Module 6: Selection Structures

Module 6: Selection Structures

Assessment

Quiz

Computers

University

Hard

Created by

ROBERT JONAS SALAZAR TAN

Used 8+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?