
Data structures Viva2

Quiz
•
Computers
•
University
•
Hard
Rejimoan R
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the value of the postfix expression 6 3 2 4 + – *?
74
22
40
-18
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the advantage of a hash table as a data structure?
easy to implement
faster access of data
exhibit good locality of reference
very efficient for less number of entries
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider an implementation of unsorted singly linked list. Suppose it has its representation with a head pointer only. Given the representation, which of the following operation can be implemented in O(1) time?
i) Insertion at the front of the linked list ii) Insertion at the end of the linked list iii) Deletion of the front node of the linked list iv) Deletion of the last node of the linked list
I and II
I and III
I, II and III
I, II and IV
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the outcome of the prefix expression +, -, *, 3, 2, /, 8, 4, 1?
12
11
5
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would be the time complexity if user tries to insert the element at the end of the linked list (head pointer is known)?
O(1)
O(n)
O(logn)
O(nlogn)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose the numbers 7, 5, 1, 8, 3, 6, 0, 9, 4, 2 are inserted in that order into an initially empty binary search tree. The binary search tree uses the usual ordering on natural numbers. What is the in-order traversal sequence of the resultant tree?
7 5 1 0 3 2 4 6 8 9
0 2 4 3 1 6 5 9 8 7
0 1 2 3 4 5 6 7 8 9
9 8 6 4 2 3 0 1 5 7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The average depth of a binary search tree is:
O(n0.5)
O(n)
O(log n)
O(n log n)
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Analisis Struktur Data

Quiz
•
10th Grade - University
20 questions
soal berpikir komputasional kelas 8 gasal

Quiz
•
8th Grade - University
15 questions
Linked List (Chapter 2)

Quiz
•
University
20 questions
pertanyaan teknik informatika terbaik untuk s1

Quiz
•
University
15 questions
Knowledge Knockout[Quiz Round](2nd-4th years)

Quiz
•
University
17 questions
Graph Theory Data Structures

Quiz
•
University
14 questions
16) 211.3 Managing mailbox access

Quiz
•
University
15 questions
5. Manajemen Proses

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University