Search Header Logo

Python-Comments, Loops and Functions (CodeHS)

Authored by Jessica Oltman

Computers

5th - 12th Grade

Python-Comments, Loops and Functions (CodeHS)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following would tell Tracy to move forward 100 pixels?

forward 100

move(100)

Move.ForWarD 100 pixels

forward(100)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python is an example of a....

Text-based programming language
Object orientated programming language
language written in java script
Visual-based programming language

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the term 'debug' mean?

Identify errors and fix them.
Making a calculation
A set of instructions
Looking at code

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The following loop draws 3 circles on the screen. If I wanted to alter this loop to draw 10 circles, how many lines would my code be?

1 line

3 lines

10 lines

30 lines

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comments are:

Written for humans to read and understand

Only needed when a program is over 50 lines

Commands performed by the computer

Always blue when Python recognizes them

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What punctuation is needed to begin a multi-line comment?

#

"

" " "

*

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?