Search Header Logo

Python Basics

Authored by Elvis Mwape

Computers

1st Grade

Python Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step to create a program in Python?

Install Python

Download Python

Compile the code

Write the code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you save a program in Python?

Save the code as a .txt file.

Use a spreadsheet program to save the code with a .py extension.

Use a text editor to save the code with a .py extension.

Use a word processor to save the code with a .py extension.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to run a program in Python?

start program.py

python filename.py

run program.py

execute program.py

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you open a program in Python?

run program_name

open program_name

import program_name

start program_name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the process called when you fix mistakes in a program?

coding

programming

compiling

debugging

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you save a program with the file extension .py?

Change the file type to .py in the Save As dialog box.

Add the .py extension to the end of the file name.

Rename the file and include .py at the end.

Provide the desired name for the file followed by the .py extension.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to execute a Python program?

execute filename.py

start filename.py

run filename.py

python filename.py

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?