
DS_01-資料結構簡介
Quiz
•
others
•
University
•
Practice Problem
•
Medium
Chun-Jung Lin
Used 23+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for others
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
