Code Uncode 2.0

Code Uncode 2.0

12th Grade

40 Qs

quiz-placeholder

Similar activities

CSP Unit 10: Algorithms

CSP Unit 10: Algorithms

9th - 12th Grade

41 Qs

end of year Quiz

end of year Quiz

12th Grade - University

35 Qs

year 3 QUIZ 3 2nd term

year 3 QUIZ 3 2nd term

3rd Grade - University

40 Qs

LESSON 2 QUIZ

LESSON 2 QUIZ

11th - 12th Grade

40 Qs

Algorithm and Pseudocode

Algorithm and Pseudocode

12th Grade

41 Qs

Big O notation

Big O notation

12th Grade

38 Qs

Review: CC_L01-L03

Review: CC_L01-L03

9th - 12th Grade

40 Qs

Sorting, Searching and Big O Review

Sorting, Searching and Big O Review

9th Grade - University

45 Qs

Code Uncode 2.0

Code Uncode 2.0

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Jafar Gangardiwala

Used 3+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In order traversal of binary search tree will produce −

unsorted list

sorted list

reverse of input

none of the above

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What data structure is used for breadth first traversal of a graph?

queue

stack

list

none of the above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

left_subtree (keys) ≤ node (key) ≤ right_subtree (keys)

Complete Binary Tree

Binary Tree

Binary Search Tree

All of the above

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If the array is already sorted, which of these algorithms will exhibit the best performance

Merge Sort

Insertion Sort

Quick Sort

Heap Sort

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

An algorithm is

a piece of code to be executed.

a loosely written code to make final code.

a step by step procedure to solve problem.

all of the above.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In binary heap, whenever the root is removed then the rightmost element of last level is replaced by the root. Why?

It is the easiest possible way.

To make sure that it is still complete binary tree.

Because left and right subtree might be missing.

None of the above!

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If queue is implemented using arrays, what would be the worst run time complexity of queue and dequeue operations?

Ο(n), Ο(n)

Ο(n), Ο(1)

Ο(1), Ο(n)

Ο(1), Ο(1)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?