DS_01-資料結構簡介

DS_01-資料結構簡介

University

8 Qs

quiz-placeholder

Similar activities

bab 3

bab 3

University

10 Qs

Starter Unit8 Mini-test

Starter Unit8 Mini-test

University

11 Qs

DS_14-01-Search

DS_14-01-Search

University

4 Qs

DS_01-資料結構簡介

DS_01-資料結構簡介

Assessment

Quiz

others

University

Practice Problem

Medium

Created by

Chun-Jung Lin

Used 23+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

8 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

2 mins • 10 pts

試問下列片段程式中x=x+1;敘述執行幾次。 int i; for(i=1;i<=100;i+=2) x=x+1;

2.

FILL IN THE BLANK QUESTION

2 mins • 10 pts

試問下列片段程式中x=x+1;敘述執行幾次。 int i=1; while(++i<=100) x=x+1;

3.

FILL IN THE BLANK QUESTION

2 mins • 10 pts

試問下列片段程式中x=x+1;敘述執行幾次。 int i=1; do { x=x+1; }while(i++<=100);

4.

FILL IN THE BLANK QUESTION

2 mins • 10 pts

試問下列片段程式中x=x+1;敘述執行幾次。 int i; for(i=0;i<=100;i+=5) x=x+1;

5.

FILL IN THE BLANK QUESTION

2 mins • 10 pts

試問下列片段程式中x=x+1;敘述執行幾次。 int i=0; while(i++<=100) x=x+1;

6.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

結婚的時候,男女雙方為了聘金要給多少一直沒有結論。

男方說12萬,女方說120萬。

未來丈母娘心疼未來女婿,提了個方案:

結婚後,乖女婿第一天給丈母娘1元,隔天給前一天的2倍,給30天就好。

第1天1元,第2天2元,第3天4元,以此類推。

選哪個方案好?

直接給120萬

結婚後,乖女婿第一天給丈母娘1元,隔天給前一天的2倍,給30天就好。

7.

MULTIPLE CHOICE QUESTION

1 min • 10 pts

假設有一個問題,分別利用5種不同演算法來解決,請問下表中,那一種方法最差?

O(n log n) 稱為n logn n

O(n2) 稱為平方時間(quadratic)

(n3) 稱為立方時間(cubic)

O(2n) 稱為指數時間(exponential)

O(n!) 稱為階層時間

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?