Prog F: Quiz 1 Revision

Prog F: Quiz 1 Revision

6th - 8th Grade

20 Qs

quiz-placeholder

Similar activities

Ch.8 - Introducing Python

Ch.8 - Introducing Python

6th Grade - Professional Development

20 Qs

Season 5 #Spaic Python Weekly Quiz

Season 5 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Python Basics Quiz

Python Basics Quiz

6th - 10th Grade

15 Qs

Cyclic Test Grade 7 EKAM

Cyclic Test Grade 7 EKAM

7th Grade

16 Qs

Python Booleans and selection 3

Python Booleans and selection 3

8th Grade

20 Qs

AQA GCSE Computer Science - 3.2.6 Data structures

AQA GCSE Computer Science - 3.2.6 Data structures

8th - 10th Grade

20 Qs

Year 8 Python - Lesson 3

Year 8 Python - Lesson 3

6th - 8th Grade

19 Qs

Python

Python

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?