UAS Algo dan Pemograman

UAS Algo dan Pemograman

1st - 5th Grade

25 Qs

quiz-placeholder

Similar activities

C++ podstawowe pojęcia

C++ podstawowe pojęcia

1st - 5th Grade

24 Qs

Array

Array

1st Grade

25 Qs

Estructura de Datos - Procedimientos y Funciones C++

Estructura de Datos - Procedimientos y Funciones C++

3rd Grade

20 Qs

programación

programación

1st Grade

25 Qs

Programowanie

Programowanie

1st - 6th Grade

20 Qs

DS QUIZ 1

DS QUIZ 1

3rd Grade

20 Qs

C basics

C basics

1st - 4th Grade

25 Qs

Quiz 2 - Pemrograman Web 19-S1IF-10

Quiz 2 - Pemrograman Web 19-S1IF-10

1st - 5th Grade

25 Qs

UAS Algo dan Pemograman

UAS Algo dan Pemograman

Assessment

Quiz

Computers

1st - 5th Grade

Medium

Created by

Fadhli Ranuharja

Used 12+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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 • 5 pts

Bagaimana cara membuat komentar di C++ ?

/* Ini komentar

# Ini komentar

// Ini komentar

< Ini komentar >

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

:

,

::

;

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

cint

cout

cin

getch

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Konstanta akan menampung nilai yang TIDAK dapat diubah-ubah selama program dijalankan. Pernyataan ini bernilai?

Benar

Salah

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Hasil eksekusi kode program di atas adalah ?

int x = 12, y=12;

cout << (x <= y) << endl;

0

1

true

false

Answer explanation

<= means "less than or equal to", it will be true if any one is satisfied

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Hasil eksekusi kode program di atas adalah ?

int x = 2;

cout << x++ << endl;

2

3

Compilation Error

Compiler dependent output

Answer explanation

x++ means "use and then increment"

so x is used (supplied to cout) before incrementing

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?