G12- Selection and Decision Making- Flash cards

G12- Selection and Decision Making- Flash cards

Assessment

Flashcard

Computers

12th Grade

Easy

Created by

Sherin Kamel

Used 3+ times

FREE Resource

Student preview

quiz-placeholder

16 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the purpose of selection in a computer program?

Back

Selection is used to make decisions based on conditions.

2.

FLASHCARD QUESTION

Front

What keywords are used for selection in Python?

Back

The keywords are if, elif, and else.

3.

FLASHCARD QUESTION

Front

What does the elif keyword stand for?

Back

elif stands for 'else if'.

4.

FLASHCARD QUESTION

Front

What is the significance of indentation in Python?

Back

Indentation is crucial as it defines the blocks of code under if, elif, and else statements.

5.

FLASHCARD QUESTION

Front

What will happen if you forget to include a colon at the end of an if statement?

Back

It will produce a syntax error.

6.

FLASHCARD QUESTION

Front

What is the difference between a single = and a double == in Python?

Back

A single = is an assignment operator, while a double == is an equality operator used for comparison.

7.

FLASHCARD QUESTION

Front

What does the comparison operator >= mean?

Back

>= means 'greater than or equal to'.

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?