Gamma-AN-01.05.2024
Quiz
•
English
•
Professional Development
•
Practice Problem
•
Easy
CCC info@ccc.training
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
For the following question, how will the array elements look like after second pass if sorted using Insertion Sort? 34, 8, 64, 51, 32, 21
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
If the given input array is sorted or nearly sorted, which of the following algorithm gives the best performance?
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The way a card game player arranges his cards as he picks them up one by one, is an example of
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
As part of the maintenance work, you are entrusted with the work of rearranging the library books in a shelf in proper order, at the end of each day. The ideal choice will be
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int binarySearch(int arr[], int left, int right, int target) { if (left <= right) { int mid = left + (right - left) / 2; if (arr[mid] == target) return mid; else if (arr[mid] < target) return binarySearch(arr, mid + 1, right, target); else return binarySearch(arr, left, mid - 1, target); } return -1; } What type of binary search does this code snippet represent?
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int func(int arr[], int n, int target) { int left = 0; int right = n - 1; while (left <= right) { int mid = left + (right - left) / 2; if (arr[mid] == target) return mid; else if (arr[mid] < target) left = mid + 1; else right = mid - 1; } return -1; } What is the primary purpose of the code snippet?
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int binarySearch(int arr[], int n, int target) { int left = 0; int right = n - 1; while (left < right) { int mid = left + (right - left) / 2; if (arr[mid] == target) return mid; else if (arr[mid] < target) left = mid; else right = mid; } return -1; } What issue or error is present in this code snippet?
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
ARTICLES
Quiz
•
Professional Development
15 questions
ENGLISH GRAMMAR
Quiz
•
5th Grade - Professio...
20 questions
English M2 - Past Simple, regular + irregular verbs, all forms
Quiz
•
Professional Development
10 questions
Follow up - good teacher
Quiz
•
Professional Development
15 questions
PKGBI UNIT 8
Quiz
•
Professional Development
15 questions
The Body Trivia
Quiz
•
Professional Development
10 questions
Time Idioms
Quiz
•
Professional Development
20 questions
Vocabulary: Housekeeping
Quiz
•
University - Professi...
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
