Lecture 0 and 1

 0    11 flashcards    kapi2304
tải về mp3 In chơi tự kiểm tra
 
câu hỏi język polski câu trả lời język polski
What are algorithms?
bắt đầu học
Algorithms are some well-defined set of instructions, steps, or logic, written such that by following the steps, some specific task is accomplished.
The steps of algorithms design are:
bắt đầu học
Obtain a description of the problem, Analyze the problem, Develop a high-level algorithm, Refine the algorithm by adding more detail, Review the algorithm
The major factor in speeding up your getting results is:
bắt đầu học
The algorithm
Which is the most appropriate definition for recursion?
bắt đầu học
A function that calls another execution instance of the same function.
Problems that can only be defined recursively can be solved using recursion.
bắt đầu học
False
Which of the following statement is false?
bắt đầu học
Every recursive function must have a return value.
Factorial function
bắt đầu học
num * fact(num - 1)
Recursion is the process of describing an action in terms of itself.
bắt đầu học
True
A recursive function may or may not have a recursive case.
bắt đầu học
False
A factorial is the product of an integer and all the positive integers greater than it.
bắt đầu học
False
Only problems that are recursively defined can be solved using recursion.
bắt đầu học
False

Bạn phải đăng nhập để đăng bình luận.