隨機的魔法:C++ 程式藝術機率控制評量
Interactive Video
•
Computers
•
9th - 12th Grade
•
Hard
張瓊云 張瓊云
FREE Resource
4 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
影片中提到,一開始的聖誕樹有什麼問題?
它太小了
它每次執行都長得一模一樣
它沒有足夠的裝飾品
它無法在螢幕上顯示
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
為什麼單獨使用 rand() 函數無法產生真正的隨機數列?
它產生的數字範圍太小
它每次程式重跑時都會產生相同的數列
它需要額外的參數才能運作
它只能產生偶數
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
為了讓 rand() 函數每次執行都能產生不同的隨機數列,程式一開始需要做什麼?
呼叫 rand() 函數多次
使用 srand(time(0)) 函數播種
將 rand() 函數的結果乘以一個大數字
將 rand() 函數的結果除以一個小數字
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
影片中提到,要將 rand() 函數產生的大範圍隨機數轉換成可控制的機率(例如10%),可以使用哪個運算子?
加法運算子 +
乘法運算子 *
餘數運算子 %
除法運算子 /
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?
Similar Resources on Wayground
5 questions
天下皆知美之為美
Interactive video
•
9th Grade - University
9 questions
Power Automate 流程测试与功能
Interactive video
•
KG - University
6 questions
選修生物II-細胞與遺傳-1-1 細胞的的分子組成-2
Interactive video
•
11th Grade
4 questions
0331_高二預習_橢圓畫圖
Interactive video
•
11th Grade
10 questions
B3-L3-Sum
Interactive video
•
9th - 12th Grade
5 questions
0922_高二預習_數學歸納法1
Interactive video
•
11th Grade
11 questions
Euclid and His Contributions to Mathematics
Interactive video
•
9th - 12th Grade
12 questions
B3-L3-The Museum of Failure
Interactive video
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade