Search Header Logo

Ôn tập PMMNM chương 3 4

Authored by 22 Ngọc

Computers

University

Used 1+ times

Ôn tập PMMNM chương 3 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

100 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chức năng chính của hàm printf() trong C là gì?

Xuất dữ liệu ra màn hình
Nhập dữ liệu từ bàn phím
Tính toán số học
Đọc dữ liệu từ file

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp đúng của hàm printf() là gì?

printf("format", biến);
printf(biến, "format");
print("format", biến);
printf["format", biến];

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ví dụ printf("Gia tri: %d", a); in ra gì nếu a = 5?

In ra chữ "a"
In ra 5
In ra "Gia tri: 5"
In ra "Gia tri: %d"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khai báo một hàm trong C cần làm bước nào?

Chỉ cần viết tên hàm trong main
Khai báo nguyên mẫu, định nghĩa, gọi hàm
Chỉ cần định nghĩa trong main
Không cần khai báo

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cú pháp khai báo một hàm trả về số nguyên có tên sum nhận 2 tham số int là gì?

int sum(a, b);
int sum(int a, int b);
void sum(int a, int b);
function sum(int a, int b);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm scanf() trong C có chức năng gì?

Xuất dữ liệu ra màn hình
Nhập dữ liệu từ bàn phím
Đọc dữ liệu từ file
Kết thúc chương trình

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sự khác nhau giữa printf() và scanf() là gì?

Cả hai đều nhập dữ liệu
Cả hai đều xuất dữ liệu
printf() xuất dữ liệu, scanf() nhập dữ liệu
printf() nhập dữ liệu, scanf() xuất dữ liệu

Access all questions and much more by creating a free account

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

Already have an account?