CSI U5L2 - Sequence & Selection

CSI U5L2 - Sequence & Selection

10th Grade

10 Qs

quiz-placeholder

Similar activities

Python Beginners Week 6

Python Beginners Week 6

3rd - 12th Grade

13 Qs

C++ Chapter 2

C++ Chapter 2

University

7 Qs

Python

Python

10th - 11th Grade

10 Qs

07 - Nested Structures

07 - Nested Structures

12th Grade

10 Qs

Visual Basic

Visual Basic

11th Grade

12 Qs

UAS-UP-AP-17122021

UAS-UP-AP-17122021

University

15 Qs

Yr 9 & Yr 10 recap

Yr 9 & Yr 10 recap

9th - 11th Grade

10 Qs

Unit 4 Review

Unit 4 Review

9th - 12th Grade

6 Qs

CSI U5L2 - Sequence & Selection

CSI U5L2 - Sequence & Selection

Assessment

Quiz

Computers

10th Grade

Easy

Created by

Crystal Clary

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes the concept of "selection" in programming?

Executing statements in a sequential order without any conditions.

Evaluating a condition and branching to different sections of code based on whether the condition is true or false.

Repeating a block of code multiple times until a condition is met.

Storing a value into a variable.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the pseudocode example provided, what is the purpose of the "else" statement?

To execute a block of code when the "if" condition is true.

To execute a block of code when the "if" condition is false.

To repeat a block of code until a condition is met.

To declare a variable.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following pseudocode: ``` IF num1 > num2 THEN larger = num1 ELSE larger = num2 ``` What will be the value of `larger` if `num1` is 5 and `num2` is 8?

5

8

0

13

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which logical operator would you use to check if both conditions are true in an "if" statement?

OR

AND

NOT

XOR

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a flowchart, what shape is typically used to represent a decision point?

Rectangle

Oval

Diamond

Parallelogram

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the following pseudocode, what will be the output if `angleA = 60`, `angleB = 60`, and `angleC = 60`? ``` sum = angleA + angleB + angleC IF sum = 180 AND angleA ≠ 0 AND angleB ≠ 0 AND angleC ≠ 0 THEN OUTPUT "Valid triangle" ELSE OUTPUT "Not a triangle" ```

Valid triangle

Not a triangle

Error

180

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a relational operator used to compare two values?

+

==

&&

||

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?