CTECH-02.02.2024-FN

CTECH-02.02.2024-FN

Professional Development

15 Qs

quiz-placeholder

Similar activities

Kuis Umum 2

Kuis Umum 2

KG - Professional Development

15 Qs

Vocab

Vocab

Professional Development

12 Qs

FINAL STAGES OF FLIGHT

FINAL STAGES OF FLIGHT

Professional Development

20 Qs

Past simple

Past simple

6th Grade - Professional Development

10 Qs

học cùng tiếng anh

học cùng tiếng anh

8th Grade - Professional Development

16 Qs

Quiz Contest Day 10 (Last Day Bumper Quiz)

Quiz Contest Day 10 (Last Day Bumper Quiz)

Professional Development

10 Qs

Career Paths Accounting 1 Unit 7

Career Paths Accounting 1 Unit 7

Professional Development

16 Qs

ENGLISH TYPE OF SENTENCES

ENGLISH TYPE OF SENTENCES

12th Grade - Professional Development

20 Qs

CTECH-02.02.2024-FN

CTECH-02.02.2024-FN

Assessment

Quiz

English

Professional Development

Medium

Created by

CCC info@ccc.training

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...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is dynamic programming in data structures?

A technique for designing efficient algorithms by breacking down a problem into smaller subproblems
A way to store and organize data in a computer program
A process of optimizing memory usage in a program
Amethod for creating algorithms that use only constant space

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Consider the recursive implementation to find the nth fibonacci number: int fibo(int n) if n <= 1 return n return __________ Which line would make the implementation complete?

fibo(n) + fibo(n)
fibo(n) + fibo(n – 1)
fibo(n – 1) + fibo(n + 1)
fibo(n – 1) + fibo(n – 2)

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Suppose we find the 8th term using the recursive implementation. The arguments passed to the function calls will be as follows: fibonacci(8) fibonacci(7) + fibonacci(6) fibonacci(6) + fibonacci(5) + fibonacci(5) + fibonacci(4) fibonacci(5) + fibonacci(4) + fibonacci(4) + fibonacci(3) + fibonacci(4) + fibonacci(3) + fibonacci(3) + fibonacci(2) : : : Which property is shown by the above function calls?

Memoization
Optimal substructure
Overlapping subproblems
Greedy

4.

MULTIPLE CHOICE QUESTION

2 mins • 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

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The following sequence is a fibonacci sequence: 0, 1, 1, 2, 3, 5, 8, 13, 21,….. Which technique can be used to get the nth fibonacci term?

Recursion
Dynamic programming
A single for loop
Recursion, Dynamic Programming, For loops

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the space complexity of the recursive implementation used to find the nth fibonacci term?

O(1)
O(n)
O(n2)
O(n3)

7.

MULTIPLE CHOICE QUESTION

2 mins • 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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?