Python Programming Quiz

Python Programming Quiz

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Subroutines - Procedures & Functions

Subroutines - Procedures & Functions

9th - 12th Grade

20 Qs

CPU-Unit4

CPU-Unit4

9th - 12th Grade

20 Qs

DIT Excel 2016 Review

DIT Excel 2016 Review

8th - 12th Grade

15 Qs

Codecademy Introduction to JavaScript

Codecademy Introduction to JavaScript

8th - 12th Grade

21 Qs

Python basic

Python basic

9th Grade

21 Qs

Python Revision

Python Revision

10th Grade - University

17 Qs

Excel Formulas/Functions

Excel Formulas/Functions

9th - 12th Grade

20 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

Python Programming Quiz

Python Programming Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Medium

CSTA

Standards-aligned

Created by

CRYSTAL DEMOURA

Used 7+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Can a number be a string? True or False.

True

False

Tags

CSTA

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

_______ is the process of reducing complexity by hiding unnecessary information and focusing on what is needed to make it work.

Loop

Formality

Abstraction

Function

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the % operator do in Python?

Calculates the leftovers

Calculates the dividend

Calculates the product

Calculates the remainder

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of print("hello" + 1 + 2 + 3)?

Error

hello123

hello6

"hello"123

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following checks if x is equal to y?

if x = y:

if x == y:

if x != y:

if x >= y:

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which command will correctly ask the user for their age and save it as an integer?

age = input("What is your age?")

age = int(input("What is your age?"))

age = float(input("What is your age?"))

age = int(input("What is your age?"))

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following checks if x is not equal to y?

if x not = y:

if x == y:

if x =! y:

if x != y:

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?