Intro to CS Semester Test Review P1

Intro to CS Semester Test Review P1

9th Grade

20 Qs

quiz-placeholder

Similar activities

Y9 Creative iMedia RO81 Quiz Part 1

Y9 Creative iMedia RO81 Quiz Part 1

9th Grade

21 Qs

D'où vient internet?

D'où vient internet?

9th - 10th Grade

16 Qs

Accessing the Internet

Accessing the Internet

9th - 10th Grade

15 Qs

CSS GRADE 9 - QUIZ PECs and EM

CSS GRADE 9 - QUIZ PECs and EM

9th Grade

20 Qs

Video Editing Exam

Video Editing Exam

9th Grade

20 Qs

Week #7 - Time Machine

Week #7 - Time Machine

8th Grade - University

17 Qs

KS4 - Representing Images

KS4 - Representing Images

9th - 11th Grade

15 Qs

Famous YouTubers

Famous YouTubers

4th - 12th Grade

17 Qs

Intro to CS Semester Test Review P1

Intro to CS Semester Test Review P1

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Kay Carpenter

Used 12+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Refer to the following code. This type of comment in Python is known as a(n):

"""

This function moves Tracy from the center

of the canvas to the beginning of the hurdle.

"""

in-line comment

two-line comment

multi-line comment

triple-quote comment

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following statements regarding comments is INCORRECT?

Comments can be used to help anyone viewing the code to keep track of coding steps and decisions

Comments can be used to give the computer prioritized instructions or change the order of code

Comments can be used to describe each part of the code so it can be altered easily

Comments are not read by the program and have no impact on how the code runs

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will the following program print when run?

babble

crackle

pop

crackle

pop

fizz

fizz

pop

fizzle

crackle

pop

fizzle

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What gets printed to the console from this code?

Alpha

Omega

Gamma

Nothing prints to the console

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

How many circles will Tracy draw when the following program is run?

5 circles

10 circles

15 circles

25 circles

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following print statements correctly combines two string variables venue and direction and the integer variable distance using string concatenation?

The printed result should look like, “The stadium is 4 blocks north”

print(“The “ + venue + “ is “ + int(str(distance)) + “ blocks “ + direction)

print(“The “ + venue + “ is “ + str(distance) + “ blocks “ + direction)

print(“The + venue + is “ + str(distance) + “ blocks + direction”)

print(“The “ + venue + “ is “ + readInt(str(distance)) + “ blocks “ + direction)

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which type of loop would you use to continually ask the user to guess a number, until their input matched the value of the variable lucky_num?

For

While

If/Else

If

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?