
PBO Minggu 7 [IT-45-04]
Authored by Muhammad Johan Alibasa
Other
University
Used 1+ times
![PBO Minggu 7 [IT-45-04]](https://cf.quizizz.com/img/studentpreview.webp)
AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah yang bukan merupakan sifat dari widening casting?
Dapat melakukan konversi secara otomatis
Kedua tipe yang dikonversi harus compatibel
Proses deklarasi tipenya harus eksplisit
Tipe tujuan harus lebih besar/tinggi levelnya dari sumbernya
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Manakah yang merupakan Widening casting?
Double ke Integer
Integer ke Long
Float ke Integer
Double ke Float
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Manakah yang merupakan narrowing casting?
Short ke Integer
Long ke Double
Integer ke Float
Long ke Integer
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Perhatikan kode program pada gambar di samping ini, apabila pada class driver terdapat kode program di bawah ini, manakah output yang paling tepat?
ChildA obj1 = new ChildA();
System.out.println( obj1.toString() );
this is class Parent
this is class Child A
this is class Child B
this is class Grand Child
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Perhatikan kode program pada gambar di samping ini, apabila pada class driver terdapat kode program di bawah ini, manakah output yang paling tepat?
ChildA obj1 = new GrandChildA();
System.out.println( obj1.toString() );
this is class Parent
this is class Child A
this is class Child B
this is class Grand Child
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Berdasarkan kode program pada gambar di samping dan kode program di class driver di bawah ini, manakah output yang paling sesuai?
ChildA ob1 = new GrandChildA();
System.out.println( obj1.methodA() );
method child A
method Grand Child A
method Child B
Exception/Error: Cannot find symbol
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Berdasarkan kode program pada gambar di samping dan kode program di class driver di bawah ini, manakah output yang paling sesuai?
ChildA ob1 = new GrandChildA();
System.out.println( obj1.toString() );
Parent 10
Child A 20
Child B 30
Grand Child 40
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?