Search Header Logo

Quiz Pemrograman C++

Authored by Brama Prabowo

Information Technology (IT)

10th Grade

Used 13+ times

Quiz Pemrograman C++
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa ekstensi file standar untuk program C++?

.c

.cpp

.java

.py

.cs

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fungsi utama yang wajib ada pada program C++ adalah?

void()

run()

main()

start()

begin()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Baris `#include ` berfungsi untuk?

Menyimpan variabel

Mengimpor library input-output

Membuat fungsi

Menampilkan hasil

Menjalankan program

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pernyataan yang digunakan untuk mengakhiri sebuah perintah di C++ adalah?

, (koma)

: (titik dua)

; (titik koma)

. (titik)

! (seru)

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Perhatikan kode berikut:
```cpp
#include <iostream>
using namespace std;
int main(){
 cout << "Halo";
 return 0;
}
```
Apa output dari program tersebut?

Error

Halo

hello

Kosong

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara menuliskan komentar satu baris di C++?

<!-- -->

/* ... */

// ...

## ...

** ...

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fungsi `cout` digunakan untuk?

Menghapus variabel

Menyimpan data

Menampilkan output

Menginput data

Membuat fungsi

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?