2.2mo
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Giang Cù
FREE Resource
Enhance your content in a minute
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Khi viết hàm tính T(n) = 1 + 2 + 3 + ..... + n, n là số tự nhiên bằng giải thuật đệ quy, lời gọi đệ quy nào được gọi cuối cùng?
T(n+1)
T(n-1)
T(1)
T(n)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hãy cho biết công thức truy hồi của hàm F(x,n) được xây dựng dưới đây:
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết mô hình dưới đây mô tả cách hoạt động của giải thuật nào?
Giải thuật đệ quy
Giải thuật gọi hàm tìm kiếm
Giải thuật tìm kiếm
Giải thuật sắp xếp mảng số nguyên
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Biểu thức nào biểu diễn kết quả của việc gọi recu(5,4)?
yx+2
xy
x*y
x+y
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho hàm kt(n) và số nguyên m = 199. Cho biết kết quả khi gọi kt(m).
int kt(int n){
if (n==0) return 1;
if (n%2==1) return 0;
if (n%2==0) return kt(n/10);
}
kt(m) trả về 2.
kt(m) trả về 1
kt(m) trả về 0.
kt(m) trả về 22.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm trả về kết quả nào khi gọi rec(50)?
40
Lặp vô hạn
50
45
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết phần cơ sở của hàm sau:
int Tinh(int n) {
if(n==0) return 0;
if (abs(n)==1) return 1;
return Tinh(abs(n)-1) + n*n;
}
if(n==0) return 0;
if (abs(n)==1) return 1;
if (abs(n)==1) return 1;
return Tinh(abs(n)-1) + n*n;
if(n==0) return 0;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
30 questions
Adjectifs possessifs
Quiz
•
University
35 questions
PROCESOS DE MAQUINADO
Quiz
•
University
30 questions
SMK PK_UAS 2024_BASIS DATA_XII RPL-1
Quiz
•
12th Grade - University
31 questions
SJFC Euro 2020 Quiz
Quiz
•
KG - Professional Dev...
37 questions
Đề Cương Cuối Học Kỳ I Môn Công Nghệ 9
Quiz
•
9th Grade - University
34 questions
Latihan Ulangkaji Ting 4
Quiz
•
University
30 questions
UAS SEMESTER GENAP BAHASA INDONESIA - 2020
Quiz
•
University
30 questions
"Электротехника"
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Other
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University
