
Pretest Pewarisan P2
Authored by Krisna Milenia
Computers
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 mins • 20 pts
Perhatikan kode program pada gambar. Pada gambar tersebut terdapat baris kode yang kurang tepat. Kode program yang tepat untuk memperbaiki kesalahan pada gambar adalah…
double r;
Class Program : Bola
Bola bola = new Lingkaran;
Console.WriteLine("Luas permukaan bola =" + bola.luasBola(bola.luasLingkaran(r)));
Console.WriteLine("Luas permukaan bola =" + bola.luasBola(bola.luasLingkaran
(lingkaran.r)));
2.
MULTIPLE CHOICE QUESTION
10 mins • 20 pts
Perhatikan gambar berikut di mana rumus volume kerucut yaitu luas lingkaran dikalikan dengan tinggi kerucut kemudian dibagi 3. Namun terdapat baris kode yang salah sehingga menyebabkan program tidak berfungsi. Kode program yang tepat untuk memperbaiki kesalahan kode pada gambar yaitu…
Class Kerucut : Lingkaran
public double volumeKerucut(double t, double lingkaran)
public double volumeKerucut(double t)
double volume = (l * t) * 1/3;
return kerucut;
3.
MULTIPLE CHOICE QUESTION
10 mins • 20 pts
Pada gambar terdapat kesalahan kode program. Kode program yang tepat untuk memperbaiki kesalahan kode pada gambar di atas yaitu…
class Lingkaran : Kerucut
public int phi = 3.14;
public double luasLingkaran(double r)
double luas = phi * ling.r * ling.r;
return Lingkaran.luasLingkaran();
4.
MULTIPLE CHOICE QUESTION
10 mins • 20 pts
Perhatikan kode program pada gambar. Manakah class Program yang paling tepat untuk menampilkan output luas permukaan bola?
5.
MULTIPLE CHOICE QUESTION
10 mins • 20 pts
Perhatikan kode program pada gambar. Manakah class Program yang paling tepat untuk menampilkan output volume balok?
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
Software
Quiz
•
University
10 questions
Informatika 1 - Mengenal Gambar
Quiz
•
University
10 questions
PSP Week3
Quiz
•
University
10 questions
Round 1: Get to know US :)
Quiz
•
University
10 questions
Pengenalan Digital Marketing
Quiz
•
KG - Professional Dev...
10 questions
Google Workspace
Quiz
•
University
10 questions
2024 - Struktur Data Quiz 1
Quiz
•
University
10 questions
RIZAL
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University