Search Header Logo

CS1: Unit 2 Review - Functions and Mouse Events

Authored by Lisa Stone

Computers

8th Grade

CS1: Unit 2 Review - Functions and Mouse Events
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Indent the body of a function by how many spaces in Python?

4 spaces

2 spaces

8 spaces

1 space

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Python function name?

2start

start_2

start 2

start-2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Function parameters can only be numbers in Python.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword can you use in Python to tell it to do nothing for a function?

pass

skip

continue

break

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT allowed in a Python function name?

A) Underscores

B) Digits (not at the start)

C) Spaces

D) Lowercase letters

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python function names are case sensitive, so sayHi and sayhi are different.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When calling a function with no parameters, which of the following is correct?

beHappy

beHappy()

beHappy[]

beHappy{}

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers