CTDL_3

CTDL_3

University

51 Qs

quiz-placeholder

Similar activities

ATIVIDADE AVALIATIVA DE REVISÃO DE SD - 3ª MENÇÃO

ATIVIDADE AVALIATIVA DE REVISÃO DE SD - 3ª MENÇÃO

University

50 Qs

Quiz Latihan Soal-Soal UTS Teori Bahasa dan Otomata 2020-2

Quiz Latihan Soal-Soal UTS Teori Bahasa dan Otomata 2020-2

University

50 Qs

CNPM 2

CNPM 2

University

50 Qs

Quiz Latihan Soal-Soal UAS Manajemen Keamanan Informasi-2020

Quiz Latihan Soal-Soal UAS Manajemen Keamanan Informasi-2020

University

50 Qs

CTDL_5

CTDL_5

University

50 Qs

D - Prelim Exam in System Analysis

D - Prelim Exam in System Analysis

University

52 Qs

toanbochuong1

toanbochuong1

University

53 Qs

Ôn tập giữa HKI môn Công nghệ lớp 5 - Cánh diều

Ôn tập giữa HKI môn Công nghệ lớp 5 - Cánh diều

5th Grade - University

50 Qs

CTDL_3

CTDL_3

Assessment

Quiz

Instructional Technology

University

Practice Problem

Easy

Created by

Hoàng Hiệp

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?