Flashcard Sample by Ashis

Flashcard Sample by Ashis

Assessment

Flashcard

Computers

University

Hard

Created by

ashis pradhan

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following data structures is a non-linear data structure? Array, Linked List, Stack, Tree

Back

Tree

2.

FLASHCARD QUESTION

Front

What is the time complexity of searching for an element in a sorted array using binary search?

Back

O(n^2)

3.

FLASHCARD QUESTION

Front

Which data structure is commonly used for implementing recursion?

Back

Linked List

4.

FLASHCARD QUESTION

Front

What is the primary purpose of a stack data structure?

Back

To store data in a Last In First Out (LIFO) manner

5.

FLASHCARD QUESTION

Front

What is the average time complexity for inserting an element in a hash table?

Back

O(1)

6.

FLASHCARD QUESTION

Front

Which data structure uses a FIFO (First In First Out) order?

Back

Queue

7.

FLASHCARD QUESTION

Front

Which of the following data structures is used to implement a priority queue? Array, Linked List, Heap, Stack

Back

Heap

8.

FLASHCARD QUESTION

Front

What is the time complexity of accessing an element in an array?

Back

O(1)

9.

FLASHCARD QUESTION

Front

Which data structure is best suited for breadth-first search (BFS) in a graph?

Back

Queue