Search Header Logo

APCS10510-4

Authored by 劉怡萱 劉怡萱

Computers

10th Grade - University

Used 1+ times

APCS10510-4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

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

Media Image

k > 2

k > 1

k > 0

k > -1

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

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

Media Image

19. 下列程式碼是自動計算找零程式的一部分,程式碼中三個主要變數分別為Total(購買總額),Paid (實際支付金額),Change(找零金額)。但是此程式片段有冗餘的程式碼,請找出冗餘程式碼的區塊。

冗餘程式碼在 A 區

冗餘程式碼在 B 區

冗餘程式碼在 C 區

冗餘程式碼在 D 區

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

20. 右側程式執行後輸出為何?

0

10

25

50

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?