Introduction to Python Programming

Introduction to Python Programming

Assessment

Interactive Video

Computers

6th - 8th Grade

Hard

Created by

Nancy Jackson

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step to take if you want to check whether Python is already installed on your system?

Check the list of installed programs in your system settings.

Open a web browser and search for Python.

Download a Python script and try to run it.

Open a terminal or command prompt and type 'python'.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should you do if typing 'python' in the terminal results in an error?

Download and install Python from the official website.

Check for updates on your operating system.

Contact technical support for assistance.

Restart your computer and try again.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you exit the Python interactive mode?

Type 'quit()' and press Enter.

Close the terminal window.

Type 'exit()' and press Enter.

Press Ctrl + C.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for a Python script?

.txt

.java

.exe

.py

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is it recommended to use two digits at the beginning of Python script filenames?

To indicate the version of Python used.

To make the files look more professional.

To ensure the files are sorted numerically.

To comply with Python's file naming rules.