CTDL_3
Quiz
•
Instructional Technology
•
University
•
Practice Problem
•
Easy
Hoàng Hiệp
Used 9+ times
FREE Resource
Enhance your content in a minute
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
51 questions
150-200
Quiz
•
University
54 questions
Câu hỏi về Giải thuật và Cấu trúc dữ liệu
Quiz
•
University
50 questions
Desain Grafis Percetakan
Quiz
•
University
49 questions
Ôn tập Tin học
Quiz
•
University
46 questions
Python Gelişim İzleme Testi
Quiz
•
University
50 questions
SOAL PAS TIK SEMESTER I KELAS VII
Quiz
•
1st Grade - University
49 questions
Công nghệ
Quiz
•
10th Grade - University
54 questions
Quiz sobre Sistemas Operacionais
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Instructional Technology
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
