Berikut Sintak yang benar untuk menghasilkan output ‘Hello World’ di C++ ?
UAS Algo dan Pemograman

Quiz
•
Computers
•
1st - 5th Grade
•
Medium
Fadhli Ranuharja
Used 12+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
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
Similar Resources on Quizizz
20 questions
Informática Aplicada Vectores C++

Quiz
•
5th Grade
20 questions
Estructura de Datos - Procedimientos y Funciones C++

Quiz
•
3rd Grade
20 questions
Programowanie

Quiz
•
1st - 6th Grade
20 questions
DS QUIZ 1

Quiz
•
3rd Grade
20 questions
Python ม.1

Quiz
•
1st Grade
20 questions
แบบทดสอบกลางภาคpythonครูสมชาย

Quiz
•
1st - 3rd Grade
23 questions
C++_VongLap_Ham

Quiz
•
2nd Grade - University
20 questions
Bases en Python

Quiz
•
2nd Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
18 questions
Main Idea & Supporting Details

Quiz
•
5th Grade
5 questions
Basement Basketball

Quiz
•
3rd Grade
20 questions
Parts of Speech

Quiz
•
3rd - 6th Grade