
階段六 C++ 聖誕樹工坊:畫龍點睛
Interactive Video
•
Computers
•
9th - 12th Grade
•
Hard
張瓊云 張瓊云
FREE Resource
4 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在 C++ 中,std::string 相較於 char array 有哪些優點?
自動記憶體管理
直覺的操作方式
內建多種實用功能
以上皆是
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
std::string 的 .length() 函數計算的是什麼?
字元的數量
位元組的數量
單字的數量
行數
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在 UTF-8 編碼中,如果一個中文字元通常佔用 3 個位元組,那麼對於字串 "你好",std::string::length() 會回傳什麼?
2
3
6
1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
影片中提到的文字置中演算法主要包含哪兩個步驟?
計算剩餘空間並除以二
計算文字長度並增加空格
計算總寬度並減去文字寬度
計算左側填充和右側填充
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?