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
10 questions
C++ Basics Quiz

Quiz
•
9th - 12th Grade
20 questions
Ch Coding Review

Quiz
•
9th - 12th Grade
20 questions
class xi science and management sec d

Quiz
•
12th Grade
10 questions
Operators in C

Quiz
•
9th - 12th Grade
20 questions
Thao tác tệp trong C++

Quiz
•
9th - 12th Grade
20 questions
Linguaggio C++

Quiz
•
10th - 12th Grade
15 questions
Control statements in C++

Quiz
•
9th - 12th Grade
20 questions
ИТ ИЭФ

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade