CS Programming Unit 2 Review

CS Programming Unit 2 Review

9th Grade

19 Qs

quiz-placeholder

Similar activities

Contabilidad 9

Contabilidad 9

9th Grade

20 Qs

PERSEDIAAN MENJADI USAHAWAN

PERSEDIAAN MENJADI USAHAWAN

1st - 12th Grade

20 Qs

EMS Grade 7

EMS Grade 7

7th - 9th Grade

18 Qs

QUIZ 1 : TOPIC 8 [PROCESS COSTING]

QUIZ 1 : TOPIC 8 [PROCESS COSTING]

1st Grade - University

20 Qs

9BS Final Exam Sem 1 Review

9BS Final Exam Sem 1 Review

9th Grade

20 Qs

TEMA 1 MERCADOS Y ORGANIZACIONES

TEMA 1 MERCADOS Y ORGANIZACIONES

1st Grade - University

15 Qs

Chronological Resume

Chronological Resume

9th - 12th Grade

14 Qs

Captación y Retención de los clientes C - VII

Captación y Retención de los clientes C - VII

1st - 12th Grade

20 Qs

CS Programming Unit 2 Review

CS Programming Unit 2 Review

Assessment

Quiz

Business

9th Grade

Practice Problem

Medium

DOK Level 1: Recall

Standards-aligned

Created by

Zachary Wilson

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in Python?

A block of code that only runs when it is called

A variable that stores data

A type of loop

A method to handle exceptions

Tags

DOK Level 1: Recall

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct indentation for the body of a function in Python?

2 spaces

4 spaces

6 spaces

8 spaces

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'pass' statement in Python functions?

To end a function

To do nothing for that function

To print a message

To start a loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can we define a function without any parameters? For example:

def drawStar():

Yes

No

Maybe

I don't know

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the onMousePress(mouseX, mouseY) event?

It is called when a key is pressed

It is called when the mouse is moved

It is called every time the canvas is clicked

It is called when the program starts

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one of the best ways to help understand and debug your code?

print

input

return

break

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What key can be used to access the inspector in debugging?

Alt

Shift

Control or Ctrl

Tab

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?