Python Quiz

Python Quiz

10th Grade

20 Qs

quiz-placeholder

Similar activities

Avaliação Diagnóstica - Eletiva (Informática/Robótica)

Avaliação Diagnóstica - Eletiva (Informática/Robótica)

9th - 12th Grade

15 Qs

Intro to Python Project Stem U4 Repetition Loops Vocab Quiz

Intro to Python Project Stem U4 Repetition Loops Vocab Quiz

9th - 12th Grade

17 Qs

Review for Python Midterm

Review for Python Midterm

9th - 12th Grade

15 Qs

Q2 Comprog Summative Test I

Q2 Comprog Summative Test I

10th Grade

15 Qs

Understanding Tuples in Python

Understanding Tuples in Python

10th Grade

16 Qs

PTS INFORMATIKA X SEM GENAP

PTS INFORMATIKA X SEM GENAP

10th Grade

15 Qs

Examen Trimestral Programación décimo

Examen Trimestral Programación décimo

10th Grade

25 Qs

CPA 3NT Paper 1 Quiz 4 (Bukit Panjang High)

CPA 3NT Paper 1 Quiz 4 (Bukit Panjang High)

10th - 12th Grade

20 Qs

Python Quiz

Python Quiz

Assessment

Quiz

Instructional Technology

10th Grade

Easy

Created by

Heidi Holland

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 function that prints text

A way to store information

A type of loop

A way to start a program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to start a loop in Python?

for i to 10

loop i from 1 to 10

for i in range(10)

while i = 10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the print function do in Python?

It adds two numbers

It prints a document

It displays text or variables on the screen

It starts a new line

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used for comments in Python?

#

@

//

*

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to define a function in Python?

function myFunction()

def myFunction:

define myFunction()

def myFunction():

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Variables can change their values during the execution of a program.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The if statement is used to make decisions in a program.

True

False

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?