C++ 聖誕樹工坊:大升級
Interactive Video
•
Computers
•
9th - 12th Grade
•
Hard
張瓊云 張瓊云
FREE Resource
4 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在C++程式中,當在Windows終端機輸出表情符號時,為什麼會出現亂碼?
程式碼本身有錯誤。
終端機使用的字元編碼與程式碼不同。
表情符號的語法不正確。
記憶體不足導致輸出錯誤。
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
為了讓Windows終端機正確顯示UTF-8編碼的表情符號,應該使用哪一個指令?
chcp 950
chcp 65001
setlocale("zh_TW.UTF-8")
system("cls")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
相較於傳統陣列,C++中的`std::vector`主要優勢是什麼?
只能儲存數字型態的資料。
其大小在編譯時就已固定。
其大小可以在程式執行時自動調整。
存取元素的速度比傳統陣列快。
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在C++程式碼`gifts[rand() % gifts.size()]`中,使用模數運算子(`%`)與`gifts.size()`的目的是什麼?
讓隨機數值變大。
確保產生的索引值不會超出`gifts`向量的有效範圍。
將隨機數值轉換為浮點數。
將隨機數值乘以向量的大小。
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
7 questions
金融實務-初入門
Interactive video
•
9th - 12th Grade
3 questions
CLEAN : Japan PM tells AFP Abenomics
Interactive video
•
10th Grade - University
6 questions
CLEAN : Taiwan activists clash with police over
Interactive video
•
10th Grade - University
8 questions
Understanding Emotional Dynamics
Interactive video
•
9th - 12th Grade
6 questions
農業技術と環境保全に関するクイズ
Interactive video
•
9th - 10th Grade
9 questions
YN 影视课 - 女人霸占感官
Interactive video
•
KG - University
10 questions
B2-L6: Vocab
Interactive video
•
9th - 12th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade