
Hard level quiz
Authored by mehul mehul
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
you are given a single linked list 1->2->3->4->5->null.
you have to delete the node with value 3 from linked list and you are having a pointer pointing to node with value 3.
you are not given head of linked list or any other information.
what will be the bes time complexity for doing so?
O(n)
O(1)
not possible
none of these
2.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What is the recurrence relation for merge sort?
T(n)=2T(n/2)
T(n)=2T(n/2)+k
T(n)=2T(n/2)+O(n)
T(n)=2T(n/2)+O(logn)
3.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
A program P reads in 500 integers in the range [0..100] representing the scores of 500 students. It then prints the frequency of each score above 50. What would be the best way for P to store the frequencies?
array of 50 numbers
a array of 100 numbers
a array of 500 number
a array of 600 numbers
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
What does the following function print for n = 25?
void fun(int n)
{
if (n == 0)
return;
printf("%d", n%2);
fun(n/2);
}
11001
10011
11111
00000
5.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Worst case time complexity to access an element in a BST can be?
O(n)
O(n*logn)
O(1)
O(logn)
6.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which of the following represents the Postorder Traversal of a Binary Tree?
left->right->root
left->root->right
right->left->root
root->left->right
7.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
The five items: A, B, C, D, and E are pushed in a stack, one after other starting from A. The stack is popped four items and each element is inserted in a queue. The two elements are deleted from the queue and pushed back on the stack. Now one item is popped from the stack. The popped item is?
A
B
C
D
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
16 questions
Super easy quiz
Quiz
•
1st Grade - Professio...
13 questions
Session 3
Quiz
•
University
15 questions
Computer System Servicing: Occupational Health and Safety
Quiz
•
10th Grade - University
15 questions
Thương Hiệu
Quiz
•
University - Professi...
10 questions
Quiz Access y SQL
Quiz
•
University
15 questions
Chayamana Quiz Competition
Quiz
•
1st Grade - University
11 questions
The year 2021
Quiz
•
7th Grade - University
20 questions
INTERNET
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Other
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University