Search Header Logo

Computer Science

Authored by Teacher Phú

Computers

9th Grade

15 Questions

Used 2+ times

Computer Science
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which variable stores the character's name?

var = "hero"

namE = "hero"

heroName = "hero"

function hero()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command repeats the attack action 5 times?

while true:

for i in range(5):

loop(5)

if i < 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which snippet is correct for attacking only when an enemy is visible?

if enemy: hero.attack(enemy)

if attack: hero.enemy()

hero.attack = enemy

while enemy == true

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In JavaScript, which is the correct return statement?

return x + y;

output x + y;

return(x,y)

back x+y

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is the equality comparison in Python?

=

==

===

!=

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which snippet creates a safe infinite loop in CodeCombat?

while True:

for forever:

loop infinite:

repeat()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Events in Game Development are usually attached to which object?

hero.onClick()

game.addCollectGoal()

event.hero()

enemy.eventKill()

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