
Тест по алгоритмам сортировки
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Medium
Марзия Сагиева
Used 3+ times
FREE Resource
Enhance your content in a minute
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Сұрыптау алгоритмдері дегеніміз не?
Мәліметтерді сақтау әдісі
Мәліметтерді ретке келтіру әдісі
Мәліметтерді іздеу алгоритмі
Мәліметтерді шифрлау әдісі
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bubble Sort алгоритмінің уақыт күрделілігі қандай?
O(n)
O(n²)
O(log n)
O(n log n)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Қай сұрыптау әдісі ең жылдам деп есептеледі үлкен көлемдегі деректер үшін?
Bubble Sort
Selection Sort
Quick Sort
Insertion Sort
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Merge Sort қандай әдіс қолданылады?
Бөл және биле (Divide and Conquer)
Итеративті қайталау
Тікелей алмастыру
Кездейсоқ таңдау
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Insertion Sort алгоритмі қай жағдайда тиімді жұмыс істейді?
Мәліметтер толығымен реттелмегенде
Мәліметтер аз және ішінара реттелгенде
Мәліметтер үлкен болғанда
Мәліметтер қайталанғанда
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Төмендегі кодтың нәтижесі қандай болады?
arr = [64, 34, 25, 12, 22, 11, 90]
for i in range(len(arr)):
for j in range(0, len(arr)-i-1):
if arr[j] > arr[j+1]:
arr[j], arr[j+1] = arr[j+1], arr[j]
print(arr)
[90, 64, 34, 25, 22, 12, 11]
[11, 12, 22, 25, 34, 64, 90]
[64, 34, 25, 12, 22, 11, 90]
Қате пайда болады
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quick Sort әдісін қолдана отырып, массивті сұрыптаңыз:
arr = [10, 7, 8, 9, 1, 5]
Мына функцияны қолданыңыз:
def quick_sort(arr):
if len(arr) <= 1:
return arr
pivot = arr[len(arr) // 2]
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]
return quick_sort(left) + middle + quick_sort(right)
print(quick_sort(arr))
[10, 7, 8, 9, 1, 5]
[1, 5, 7, 8, 9, 10]
[5, 1, 7, 8, 9, 10]
[1, 10, 5, 7, 8, 9]
Similar Resources on Wayground
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
10 questions
Exploring the Energy Cycle: Photosynthesis and Cellular Respiration
Interactive video
•
6th - 10th Grade
10 questions
Guess the Christmas Movie by the Scene Challenge
Interactive video
•
6th - 10th Grade
