
CSE334_Practice Set2

Quiz
•
Computers
•
University
•
Hard
Pushpendra Pateriya
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The preorder traversal of a binary search tree is 15, 10, 12, 11, 20, 18, 16, 19. Which one of the following is the postorder traversal of the tree?
20, 19, 18, 16, 15, 12, 11, 10
19, 16, 18, 20, 11, 12, 10, 15
11, 12, 10, 16, 19, 18, 20, 15
10, 11, 12, 15, 16, 18, 19, 20
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of inserting n elements into an empty linked list, if the linked list needs to be maintained in sorted order?
Θ(n^2)
Θ(1)
Θ(n)
Θ(n log n)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst-case time complexity of inserting n^2 elements into an AVL tree with n elements initially?
Θ(n^2 log n)
Θ(n^2)
Θ(n^4)
Θ(n^3)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following C program. What is the output of this program?
#include
0, c
0, a+2
'0', 'a+2'
'0', 'c'
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following C Program void f(int, short); void main() { int i = 100; short s = 12; short *p = &s; ___________ ; // call to f() } Which one of the following expressions, when placed in the blank above, will NOT result in a type-checking error?
f(i, *p)
i = f(i,s)
f(s, *s)
f(i, *s)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT (n refers to the number of items in the queue)?
The worst-case time complexity for both operations will be Ω(n)
Worst case time complexity for both operations will be Ω(log n)
At most one operation can be performed on O(1) time but the worst-case time for the other operation will be Ω(n)
Both operations can be performed in O(1) time
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The result evaluating the postfix expression 10 5 + 60 6/ * 8 – is
284
71
213
142
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
DS UNIT-2 TEST-2

Quiz
•
University
15 questions
Fundamentals of Algorithms - Unit 1 - Test 1

Quiz
•
University
10 questions
PAA - Análise Assintótica

Quiz
•
University
14 questions
Bloque1 IA

Quiz
•
University
15 questions
Luyện tập

Quiz
•
KG - University
10 questions
FLASH

Quiz
•
University
10 questions
Analysis of Algorithms

Quiz
•
University
10 questions
DAA Quiz 1

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