Python Programming Quiz

Python Programming Quiz

12th Grade

21 Qs

quiz-placeholder

Similar activities

Google Sheets

Google Sheets

12th Grade

21 Qs

Introduction to computer networks

Introduction to computer networks

12th Grade

20 Qs

Clean, Sanitize and Store Kitchen Tools and Equipment

Clean, Sanitize and Store Kitchen Tools and Equipment

11th - 12th Grade

20 Qs

Latihan PSAS Kelas 9

Latihan PSAS Kelas 9

9th Grade - University

20 Qs

12AIT - All About W3C <3

12AIT - All About W3C <3

10th Grade - University

18 Qs

I2.P2_A4. Pseudocódigo y diagramas de flujo

I2.P2_A4. Pseudocódigo y diagramas de flujo

12th Grade

20 Qs

History of Package Design

History of Package Design

9th - 12th Grade

20 Qs

Pointers

Pointers

12th Grade

20 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Skrt Hurt

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of comments in a Python program?

To break up the code into smaller functions

To describe sections of code and document what functions do

To store values in memory

To perform mathematical operations on variables and values

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main function used for in a Python program?

To store values in memory

To perform mathematical operations

To control the flow of the program by calling other functions

To import external modules

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a basic data type in Python?

String

Integer

Float

Array

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of type casting '10.5' using int('10.5') in Python?

10

10.5

An error

'10'

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the operator '//' perform in Python?

Addition

Subtraction

Integer Division

Exponentiation

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the operation "%" do?

Returns the product of two numbers.

Returns the remainder then assign result.

Returns the quotient of two numbers.
Returns the sum of two numbers.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are conditionals?

Statements in programming that are always executed
Variables that store multiple values

Tests that allow you to make decisions in your code, return as True or False.

Functions that return a value

Create a free account and access millions of resources

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?