Search Header Logo

NMLT - Lab 1

Authored by NGHĨA TÍN

Computers

University

Used 2+ times

NMLT - Lab 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

5

6

Lỗi biên dịch

Không xác định

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kiểu dữ liệu char trong C thường có kích thước bao nhiêu byte?

1

2

4

8

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong ngôn ngữ C, hàm nào sau đây dùng để nhập dữ liệu từ người dùng?

printf()

scanf()

input()

cout

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì?

9

10

11

Không xác định

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Để nhập một số thực từ người dùng vào biến x, ta cần điền vào chỗ trống sau:

scanf("%d", &x);

scanf("%c", &x);

scanf("%f", &x);

scanf("%s", &x);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn mã sau là gì nếu người dùng nhập vào 5.5?

Gia tri x la: 5.5

Gia tri x la: 5

Gia tri x la: 6

Lỗi biên dịch

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Điền vào chỗ trống để nhập vào một chuỗi ký tự từ người dùng và lưu vào biến name:

scanf("%s", name);

scanf("%d", &name);

printf("%s", name);

input("%s", &name);

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?