Search Header Logo

ADA QUIZZZZZ 2nd Time

Authored by shama s

Computers

University

Used 3+ times

ADA QUIZZZZZ 2nd Time
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 1 What does time complexity measure in an algorithm?

A . Number of operations executed

B . Amount of memory used

C . Number of lines of code

D . Input size

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2 Which of the following best describes space complexity?

A . The amount of time an algorithm takes to run

B . The amount of memory an algorithm requires to execute

C . The number of inputs an algorithm can handle

D . The number of times an algorithm loops

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3 Quick sort is an example of a sorting algorithm based on which strategy?

A . Dynamic programming

B . Greedy approach

C . Divide and conquer

D . Backtracking

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4 What is the worst-case time complexity of quick sort?

A . O(n)

B . O(n log n)

C . O(n^2)

D . O(log n)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5 Which of the following is/are property/properties of a dynamic programming problem?

A . Optimal substructure

B . Overlapping subproblems

C . Greedy approach

D . Both optimal substructure and overlapping subproblems

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6 What are the constraints of the 0/1 Knapsack Problem?

A . Items` weights and values are negative.

B . Knapsack`s capacity is unlimited.

C . Each item can only be chosen once, and the total weight must not exceed the knapsack`s capacity.

D . Each item can be chosen multiple times.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7 What is the primary objective of the All Pairs Shortest Path problem in graph theory?

A . To find the shortest path from one specific vertex to another.

B . To find the shortest path between every pair of vertices in a graph.

C . To detect negative weight cycles in a graph.

D . To find the longest possible path in a graph.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?