Search Header Logo

Pemrogramman C++

Authored by Muh. Hajar Akbar

Computers

4th - 5th Grade

Used 8+ times

Pemrogramman 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

1 min • 1 pt

Penulisan file header yang benar adalah..

#include <iostream>

include <iostream>;

#Include (iostream)

Include (iostream);

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Fungsi dari main() adalah

Awal mula dari blok program utama

Akhir dari blok program utama

Sebagai punctuator yang awal blok program hingga akhir blok

program

preprocessor pada C++

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

perintah untuk mencetak di C++ adalah

cin

cout

getch

COUT

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Penulisan coding yang benar untuk mencetak kata :

Saya adalah mahasiswa Unusra

adalah :

cout << "Saya adalah mahasiswa Unusra";

cout << cout << Selamat Belajar C++;;

cout >> "cout >> "Selamat Belajar C++";";

cout >> cout >> Selamat Belajar C++;;

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

cin >> "a";

Arti dari perintah diatas adalah :

Masukkan nilai variabel a

Cetak isi variabel a

masukkan nilai A

cetak nilai A

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

File header untuk perintah cout adalah

iostream

conio.h

stdio.h

string.h

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

berikut adalah aturan penulisan identifier/pengenal dalam c++ Kecuali :

Tidak boleh dimulai dengan karakter non huruf

Tidak boleh ada spasi

Tidak menggunakan reserved words

Tidak menggunakan simbol -

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?