Q4_Quiz1 in CompSci7_AY2024-25

Q4_Quiz1 in CompSci7_AY2024-25

7th Grade

15 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

4th - 8th Grade

12 Qs

Edublocks nested if

Edublocks nested if

6th - 12th Grade

18 Qs

Codebots 3

Codebots 3

7th - 9th Grade

10 Qs

Avaliação Pensamento Computacional - Prático

Avaliação Pensamento Computacional - Prático

1st Grade - Professional Development

10 Qs

Python

Python

5th - 7th Grade

20 Qs

Programming - Selection in an Algorithm

Programming - Selection in an Algorithm

1st - 11th Grade

10 Qs

Python Quiz - 4

Python Quiz - 4

6th - 8th Grade

10 Qs

KS3 Computing - An Introduction to Selection

KS3 Computing - An Introduction to Selection

7th - 9th Grade

10 Qs

Q4_Quiz1 in CompSci7_AY2024-25

Q4_Quiz1 in CompSci7_AY2024-25

Assessment

Quiz

Computers

7th Grade

Medium

Created by

michael manalo

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python relies on indentation (whitespace at the beginning of a line) to define scope in the code.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you have only one statement to execute, you can put it on the same line as the if statement.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An if statement without indentation will raise an error.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you have only one statement to execute, one for if and one for else, you cannot put it all on the same line.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ____ keyword is Python's way of saying, "If the previous conditions were not true, then try this condition."

Else

Case

Elif

While

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This keyword catches anything that isn't caught by the preceding conditions.

True

Else

Elif

For

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ___ keyword is a logical operator, and is used to reverse the result of the conditional statement.

And

Or

Not

Else

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?