10503-05 函數f 定義如下,如果呼叫f(1000),指令
sum=sum+i 被執行的次數最接近下列何者?
小考六:函式一(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)
5 questions
APCS10510-2
Quiz
•
10th Grade - University
10 questions
認識電腦平台
Quiz
•
10th - 11th Grade
10 questions
網路安全與智慧科技
Quiz
•
9th - 12th Grade
7 questions
S5 Programming Quiz
Quiz
•
10th Grade
10 questions
每日一ICT 14/11/2022-27/11/2022
Quiz
•
10th Grade
13 questions
RAM&HDD/SSD
Quiz
•
10th - 12th Grade
5 questions
APCS10510-5
Quiz
•
10th Grade - University
5 questions
APCS10510-4
Quiz
•
10th Grade - University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes
Quiz
•
9th - 12th Grade