Search Header Logo

Latihan Bahasa Pemrograman C ++

Authored by tri wahyu

Other

10th Grade

Used 123+ times

Latihan Bahasa Pemrograman C ++
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Berikut Sintak yang benar untuk menghasilkan output ‘Hello World’ di C++ ?

cout<<“Hello World”;

print<<“Hello World”;

echo “Hello World”;

System.out.print(“Hello World”);

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Bagaimana cara membuat komentar di C++ ?

 /* Ini komentar */

# Ini komentar #

// Ini komentar //

< Ini komentar >

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Setiap perintah di dalam C++ selalu diakhiri dengan tanda?

:

;

]

}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Perintah untuk menginput suatu nilai dari keyboard untuk di proses di dalam program adalah?

cout

cin

getch

input

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suatu tempat yang berfungsi untuk menampung data atau nilai yang dapat berubah-ubah selama program berjalan disebut?

konstanta

variabel

define

function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tipe data apa yang digunakan untuk menyimpan variabel dengan nilai teks?

string

int

float

char

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dibawah ini adalah cara yang tepat untuk deklarasi variabel bilangan dengan tipe integer di C++ !

bilangan int;

var bilangan;

int bilangan;

$bilangan;

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?