Search Header Logo

Syntax Dasar C++ #1

Authored by Andrian (NightSky)

Information Technology (IT)

11th Grade

Used 2+ times

Syntax Dasar C++ #1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa fungsi dari #include dalam program C++?

Menyimpan data

Menampilkan output ke layar

Menentukan tipe data

Mengimpor file header untuk fungsi input/output

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Perintah untuk menampilkan teks ke layar adalah...

cin

print

printf

cout

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fungsi endl dalam C++ adalah...

Menambahkan angka

Menyisipkan komentar

Menggabungkan string

Membuat baris baru

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Apa hasil dari kode berikut ini?

Hallo

dunia

Halo Dunia! (dalam satu baris

eror

Hallo

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Manakah contoh nama variabel yang valid?

1data

int

#angka

nilai_siswa

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Mengapa kode berikut menghasilkan error?

Variabel tidak punya tipe data

Tidak ada main()

Tidak ada #include

Variabel digunakan sebelum dibuat

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Apa output dari code ini

20

2

0

4

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?