training ep.2
Quiz
•
Computers
•
University
•
Easy
Samuel Onasis
Used 3+ times
FREE Resource
11 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 5 pts
Hal yang wajib dilakukan saat ingin memulai coding di C++
2.
MULTIPLE CHOICE QUESTION
1 min • 7 pts
Apa yang akan tercetak setelah menjalankan kode berikut di C++?
int x = 5;
int y = 10;
cout << x + y;
15
510
5 + 10
Error
3.
MULTIPLE CHOICE QUESTION
1 min • 7 pts
Apa yang akan tercetak setelah menjalankan kode berikut di C++?
int x = 8;
int y = 4;
cout << x / y;
2
2.5
3
4
4.
MULTIPLE CHOICE QUESTION
1 min • 9 pts
Apa hasil dari operasi berikut dalam C++?
int x = 7;
int y = 3;
cout << x % y;
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Bagaimana cara membuat percabangan di C++?
if(a > b) then {
cout << "hi";}
if else (a == b) then{
cout << "hai";}
if else then{
cout << "hey";}
if(a > b){
cout << "hi";}
elif(a == b){
cout << "hai";}
else{
cout << "hey";}
if(a > b) cout << "hi";
else if (a == b) cout << "hai";
else cout << "hey";
if(a > b){
cout << "hi"'}
else if (a == b){
cout << "hi"}
else{
cout << "hey"}
6.
MULTIPLE CHOICE QUESTION
1 min • 9 pts
Apa yang akan tercetak saat kode ini dicompile di C++?
int x = 10;
if(x < 5) cout << "Hello Saint";
else if(x < 10) cout << "Hello James";
else if(x < 15) cout << "Hello Mars";
else if(x == 10 and x < 15) cout << "Well hi";
else cout << "Ih lo siape";
Hello Saint
Hello James
Hello Mars
Well hi
Ih lo siape
Answer explanation
Kenapa "Hello Mars"? Karena didalam percabangan, saat ada kondisi yang terpenuhi, percabangan tersebut tidak akan terus melakuakn pengecekan pada percabangan dibawahnya (yang terhubung dengan percabangan tersebut [else if dan else]).
7.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Bagaimana cara membuat perulangan "for" dalam C++?
for(int i == 1; i < 10; i++){
cout << "mpc";
}
for i in range(10){
cout << "mpc";
}
for(i = 1; i < 10; i ++){
cout << "mpc";
}
for(int i = 1; i < 10; i += 1){
cout << "mpc";
}
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
A level Computer Science In-fix post-fix Reverse polish
Quiz
•
10th Grade - University
15 questions
SENATIC Parcial Guía 3_PseInt
Quiz
•
10th Grade - University
10 questions
T02: Python - The Basics
Quiz
•
University
15 questions
LATIHAN SOAL PEMROGRAMAN
Quiz
•
9th Grade - University
10 questions
Quiz - Dizajni dhe Zhvillimi i Uebit
Quiz
•
University
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
12 questions
Hiểu biết về công nghệ thông tin cơ bản
Quiz
•
8th Grade - University
12 questions
Programação Web - PHP
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
18 questions
Plotting Points on the Coordinate Plane
Quiz
•
KG - University
5 questions
Declaration of Independence
Interactive video
•
4th Grade - University
