Search Header Logo

Prog F: Quiz 1 Revision

Authored by Yasmin Basiran

Computers

6th - 8th Grade

Used 1+ times

Prog F: Quiz 1 Revision
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A type of function

A special keyword

A container for storing data values

A type of loop

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in Python?

Using var keyword

By assigning a value, e.g., x = 10

Using let keyword

By calling a function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between = and == in Python?

oth are comparison operators

= is an assignment operator, == is a comparison operator

Both are assignment operators

= is used in loops, == in conditions

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 10 % 3?

3

10

0

1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you check if x is greater than y in Python?

x >= y

x < y

x > y

x != y

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a list in Python?

Using parentheses

Using curly braces

Using square brackets

Using angle brackets

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the first element of a list?

Using index 1

Using index 0

Using first()

Using list.first

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?