Search Header Logo

Python Programming Basics - Multiple Choice Questions

Authored by James Waite

Information Technology (IT)

1st Grade

Used 5+ times

Python Programming Basics - Multiple Choice Questions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which term describes a memory location used to store data that can change while the program is running?

Operator

Variable

Function

Syntax

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, which data type is used to represent whole numbers without a fractional component?

String

Float

Integer

Boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these words is a Python keyword used for defining a reusable block of code that performs a specific task?

Code

Subroutine

DEF

Return

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the name for the ordered, mutable collection of items in Python, defined using square brackets?

String

List

Array

Program

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of statement is executed when one of several different paths is chosen depending on a condition (e.g., using IF, ELIF, and ELSE)?

Iteration

Sequence

Selection

Assignment

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the process of finding and fixing mistakes or flaws in the code?

Concatenation

Debugging

Code

Compilation

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python function is used to convert a value into a decimal number?

INT()

STR()

FLOAT()

LEN()

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?