Data Structures & Algorithms

Data Structures & Algorithms

7th Grade

40 Qs

quiz-placeholder

Similar activities

code.org/vexVR

code.org/vexVR

5th - 8th Grade

39 Qs

Tugas kelas 7 a dan b

Tugas kelas 7 a dan b

7th Grade

40 Qs

SOAL STS-REMIDI INFOR-X-new

SOAL STS-REMIDI INFOR-X-new

1st Grade - University

40 Qs

QBASIC For Grade 6

QBASIC For Grade 6

5th - 10th Grade

45 Qs

Minecraft

Minecraft

1st Grade - Professional Development

37 Qs

minecraft

minecraft

KG - Professional Development

41 Qs

Linux2 - Lesson 6 (exam training)

Linux2 - Lesson 6 (exam training)

1st - 10th Grade

40 Qs

Latihan SAS Kelas 7

Latihan SAS Kelas 7

7th Grade

40 Qs

Data Structures & Algorithms

Data Structures & Algorithms

Assessment

Quiz

Computers

7th Grade

Medium

Created by

Trang Phan

Used 1+ times

FREE Resource

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of inserting an element at the end of an array (without resizing)?

O(1)

O(n)

O(log n)

O(n log n)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure is most suitable for performing undo operations?

Queue

Stack

Hash table

Array

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a main advantage of using a hash table compared to an array for searching elements?

Constant time access using a key

Elements are sorted

Uses less memory

No collisions

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Among the following traversal orders, which order is correct for in-order traversal of a binary search tree?

Root -> Left -> Right

Left -> Root -> Right

Right -> Root -> Left

Root -> Right -> Left

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between a stack and a queue?

Stack uses FIFO, Queue uses LIFO

Stack uses LIFO, Queue uses FIFO

Stack only stores numbers, Queue stores strings

Stack is dynamic, Queue is static

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a min-heap, which of the following is always true?

The root has the largest value

All leaves have the same value

The root has the smallest value

All nodes are sorted in ascending order

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm has the best average time complexity among the following algorithms?

Selection sort

Bubble sort

Quick sort

Insertion sort

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?