CTDL_3
Quiz
•
Instructional Technology
•
University
•
Easy
Hoàng Hiệp
Used 9+ times
FREE Resource
51 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Đối với một giải thuật, ta thường sử dụng những quy tắc nào để đánh giá độ phức tạp của giải thuật?
Quy tắc nhân.
Quy tắc tỏng và quy tắc nhân.
Quy tắc tỏng.
Không dùng quy tắc nào.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho biết dộ phức tạp của giải thuật sau:
sum=0;
for(i=0;i<n;i++){
sum=sum+i*i; }
O(n2)
O(n3)
O(n)
O(log2n)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho biết độ phức tạp của giải thuật tính tổng các nghịch đảo của n số tự nhiên đầu tiên.
O(n2)
O(n3)
O(log2n)
O(n)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Mối quan hệ giữa cấu trúc dữ liệu và giải thuật có thể minh họa bằng đẳng thức nào dưới đây?
Giải thuật=Chương trình.
CTDL+Chương trình=Giải thuật.
CTDL+Giải thuật=Chương trình.
CTDL=Giải thuật+Chương trình.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Với a được khai báo là số nguyên và giá trị khởi tạo là 1, cho biết kết quả của câu lệnh: printf("%d",a==2? 5:2);
2
5
0
1
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Để đánh giá một CTDL chúng ta thường dựa vào những tiêu chí nào?
CTDL phải phản ánh đúng thực tế của bài toán.
CTDL phải dễ dàng trong việc thao tác dữ liệu.
CTDL phải tiết kiệm tài nguyên (bộ nhớ trong).
Cả 3 tiêu chí trên.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho chương trình sau:
#include <stdio.h>
float Tinh(float n){ if(n==1) return 0.5;
return Tinh(n-1) + 1/(2*n);}
int main(){ printf("\nkq= %3.2f", Tinh(4); }
Cho biết kết quả hiển thị ra màn hình khi chạy chương trình trên.
1.041667
1.04
3.2
1.041
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Instructional Technology
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms
Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
20 questions
La Hora
Quiz
•
9th Grade - University
7 questions
Cell Transport
Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University