Search Header Logo

Structures & Union

Authored by PANDU WICAKSONO

Computers

University

Used 2+ times

Structures & Union
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Terdapat structure data Person yang menyimpan informasi nama dan usia. Bagaimana cara menginisialisasi structure ini dengan nama "Alice" dan usia 25?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Diberikan structure data Student yang menyimpan nama dan nilai. Bagaimana cara mendeklarasikan array dari structure ini dengan 5 elemen?

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara mengakses sebuah nilai dari elemen ketiga dalam array structure Person?

ini adalah structurenya:

struct Person { char name[50]; int age; };

people[3].value

people[2].name

people[2].value

people[3].name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara mengakses nilai dari elemen name dalam array structure Person?

people.name

people[0].name

people.name[0]

people[1].name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Apa output dari kode ini?

2 0 1

Compiler error

0 1 2

2 1 0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dalam sebuah union, jika ukuran member (4 bytes, 8 bytes, 1 byte), ukuran union tersebut adalah

4 bytes

8 bytes

13 bytes

1 byte

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?

Discover more resources for Computers