PF selection statement

PF selection statement

1st Grade

5 Qs

quiz-placeholder

Similar activities

Quiz sur les Boucles et Tableaux en C++

Quiz sur les Boucles et Tableaux en C++

1st Grade

10 Qs

Основные операции в SQL

Основные операции в SQL

1st Grade

10 Qs

Smart Choices Online: Test Your Knowledge!

Smart Choices Online: Test Your Knowledge!

1st - 6th Grade

10 Qs

Parts of Computer

Parts of Computer

1st Grade

9 Qs

Test 2: Estructuras de Control (if, switch)

Test 2: Estructuras de Control (if, switch)

1st Grade

10 Qs

Evaluation2 1ère S5

Evaluation2 1ère S5

1st Grade

10 Qs

Ветвление

Ветвление

1st Grade - University

8 Qs

Estruturas de seleção e repetição - IFTO

Estruturas de seleção e repetição - IFTO

1st Grade

10 Qs

PF selection statement

PF selection statement

Assessment

Quiz

Information Technology (IT)

1st Grade

Hard

Created by

MUHAMMAD (PBU)

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify which is NOT the type of selection control structure

if-else

nested if

do while

switch case

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

choose the syntax for an 'if' statement

if(condition)

if condition

condition if

if {condition}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

choose the correct syntax to write condition based on the statement below

"if sum is equal to 32 and total is equal to 2"

if (sum==32) || (total==2)

if (sum==32) && (total==2)

if (sum=32) || (total=2)

if (sum=32) && (total=2)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

identify the value of 'y' after the switch statement in figure is executed

0

1

5

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"if sum is less or equal to 25 and average is equal to 45"

The sentence is the condition statement in a selection control structure. Identify the CORRECT statement to write the condition statement in C++

if (sum <= 25) || (average == 45)

if (sum <= 25) && (average == 45)

if (sum = 25) && (average = 45)

if (sum < 25) || (average = 45)