Search Header Logo

course2 lesson10

Authored by Academy OneSpace

Computers

2nd Grade

Used 9+ times

course2 lesson10
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function?

A block of reusable code to make the hero attacks the enemy

A code to make a game

A block of  organized and reusable code that given a name

A block of reusable code to make the hero finds the enemy

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the right way to define the function test?

Define test():

def test():

Def test():

def test()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do we use functions for?

Organize a code

Reuse a code

Make the code easier to change

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Choose the right syntax to call this function

findAndAttackEnemy()

findandAttackEnemy()

findAndAttackEnemy():

def findAndAttackEnemy()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the right syntax to define the function heroAttack with parameter “enemy”

def hero.Attack enemy():

def heroAttack(“enemy”):

def heroAttack(enemy):

def heroAttack(enemy)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Choose the right syntax to call this function

Media Image
Media Image
Media Image
Media Image

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?