Cp QUIZ

Cp QUIZ

University

10 Qs

quiz-placeholder

Similar activities

C++ Array Quiz

C++ Array Quiz

University

10 Qs

Information System and Modern Organization part 1

Information System and Modern Organization part 1

University

14 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

Node.js

Node.js

University

10 Qs

GUESS THE ANSWER

GUESS THE ANSWER

University

10 Qs

Software Testing

Software Testing

University

10 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

Fun with Computer Architecture

Fun with Computer Architecture

University

15 Qs

Cp QUIZ

Cp QUIZ

Assessment

Quiz

Computers

University

Practice Problem

Easy

Created by

sowndarya csm

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 10 pts

In backtracking, what is pruning?

  1. Trimming unwanted branches in the search space.

  1. The process of selecting the best solution

reversing the steps taken

  1. The process of finding the optimal solution.

2.

MULTIPLE CHOICE QUESTION

15 mins • 10 pts

What is the key feature of a problem that makes it suitable for a backtracking solution?

  1. The problem has overlapping subproblems.

  1. The problem has an optimal substructure.

  1. The problem can be divided into smaller independent subproblems.

  1. The problem exhibits a recursive structure and can be solved by trying out different possibilities.

3.

MULTIPLE CHOICE QUESTION

15 mins • 10 pts

The first step in the naïve greedy algorithm is?

adding flows with higher values

reversing flow if required

analysing the zero flow

calculating the maximum flow using trial and error

4.

MULTIPLE CHOICE QUESTION

15 mins • 10 pts

Which of the following algorithms is the best approach for solving Huffman codes?

greedy algorithm

exhaustive search

divide and conquer algorithm

brute force algorithm

5.

MULTIPLE CHOICE QUESTION

15 mins • 10 pts

Which bit is reserved as a parity bit in an ASCII set?

first

seventh

eighth

tenth

6.

MULTIPLE CHOICE QUESTION

15 mins • 10 pts

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

7.

MULTIPLE CHOICE QUESTION

15 mins • 10 pts

In dynamic programming, the technique of storing the previously calculated values is called ___________

Saving value property

Storing value property

Memoization

Mapping

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?