Prog F: Quiz 1 Revision

Prog F: Quiz 1 Revision

6th - 8th Grade

20 Qs

quiz-placeholder

Similar activities

Python

Python

8th Grade

20 Qs

Grade 8 End of Unit Revision

Grade 8 End of Unit Revision

8th Grade - University

15 Qs

Python: Escape Sequences, Input(), Variables, Math and Numbers

Python: Escape Sequences, Input(), Variables, Math and Numbers

6th Grade

20 Qs

Python Basics Quiz

Python Basics Quiz

6th - 10th Grade

15 Qs

GCSE J277 - 2.2.3 - Arrays

GCSE J277 - 2.2.3 - Arrays

7th Grade

20 Qs

tic tac toe with ai

tic tac toe with ai

7th Grade

20 Qs

Milestone Exkul SMP SMA - Q8_2022_Python Exploration

Milestone Exkul SMP SMA - Q8_2022_Python Exploration

6th - 8th Grade

15 Qs

Combined Python Turtle 1&2

Combined Python Turtle 1&2

8th Grade

20 Qs

Prog F: Quiz 1 Revision

Prog F: Quiz 1 Revision

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Yasmin Basiran

Used 1+ times

FREE Resource

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

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?