II CSE B DP

II CSE B DP

University

20 Qs

quiz-placeholder

Similar activities

Quiz on neural network unit II

Quiz on neural network unit II

University

16 Qs

GIS Unit-1

GIS Unit-1

University

15 Qs

Computer Architecture Unit 3

Computer Architecture Unit 3

University

15 Qs

II MCA ASP.NET ONLINE QUIZ

II MCA ASP.NET ONLINE QUIZ

University

15 Qs

IT 209

IT 209

University

15 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

PHP First Internal Practical Viva

PHP First Internal Practical Viva

University

20 Qs

II CSE B DP

II CSE B DP

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Dr.L.Josephine Dept

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Optimal substructure

Overlapping subproblems

Greedy approach

Both optimal substructure and overlapping subproblems

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If an optimal solution can be created for a problem by constructing optimal solutions for its subproblems, the problem possesses ____________ property.

Overlapping subproblems

Optimal substructure

Memoization

Greedy

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a problem can be solved by combining optimal solutions to non-overlapping problems, the strategy is called _____________

Dynamic programming

Greedy

Divide and conquer

Recursion

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a top-down approach of dynamic programming is applied to a problem, it usually _____________

Decreases both, the time complexity and the space complexity

Decreases the time complexity and increases the space complexity

Increases the time complexity and decreases the space complexity

Increases both, the time complexity and the space complexity

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following standard algorithms is not Dynamic Programming based?

Bellman–Ford Algorithm for single source shortest path

Floyd Warshall Algorithm for all pairs shortest paths

0-1 Knapsack problem

Prim’s Minimum Spanning Tree

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following problems should be solved using dynamic programming?

Merge sort

Binary search

Longest common subsequence

Quicksort

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dijkstra’s Algorithm is the prime example for ___________

Dynamic programming

Back tracking

Branch and bound

Greedy algorithm

Create a free account and access millions of resources

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?