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
32 questions
UJIAN TENGAH SEMESTER MAKRO KELAS 24 AKT
Quiz
•
University
40 questions
MultiModa and Freight Forwarding
Quiz
•
University
40 questions
ASAS SMKP ALFABIR 2425 ATK XI
Quiz
•
11th Grade - University
30 questions
Quiz Tổng hợp lớp 5
Quiz
•
5th Grade - University
37 questions
Основы алгоритмизации и программирования
Quiz
•
University
32 questions
Political Science and Political Theory
Quiz
•
University
40 questions
PSAS DPK TO GANJIL 2024
Quiz
•
10th Grade - University
40 questions
World Knowledge
Quiz
•
12th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
