Data Structures

Data Structures

KG

20 Qs

quiz-placeholder

Similar activities

Informatika Bab 1 - 2

Informatika Bab 1 - 2

10th Grade

20 Qs

Data Structures & Types

Data Structures & Types

11th Grade

20 Qs

BERPIKIR KOMPUTASIONAL

BERPIKIR KOMPUTASIONAL

9th Grade

21 Qs

Basics of Data Structure

Basics of Data Structure

University

20 Qs

Ulangan 2

Ulangan 2

10th Grade

20 Qs

Data Structures

Data Structures

10th Grade - University

18 Qs

Data Structures

Data Structures

9th - 12th Grade

21 Qs

Kuis Struktur Data

Kuis Struktur Data

10th Grade

20 Qs

Data Structures

Data Structures

Assessment

Quiz

Computers

KG

Hard

Created by

Monisha Chitharthana

Used 8+ times

FREE Resource

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

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?