QUIZ C++

QUIZ C++

10 Qs

quiz-placeholder

Similar activities

TEORI BELAJAR

TEORI BELAJAR

KG - University

11 Qs

do-while vs do loop Quiz

do-while vs do loop Quiz

9th - 12th Grade

5 Qs

Quiz - 5 on Increment and Decrement Operators

Quiz - 5 on Increment and Decrement Operators

KG - University

15 Qs

Unit 6 Vocabulary

Unit 6 Vocabulary

KG - University

12 Qs

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma A

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma A

KG - University

13 Qs

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma B

Parcial 1-Laboratorio II-5to BACO-I Unidad Forma B

KG - University

13 Qs

QUIZ C++

QUIZ C++

Assessment

Quiz

others

Medium

Created by

Suwija Putra

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Apa fungsi dari header file dalam C++?
Untuk mengelola array
Untuk membaca dan menulis input/output standar
Untuk melakukan operasi matematika
Untuk mendefinisikan tipe data string

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Apa tujuan dari fungsi return 0; dalam program utama C++?
Untuk mencetak output ke layar
Untuk mendeklarasikan variabel
Untuk menunjukkan program berjalan tanpa error
Tidak ada tujuan khusus

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image
Apa keluaran dari kode berikut?
10
20
30
40

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Manakah sintaks yang benar untuk membuat komentar satu baris dalam C++?
/* Komentar */
# Komentar
// Komentar
-- Komentar

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Manakah dari berikut ini yang merupakan loop for yang benar dalam C++?
for (int i = 0; i < 10; i++) { cout << i; }
for i in range(10): cout << i;
for (i = 0, i < 10, i++) { cout << i; }
loop (i = 0; i < 10; i++) { cout << i; }

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image
Apa keluaran dari kode berikut?
55
66
56
65

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Manakah pernyataan berikut yang benar tentang function dalam C++?
Fungsi dapat dipanggil sebelum dideklarasikan.
Semua fungsi harus memiliki parameter.
Fungsi dapat memiliki nilai return atau tidak.
Tidak diperbolehkan memiliki lebih dari satu fungsi dalam satu program.

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?