Search Header Logo

Session 21 + 22: Advanced Type - Struct

Authored by haibt@rikkei.edu.vn rikkei

Information Technology (IT)

University

Used 43+ times

Session 21 + 22: Advanced Type - Struct
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Từ khóa nào được sử dụng để định nghĩa một cấu trúc trong C?

struct

class

union

typedef

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để truy cập một trường dữ liệu trong cấu trúc, ta sử dụng ký hiệu nào?

*

&

.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để truy cập một trường dữ liệu của cấu trúc thông qua con trỏ cấu trúc, ta sử dụng ký hiệu nào?

.

->

&

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cấu trúc có thể bao gồm các loại dữ liệu nào?

Kiểu dữ liệu nguyên thủy

Mảng

Con trỏ

Tất cả các loại trên

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tạo một tên mới cho các kiểu dữ liệu có sẵn, ta sử dụng từ khóa nào?

typedef

define

alias

new

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Có thể khai báo con trỏ tới cấu trúc không?

a) Có

b) Không

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khởi tạo một cấu trúc, cú pháp nào đúng?

a) struct StructName variableName = {value1, value2};

b) struct StructName variableName = (value1, value2);

c) struct StructName variableName = [value1, value2];

d) struct StructName variableName = {value1; value2};

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?