16. 右列程式片段中,假設a,a_ptr 和 a_ptrptr 這三個變數都有
被正確宣告,且呼叫 G()函式時的參數為 a_ptr 及 a_ptrptr。
G()函式的兩個參數型態該如何宣告?
APCS10510-4
Quiz
•
劉怡萱 劉怡萱
•
Computers
•
10th Grade - University
•
1 plays
•
Hard
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
16. 右列程式片段中,假設a,a_ptr 和 a_ptrptr 這三個變數都有
被正確宣告,且呼叫 G()函式時的參數為 a_ptr 及 a_ptrptr。
G()函式的兩個參數型態該如何宣告?
(a) *int
(b) *int
(a) *int
(b) **int
(a) int*
(b) int*
(a) int*
(b) int**
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
k > 2
k > 1
k > 0
k > -1
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
18. 給定右側G()函式,執行G(1)後所輸出的值為何?
1 2 3
1 2 3 2 1
1 2 3 3 2 1
以上皆非
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
19. 下列程式碼是自動計算找零程式的一部分,程式碼中三個主要變數分別為Total(購買總額),Paid (實際支付金額),Change(找零金額)。但是此程式片段有冗餘的程式碼,請找出冗餘程式碼的區塊。
冗餘程式碼在 A 區
冗餘程式碼在 B 區
冗餘程式碼在 C 區
冗餘程式碼在 D 區
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
20. 右側程式執行後輸出為何?
0
10
25
50
10 questions
scratch
Quiz
•
11th - 12th Grade
10 questions
C++ 變數/輸入/輸出
Quiz
•
11th Grade
10 questions
2223_S4_ICT_T2_exam_exercise_1-10
Quiz
•
9th - 12th Grade
10 questions
Concept of Computer Network
Quiz
•
University
10 questions
Operation System
Quiz
•
10th - 12th Grade
5 questions
GitHub
Quiz
•
University
10 questions
基礎題目
Quiz
•
10th Grade
10 questions
Ch09-Main Memory_part1
Quiz
•
University
17 questions
CAASPP Math Practice 3rd
Quiz
•
3rd Grade
20 questions
math review
Quiz
•
4th Grade
21 questions
6th Grade Math CAASPP Practice
Quiz
•
6th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
10 questions
4th Grade Math CAASPP (part 1)
Quiz
•
4th Grade
45 questions
5th Grade CAASPP Math Review
Quiz
•
5th Grade
20 questions
Digital Citizenship
Quiz
•
8th - 12th Grade
35 questions
AP Computer Science Principles Practice Exam
Quiz
•
12th Grade
45 questions
AP CSP Exam Review
Quiz
•
9th - 12th Grade
40 questions
AP Computer Science Principles Practice
Quiz
•
10th Grade
27 questions
AP CSP Exam Review
Quiz
•
10th - 12th Grade
24 questions
Business Essentials Unit 5 (2023)
Quiz
•
12th Grade
65 questions
AP CSP Practice Exam
Quiz
•
9th - 12th Grade
94 questions
AP Computer Science Principles-Vocabulary Review
Flashcard
•
10th Grade