Search Header Logo

Intro to Python

Authored by Wayground Content

Computers

8th Grade

Used 16+ times

Intro to Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Indentation

Indentation is the visual structure of how your code is laid out. It uses tabs to organize code into a hierarchy.

Indentation refers to the amount of space between lines of code.

Indentation is a method of commenting code for better readability.

Indentation is the process of removing unnecessary spaces from code.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comment

A message in your code that explains what is going on.

A type of error in programming.

A function that returns no value.

A variable that stores user input.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Print

Displaying text on the screen

Creating a graphical image

Saving a file to disk

Sending data to a printer

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Break Down (Decompose)

Breaking down your code is splitting it into more functions.

Breaking down your code is combining multiple functions into one.

Breaking down your code is removing unnecessary comments.

Breaking down your code is optimizing the performance of a single function.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tuple

A mutable data type that stores an unordered collection of items

A heterogeneous, immutable data type that stores an ordered sequence of things

A data type that can only store numbers

A type of function that returns multiple values

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If/Else Statement

Control structure that lets us run either one section of code or another depending on a test.

A loop that repeats a section of code multiple times.

A function that returns a value based on input parameters.

A method for defining variables in programming.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

count()

A method that counts occurrences of specific items in a list.

A function that calculates the sum of all items in a list.

A procedure that sorts items in a list alphabetically.

A command that removes duplicates from a list.

Access all questions and much more by creating a free account

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?