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
13 questions
Chap 1: What is a program made of?
Quiz
•
University
10 questions
Web Development, stationing.
Quiz
•
University
12 questions
CSSE Quiz Day2
Quiz
•
University
10 questions
Lourdes Amaranta Ayala Gracia
Quiz
•
8th Grade - University
10 questions
Recursion Practice, Recursion Practice, Recursion Practice...
Quiz
•
10th Grade - University
10 questions
cp06-01-1D-Array
Quiz
•
University
10 questions
6-文件操作
Quiz
•
University
10 questions
Listen in Python
Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
22 questions
FYS 2024 Midterm Review
Quiz
•
University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
12 questions
1 Times Tables
Quiz
•
KG - University
20 questions
Disney Trivia
Quiz
•
University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University