CS Python Fundamentals Quiz 2 Review & Practice

CS Python Fundamentals Quiz 2 Review & Practice

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Program Development - Python: Errors

Program Development - Python: Errors

8th - 10th Grade

13 Qs

AP CSA Unit 1 & 2 Review

AP CSA Unit 1 & 2 Review

9th - 12th Grade

10 Qs

HTML Coding

HTML Coding

9th - 11th Grade

10 Qs

Higher Computing Science - Floating Point

Higher Computing Science - Floating Point

10th - 12th Grade

10 Qs

Topic 1.1 Introduction to Programming

Topic 1.1 Introduction to Programming

11th Grade

17 Qs

2.5 Programming Languages and IDEs

2.5 Programming Languages and IDEs

10th Grade

14 Qs

Scratch Loops and patterns

Scratch Loops and patterns

7th - 9th Grade

16 Qs

Programming Languages

Programming Languages

11th Grade

10 Qs

CS Python Fundamentals Quiz 2 Review & Practice

CS Python Fundamentals Quiz 2 Review & Practice

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Scott Chamberlain

Used 6+ times

FREE Resource

12 questions

Show all answers

1.

MATCH QUESTION

2 mins • 5 pts

Match the following vocabulary words to their definitions.

Function

A collection of code and functions that perform similar tasks.

Import

Command that pulls in code to add functions to your code.

Module

A symbol that defines a math operation or calculation.

Assignment

The process of storing a value in a variable.

Operator

A collection of commands given a name, for example, input( ).

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of the program shown here?

0

2

3

7

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which is NOT a valid Python variable name?

4ever

fitty_cent

airForce1

BIGdog

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is the BEST choice for the name of a variable used to store the grade on a first quarter report card?

g

1qtr

q1Grade

GRADE

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of the code shown here?

0

16

-16

15

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ONE of the following expressions is equivalent to 12. Choose the correct expression.

4 + 2 * 6 / 3

(4 + 2) * 6 / 3

4 + 2 * (6 / 3)

4 + (2 * 6) / 3

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If n=5, which of the following lines of code will correctly produce the output below:

The answer is 15

print ("The answer is: " + n*3)

print ("The answer is: " + int(n*3))

print ("The answer is: " + str(n*3))

print ("The answer is: " + str(n)*3)

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?