Python Revision

Python Revision

10th Grade

17 Qs

quiz-placeholder

Similar activities

PYTHON UNIT I MCQS

PYTHON UNIT I MCQS

University

15 Qs

PyGame

PyGame

University

20 Qs

Computer Science Refreshment

Computer Science Refreshment

12th Grade

19 Qs

Python 3 Review Part 1

Python 3 Review Part 1

9th - 12th Grade

20 Qs

Python Basics Review

Python Basics Review

10th Grade

18 Qs

Control Structures

Control Structures

University

14 Qs

Python Control Structures

Python Control Structures

University

20 Qs

Python - Iteration (For Loops)

Python - Iteration (For Loops)

10th Grade

20 Qs

Python Revision

Python Revision

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Christopher Maguire

Used 7+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of variables in a program?

To store data that can be used and changed later

To make the program run faster

To display output on the screen

To store only numbers

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Identify the variables and their data types in the following Python code: name = "Alice" age = 25 is_student = True

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare and assign a value to a variable in Python? Provide an example.

var x = 10

int x = 10

x = 10

declare x = 10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? x = 5 y = "5" print(x + y)

10

55

TypeError

5 + 5

5.

OPEN ENDED QUESTION

3 mins • 1 pt

How can you receive user input in Python? Provide an example.

Evaluate responses using AI:

OFF

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Explain why variable naming conventions are important in Python.

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • 1 pt

Write a program that asks the user for their age and then prints whether they are an adult (18 or older) or a minor.

Evaluate responses using AI:

OFF

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?