S3 Python to Arrays

S3 Python to Arrays

9th Grade

59 Qs

quiz-placeholder

Similar activities

CS: Python Unit 1 Review

CS: Python Unit 1 Review

9th - 12th Grade

57 Qs

AI Midterm

AI Midterm

9th - 12th Grade

63 Qs

J277/02 Computational thinking, algorithms and programming

J277/02 Computational thinking, algorithms and programming

9th Grade - University

56 Qs

Unit 7 Review Parameters, Returns, Libraries

Unit 7 Review Parameters, Returns, Libraries

9th - 12th Grade

55 Qs

AQA GCSE Algorithms

AQA GCSE Algorithms

9th - 11th Grade

60 Qs

Python Year 7 Assessment

Python Year 7 Assessment

7th - 9th Grade

55 Qs

Week 11: Lists, Loops & "Failure"!

Week 11: Lists, Loops & "Failure"!

9th - 12th Grade

58 Qs

Loops in Python

Loops in Python

9th - 12th Grade

55 Qs

S3 Python to Arrays

S3 Python to Arrays

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Martin McCormack

Used 6+ times

FREE Resource

59 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 change the functionality of the code

To improve the readability of code

To increase the number of lines of code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can happen to programs as they grow and expand?

They can become less complicated to read

They can become shorter

They can become more complicated to read

They can require fewer comments

3.

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

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should multi-line comments contain?

Only the name of the program

Only the date and description of what the program will do

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

Random notes and reminders

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How are multi-line comments started and ended in a program?

With a single quotation mark

With a hash symbol (#)

With three quotation marks

With a slash and asterisk (/* */)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used to add single line comments in code?

//

/*

#

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using single line comments in code?

To change the functionality of the code

To compile the code faster

To explain certain aspects of the code

To create a new variable

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?