
小考六:函式一(10503)

Quiz
•
Computers
•
10th Grade
•
Hard
yvonne liao
Used 5+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
10503-05 函數f 定義如下,如果呼叫f(1000),指令
sum=sum+i 被執行的次數最接近下列何者?
1000
3000
5000
10000
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
10503-07 請問以a(13,15)呼叫右側a()函式,函式執行完後其回傳值為何?
90
103
93
60
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
10503-10 給定右側g() 函式,g(13) 回傳值為何?
16
18
19
22
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
10503-12 給定右側函式 f1() 及 f2()。f1(1)運算過程中,以下敘述何者為錯?
印出的數字最大的是4
f1 一共被呼叫二次
f2 一共被呼叫三次
數字2 被印出兩次
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
10503-14 右側程式輸出為何?
bar: 6
bar: 1
bar: 8
bar: 6
foo: 1
bar: 3
bar: 1
foo: 1
bar: 8
bar: 6
foo: 1
foo: 3
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
10503-20 右側為一個計算n 階層的函式,請問該如何修改才會得到正確的結果?
第2 行,改為 int fac = n;
第3 行,改為if (n > 0) {
第4 行,改為fac = n * fun(n+1);
第4 行,改為fac = fac * fun(n-1);
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
10503-24 右側g(4)函式呼叫執行後,回傳值為何?
6
11
13
14
8.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
10503-25 右側Mystery()函式else 部分運算式應為何,才能使得 Mystery(9) 的回傳值為34。
x + Mystery(x-1)
x * Mystery(x-1)
Mystery(x-2) + Mystery(x+2)
Mystery(x-2) + Mystery(x-1)
Similar Resources on Wayground
12 questions
第六章储存装置PART 1

Quiz
•
9th - 12th Grade
10 questions
基礎題目

Quiz
•
10th Grade
5 questions
code.org(Play Lab)

Quiz
•
10th Grade
10 questions
2223_S4_ICT_T2_exam_exercise_1-10

Quiz
•
9th - 12th Grade
10 questions
雲端從業人員Module 1 知識點檢查

Quiz
•
9th - 12th Grade
10 questions
雲端從業人員Module 4 知識點檢查

Quiz
•
9th - 12th Grade
10 questions
Operation System

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade