
Interchange Sort & Shaker Sort

Quiz
•
Computers
•
University
•
Hard
Kiệt Gia
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Hai thuật toán vừa được trình bày là "............ và ............."
(Viết thường tất cả chữ cái)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Ý tưởng của thuật toán Interchange sort
A. Đổi chỗ vị trí cho nhau. Lặp lại xử lý trên với phần tử kế tiếp trong danh sách.
B. Đổi chỗ hai phần tử đầu cuối. Lặp lại xử lý trên với phần tử kế tiếp trong danh sách
C. Đổi chỗ hai phần tử kề nha.Lặp lại xử lý trên với phần tử kế tiếp trong danh sách
D. Đổi chỗ hai phần tử trong cặp nghịch thế. Lặp lại xử lý trên với phần tử kế tiếp trong danh sách
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Đâu không phải là tên gọi của Shaker Sort
A.Bi-Directional Sort
B.Shuttle Sort
C.Ripple Sort
D.Interchange Sort
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Shaker Sort được đánh giá như thế nào
A. Thuật toán không nhận diện được mảng đã sắp xếp
B.Thuật toán nhận diện được mảng đã sắp xếp
C. Độ phức tạp cho trường hợp tốt nhất là O(n)
d. Cả B và C đều đúng
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho dãy số sau: 6 1 3 0 5 7. Áp dụng phương pháp Interchange Sort, sau bao nhiều lần thực thì dãy số đã cho được sắp xếp tuần tự tăng dần
A.4
B.5
C.6
D.7
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Giả sử cần sắp xếp mảng M có N phần tử sau theo phương pháp Shaker Sort {6 1 3 0 5 7}
Vòng lặp được thực hiện _ lần thì mảng M đã cho được sắp xếp tuần tự tăng dần
A.1
B.2
C.3
D.4
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Chọn đáp án đúng về hàm Swap
A. void Swap(int &X, int &Y) {
int Temp = X;
X = Y;
Y = Temp;
return; }
B. void Swap(float X, float Y) {
int Temp = X;
X = Y;
Y = Temp;
return; }
C. void Swap(int *X, int *Y) {
int Temp = X;
X = Y;
Y = Temp;
return; }
D. void Swap(int X, int Y) {
int Temp = X;
X = Y;
Y = Temp;
return; }
Create a free account and access millions of resources
Similar Resources on Wayground
5 questions
Array in Java

Quiz
•
University
12 questions
Quiz 9: Pointer

Quiz
•
University
9 questions
Métodos de Ordenamiento

Quiz
•
University
10 questions
Array in C

Quiz
•
University
15 questions
Câu hỏi về lập trình Python

Quiz
•
10th Grade - University
13 questions
C programming-1

Quiz
•
University
15 questions
Java Method

Quiz
•
University
15 questions
Python Basics

Quiz
•
KG - University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University