Search Header Logo

APCS10503-3

Authored by 劉怡萱 劉怡萱

Computers

10th Grade - University

Used 4+ times

APCS10503-3
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

2 mins • 1 pt

Media Image

11. 定義a[n]為一陣列(array),陣列元素的指標為0至n-1。

若要將陣列中a[0]的元素移到a[n-1],

右側程式片段空白處該填入何運算式?

n+1

n

n-1

n-2

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

12. 給定右側函式f1( ) 及f2( )。f1(1)運算過程

中,以下敘述何者為錯?

印出的數字最大的是4

f1一共被呼叫二次

f2一共被呼叫三次

數字2被印出兩次

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

13.右側程式片段擬以輾轉除法求 i 與 j 的最大公

因數。請問while迴圈內容何者正確?

k = i % j;

i = j;

j = k;

i = j;

j = k;

k = i % j;

i = j;

j = i % k;

k = i;

k = i;

i = j;

j = i % k;

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

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

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

15.若以f(22)呼叫右側f()函式,總共會印出多少數字?

16

22

11

15

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?