
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
12 questions
Typing

Quiz
•
KG - University
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
15 questions
Python

Quiz
•
University
15 questions
Computer Vision - Quiz 1

Quiz
•
University
14 questions
Quiz sobre Modelo de Iluminação

Quiz
•
University
15 questions
C programming

Quiz
•
University
15 questions
Milking Minds 2 17-01-24

Quiz
•
University
8 questions
Quiz on Complexity Analysis of Algorithms

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University