
DAA Quiz 1

Quiz
•
Computers
•
University
•
Hard
shilpi Aggarwal
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where is linear searching used?
When the list has only a few elements
When performing a single search in an unordered list
Used all the time
When the list has only a few elements and When performing a single search in an unordered list
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst case for linear search?
O(nlogn)
O(logn)
O(n)
O(1)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given an input arr = {2,5,7,99,899}; key = 899; What is the level of recursion?
5
2
3
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Merge sort is preferred for arrays over linked lists.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct statement from the following.
branch and bound is not suitable where a greedy algorithm is not applicable
branch and bound divides a problem into at least 2 new restricted sub problems
backtracking divides a problem into at least 2 new restricted sub problems
branch and bound is more efficient than backtracking
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is false about the Kruskal’s algorithm?
It constructs MST by selecting edges in increasing order of their weights
It is a greedy algorithm
It uses union-find data structure
It can accept cycles in the MST
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Suppose two activities A and B, having start and finish time as SA, FA and SB, FB respectively. Both the activities are said to be compatible, under which of the following condition?
SA = FB
SA > FB
SA >= FB or SB >= FA
SA >= FB and SB = FA
Create a free account and access millions of resources
Similar Resources on Wayground
11 questions
Java Programming

Quiz
•
University
10 questions
AI & Expert systems-Unit 1

Quiz
•
University
10 questions
ICPTP L2: Program Design

Quiz
•
University
10 questions
2024Batch-Python-Unit-I-Q & A

Quiz
•
University
10 questions
Computational Thinking - AQA A Level Computer Science

Quiz
•
10th Grade - University
10 questions
K22YG 2

Quiz
•
University
10 questions
Algorithm and Flowchart

Quiz
•
University
10 questions
Chatbots Vocabulary

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