
CS1考題
Authored by SUIHUAI HUANG
Computers
10th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?