S3 Code Comments & Variables

S3 Code Comments & Variables

9th Grade

62 Qs

quiz-placeholder

Similar activities

AP CSP Unit 7

AP CSP Unit 7

9th - 12th Grade

65 Qs

AI Midterm

AI Midterm

9th - 12th Grade

63 Qs

Python CH1-3 Review

Python CH1-3 Review

8th Grade - Professional Development

59 Qs

AQA GCSE Algorithms

AQA GCSE Algorithms

9th - 11th Grade

60 Qs

Week 11: Lists, Loops & "Failure"!

Week 11: Lists, Loops & "Failure"!

9th - 12th Grade

58 Qs

Code.org Unit 7 Review

Code.org Unit 7 Review

9th - 12th Grade

65 Qs

AP CSP Functions, Returns, Libraries

AP CSP Functions, Returns, Libraries

9th - 12th Grade

65 Qs

Computer Science Principles Unit 7 Parameters Returns Libraries

Computer Science Principles Unit 7 Parameters Returns Libraries

9th - 12th Grade

65 Qs

S3 Code Comments & Variables

S3 Code Comments & Variables

Assessment

Passage

Computers

9th Grade

Medium

Created by

Martin McCormack

Used 3+ times

FREE Resource

62 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is it important to add comments to code?

To make the code run faster

To add more lines of code

To improve the readability of code

To change the functionality of the code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can happen as programs grow and expand?

They can become easier to read

They require fewer comments

They can become complicated to read

They become shorter

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of comments in code?

To cause errors in the program

To be executed as part of the program

To explain what the program is doing and how it is doing it

To change the flow of the program

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who benefits from comments in the code?

The computer

The programmer and others reading the code

External devices interacting with the code

The program's execution speed

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is NOT a function of comments in code?

Ignored by the computer

Highlights important sections of code

Can remind the programmer of how their code works

Increases the execution speed of the program

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where is it considered good practice to insert multi-line comments in a program?

At the bottom of the program

In the middle of the program

At the top of the program

Outside the program file

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What information should multi-line comments contain?

Only the name of the program

Only the author's name and date

The name of the program, author, date, and description of what the program will do

Random notes and reminders

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?