
Hard level quiz

Quiz
•
Other
•
University
•
Hard
mehul mehul
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Python Review Module 16 - Searching Sorting Algorithm

Quiz
•
University
14 questions
In-Lab5

Quiz
•
University
10 questions
Clustering

Quiz
•
University
20 questions
IOI 4.0 UNIT 1

Quiz
•
University
15 questions
Let's Play Excel Excel...!

Quiz
•
University
20 questions
Digitale Medienformate 1

Quiz
•
University
20 questions
Evaluación Mundo Electrónico

Quiz
•
University
20 questions
Tech quiz-july

Quiz
•
University
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade
Discover more resources for Other
36 questions
USCB Policies and Procedures

Quiz
•
University
4 questions
Benefits of Saving

Quiz
•
5th Grade - University
20 questions
Disney Trivia

Quiz
•
University
2 questions
Pronouncing Names Correctly

Quiz
•
University
15 questions
Parts of Speech

Quiz
•
1st Grade - University
1 questions
Savings Questionnaire

Quiz
•
6th Grade - Professio...
26 questions
Parent Functions

Quiz
•
9th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University