SMARTICUS

SMARTICUS

University

20 Qs

quiz-placeholder

Similar activities

Round 2 Debug-The-Code

Round 2 Debug-The-Code

University

15 Qs

Y13 Big O notation

Y13 Big O notation

10th Grade - University

16 Qs

Sorting in Data Structures

Sorting in Data Structures

University

15 Qs

Technical Assessment

Technical Assessment

University

20 Qs

DSA quiz

DSA quiz

University

20 Qs

Sorting algorithms (Y11)

Sorting algorithms (Y11)

8th Grade - University

20 Qs

Searching and Sorting

Searching and Sorting

University - Professional Development

15 Qs

Code Chef Python

Code Chef Python

University

15 Qs

SMARTICUS

SMARTICUS

Assessment

Quiz

Computers

University

Hard

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

If the post order traversal gives a b - c d * + then the label of the nodes 1, 2, 3 ... will be

   +, -, *, a, b, c, d

   a, -, b, +, c, *, d

   a, b, c, d, -, *, +

  -, a, b, +, *, c, d

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity for adding an element to a heap?

O(1)

O(log n)

O(n)

O(n log n)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure is used to implement depth-first search in a graph?

Array

Linked List

Stack

Queue

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operations on a heap data structure has the worst-case time complexity of O(log n)?

Insertion

Deletion

Search

Heapify

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct formula to calculate the index of a node's parent in a binary heap?

i/2

2i

2i+1

i-1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The postfix form of the expression (A B)*(C*D− E)*F / G is

AB CD* E − F **G /

AB CD*E − FG /**

AB CDE F *G /

AB CD* E − F G / 

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a cycle in a graph?

A set of vertices that are all connected to each other.

A path in the graph that starts and ends at the same vertex.

A group of edges that connect two different vertices.

A subgraph that is disconnected from the main graph.

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?