Data Structures

Data Structures

KG

20 Qs

quiz-placeholder

Similar activities

ICT and SST Week Quiz_Grade 6

ICT and SST Week Quiz_Grade 6

6th Grade

20 Qs

DWDM-2

DWDM-2

University

20 Qs

machineLearning Test

machineLearning Test

Professional Development

20 Qs

Hardware and Components

Hardware and Components

5th - 11th Grade

19 Qs

STANLEY PUBQUIZ

STANLEY PUBQUIZ

1st Grade

20 Qs

Networking Quiz

Networking Quiz

8th - 9th Grade

15 Qs

Luyện tập tin học K5_buổi 3

Luyện tập tin học K5_buổi 3

5th Grade

16 Qs

Class 1 L-  3 & 4.  CW Practice questions

Class 1 L- 3 & 4. CW Practice questions

1st Grade

20 Qs

Data Structures

Data Structures

Assessment

Quiz

Computers

KG

Practice Problem

Hard

Created by

Monisha Chitharthana

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How is the 2nd element in an array accessed based on pointer notation?

*a+2

*(a+2)

*(*a+2)

&(a+2)

Answer explanation

a[2] is equivalent to *(a + 2) in pointer notation.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

From following which is not the operation of data structure?

 

Operations that manipulate data in some way

Operations that perform computation

Operations that check for syntax error

Operations that monitor an object for the occurrence of control

Answer explanation

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data structures can be used to implement queues?

Stack

Arrays

LinkedList

All of the above

Answer explanation

Stack, Arrays, and LinkedList can be used to implement Queues so all the options are correct.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data structures finds its use in recursion?

Stack

Array

LinkedList

Queues

Answer explanation

Stacks find their use in recursion

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following sorting algorithms provide the best time complexity in the worst-case scenario?

Merge Sort

Quick Sort

Bubble sort

Selection Sort

Answer explanation

Merge Sort will always have a time complexity of O(n * logn) which is the best in the worst case among these algorithms

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum number of swaps that can be performed in the Selection Sort algorithm?

n-1

n

1

n-2

Answer explanation

n-1 swaps are performed at max to sort any array by Selection Sort

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents the Postorder Traversal of a Binary Tree?

Left->Right->Root

Left->Root->Right

Right->Left ->Root

Right->Root->Left

Access all questions and much more by creating a free account

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

Already have an account?