training ep.2
Quiz
•
Computers
•
University
•
Easy
Samuel Onasis
Used 3+ times
FREE Resource
Enhance your content in a minute
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";
}
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
10 questions
Pretest Visual Basic 6.0
Quiz
•
University
10 questions
Teste python- Unesp-Jaboticabal
Quiz
•
University
11 questions
Fortnite
Quiz
•
5th Grade - Professio...
10 questions
pointers and structures
Quiz
•
University
15 questions
Web Dev Midterm Quiz
Quiz
•
University
16 questions
Algo Quiz
Quiz
•
University
10 questions
GRAFIKA KOMPUTER
Quiz
•
University
10 questions
Arboles
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
