CS1考題

CS1考題

10th Grade

23 Qs

quiz-placeholder

Similar activities

Computer Science Pretest

Computer Science Pretest

9th - 12th Grade

27 Qs

Blizzard Entertainment

Blizzard Entertainment

9th - 12th Grade

20 Qs

JavaScript - Karel

JavaScript - Karel

9th - 10th Grade

20 Qs

數概(2)-Ch11(課本+習作)

數概(2)-Ch11(課本+習作)

10th Grade

20 Qs

HKDSE ICT  資訊處理簡介 CHP 1 - 3

HKDSE ICT 資訊處理簡介 CHP 1 - 3

10th - 12th Grade

23 Qs

電腦安全操作守則

電腦安全操作守則

9th - 12th Grade

21 Qs

A2016-10

A2016-10

10th Grade

25 Qs

113下學期七年級測驗

113下學期七年級測驗

7th Grade - University

22 Qs

CS1考題

CS1考題

Assessment

Quiz

Computers

10th Grade

Medium

Created by

SUIHUAI HUANG

Used 4+ times

FREE Resource

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

遊戲的主角是誰?

princess

hero

Demon

king

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

如何命令英雄攻擊名為"Treg"的目標?

hero.attack("Treg")

hero.attend("Treg")

hero.hit('Treg')

hero.hit("Treg")

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

如何在Python中定義一個變數名為score並賦值為10?

score = 10

var score = 10

int score = 10

let score = 10

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

在Python中,如何定義一個變數name並將其值設為字符串"John"?

name2= 'John' 

name = John

name = "John" 

var name = 'John'

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

如何在Python中定義一個迴圈,使其重複執行三次?

for i in range(5):

for i in range(3): 

while i < 3:

while True:

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

如何使用while迴圈讓英雄無限次數地向右移動兩步然後向下移動一步?(先省略縮排問題)

while True:
hero.moveRight(2)
hero.moveDown()

while i < 3:
hero.moveRight(2)
hero.moveDown()

for i in range(3):
hero.moveRight(2)
hero.moveDown()

for i in range(5):
hero.moveRight(2)
hero.moveDown()

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

在英雄指令中,如何命令英雄說出“1+1”?

hero.say("1+1")

hero.speak("1+1")

hero.tell("1+1")

hero.say(1+1)

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?