Latihan Pemrograman

Quiz
•
Computers
•
12th Grade
•
Hard
Jumiyati Jumiyati
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Perhatikan kode program pada gambar! Variabel yang terdapat dalam kode program tersebut adalah ....
r
jari-jari
cin
cout
3.14
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Perhatikan kode program pada gambar! Instruksi output yang digunakan pada kode program tersebut adalah....
cout
cin
return
int
main
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Perhatikan kode program pada gambar! Instruksi input yang digunakan pada kode program tersebut adalah....
cin
cout
return
int
main
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Perhatikan kode pada gambar! Baris kode :
cout << "Input jari-jari lingkaran: ";
Jika diubah menggunakan instruksi printf akan menjadi....
printf("Input jari-jari lingkaran: ") ;
printf("Input jari-jari lingkaran: ", r) ;
printf("Input jari-jari lingkaran: /n") ;
printf("Input jari-jari lingkaran: ")
printf(Input jari-jari lingkaran: ) ;
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Perhatikan kode pada gambar! Baris kode :
cin >> r;
Jika diubah menggunakan instruksi scanf akan menjadi....
scanf("%f", &r) ;
scanf(%f, &r) ;
scanf("%f", &r)
scanf("%f", r) ;
scanf("%f", r)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Perhatikan kode pada gambar! Kode program :
printf("Harga barang adalah: %d", harga) ;
Jika diubah dengan instruksi cout akan menjadi....
cout << "Harga barang adalah : " << harga;
cout << Harga barang adalah : << harga;
cout << "Harga barang adalah : " << harga
cout << "Harga barang adalah : " , harga;
cout << "Harga barang adalah : ";
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Perhatikan kode pada gambar! Kode program :
scanf("%d", &harga) ;
Jika diubah dengan instruksi cin akan menjadi....
cin >> harga;
cin >> "harga";
cin >> "%d", harga;
cin << harga;
cin << "harga";
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Array

Quiz
•
10th - 12th Grade
20 questions
ASK T2 - Kod Arahan (Python)

Quiz
•
7th Grade - University
10 questions
Programming with C++

Quiz
•
9th - 12th Grade
10 questions
Functions in C++

Quiz
•
9th - 12th Grade
10 questions
Quiz C++ Grade 10

Quiz
•
9th - 12th Grade
10 questions
Introduction to C++ 2024/25

Quiz
•
12th Grade
20 questions
ALGORITMA PEMROGRAMAN LANJUTAN KELAS 8

Quiz
•
8th Grade - University
20 questions
Pemrograman Web (Edisi 1)

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade