Computer Science

Computer Science

9th Grade

15 Qs

quiz-placeholder

Similar activities

CodeCombat

CodeCombat

9th Grade

15 Qs

DS - Linked List - S1

DS - Linked List - S1

University

16 Qs

Test JAVA - 1

Test JAVA - 1

12th Grade

15 Qs

CS Python Fundamentals Unit 3 Review

CS Python Fundamentals Unit 3 Review

9th - 12th Grade

20 Qs

TIN11_KIỂM TRA THƯỜNG XUYÊN

TIN11_KIỂM TRA THƯỜNG XUYÊN

11th Grade

10 Qs

Bài 8- CĐ F-TH10

Bài 8- CĐ F-TH10

9th - 12th Grade

10 Qs

Init Me 3.1-1

Init Me 3.1-1

University

13 Qs

Codecombat Computer Science

Codecombat Computer Science

10th Grade

10 Qs

Computer Science

Computer Science

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Teacher Phú

Used 1+ times

FREE Resource

15 questions

Show all answers

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()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?