Python Programming Quiz

Python Programming Quiz

12th Grade

21 Qs

quiz-placeholder

Similar activities

Computer Science Holiday Assignment

Computer Science Holiday Assignment

12th Grade

20 Qs

CS Python Fundamentals Test 9 PRACTICE

CS Python Fundamentals Test 9 PRACTICE

9th - 12th Grade

20 Qs

Python Basics

Python Basics

12th Grade

20 Qs

Recuperacion final parte 1

Recuperacion final parte 1

8th Grade - University

20 Qs

Python:  Groups - Lists

Python: Groups - Lists

10th - 12th Grade

16 Qs

Subroutines - Procedures & Functions

Subroutines - Procedures & Functions

9th - 12th Grade

20 Qs

Python Unit 3 Comprehension Check (3,4,5,6)

Python Unit 3 Comprehension Check (3,4,5,6)

9th - 12th Grade

20 Qs

AP CSP Unit 6

AP CSP Unit 6

10th - 12th Grade

20 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Skrt Hurt

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?