Understanding Python Comments

Understanding Python Comments

7th Grade

9 Qs

quiz-placeholder

Similar activities

2.5 Translators & Facilities - OCR GCSE Computer Science

2.5 Translators & Facilities - OCR GCSE Computer Science

7th - 12th Grade

13 Qs

Python Basic Unit 1

Python Basic Unit 1

7th - 8th Grade

14 Qs

Micro-bits

Micro-bits

3rd - 8th Grade

10 Qs

App Inventor Introductory Review

App Inventor Introductory Review

6th - 8th Grade

10 Qs

Python Turtle

Python Turtle

KG - Professional Development

11 Qs

Small Basic (Turtle)

Small Basic (Turtle)

KG - University

10 Qs

My Python : About Me

My Python : About Me

6th - 8th Grade

10 Qs

Scratch Vocabulary

Scratch Vocabulary

3rd Grade - University

9 Qs

Understanding Python Comments

Understanding Python Comments

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Rashad Robinson

Used 4+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of adding comments in your code?

To make the code run faster

To add notes or explanations for yourself or others

To increase the file size

To confuse other programmers

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The ________ is the software that displays web pages.

Google Chrome

Web Browser

Gmail

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Why might you add a comment to your code?

To make the code look more colorful

To explain what needs to be coded next

To hide errors in the code

To make the code harder to read

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to write a comment in Python?

// This is a comment

/* This is a comment */

# This is a comment

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is one benefit that is provided by CodeTrek in CodeSpace? (Mission 2, Objective 7)

Detailed information about lines of code you need to write.

Write clear and concise comments

Avoid using comments altogether

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the best way to run your code? (Mission 2, Objective 8)

Using the "Run" button that's in the image.

Code Editor

Text Editor

Mission Bar

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The CodeX has four ______ LEDs along the top edge of the Code-X that uses which three colors? (Mission 3, Objective 1)

Red, Green, Blue

Red, Green, Brown

Red, White, Blue

Yellow, Orange, Black

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What are the two commands that are used to Clear our Code X device? (Hint: It's on Monday's handout)

from codex import *

display.fill (BLACK)

from codex import *

CLEAR

from codex import *

display.show(pics.HAPPY)

from codex import *

pixels.set (0, RED)

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the difference between the text editor and the digital textbook in Codespace?

The digital textbook provides instructions throughout the mission. The text editor is where users type their code.

The textbook works just like our math book. The Text Editor colors the text.