PBO Minggu 7 [IT-45-01]

PBO Minggu 7 [IT-45-01]

University

10 Qs

quiz-placeholder

Similar activities

HRH12

HRH12

University

15 Qs

IEGTS 2023

IEGTS 2023

University

15 Qs

Ngariung: Child Grooming

Ngariung: Child Grooming

University

7 Qs

ginkgo quizz

ginkgo quizz

University

10 Qs

Fr 4H la famille

Fr 4H la famille

KG - University

10 Qs

MLBB

MLBB

University

15 Qs

F1 Quiz

F1 Quiz

5th Grade - Professional Development

10 Qs

free fire

free fire

2nd Grade - University

15 Qs

PBO Minggu 7 [IT-45-01]

PBO Minggu 7 [IT-45-01]

Assessment

Quiz

Other

University

Hard

Created by

Muhammad Johan Alibasa

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Manakah dari pilihan jawaban berikut ini yang BUKAN merupakan "widening casting"?

long x = 100;

double y = x;

float x = 100.0;

long y = x;

float x = 100.0;

double y = x;

int x = 100;

long y = x;

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Manakah dari pilihan jawaban berikut ini yang melakukan "narrowing casting" dengan BENAR?

int x = 100;

long y = (int) x;

int x = 100;

long y = x;

float x = 100.0;

long y = (long) x;

float x = 100.0;

long y = x;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Dari class diagram yang ada di slide sebelumnya atau di gambar samping ini, manakah output yang paling tepat untuk kode program di bawah ini?

Parent 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

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Dari class diagram yang ada di slide sebelumnya atau di gambar samping ini, manakah output yang paling tepat untuk kode program di bawah ini?

ChildA obj1 = new ChildA();

GrandChildA obj2 = new GrandChildA();

obj1 = obj2;

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

30 sec • 1 pt

Media Image

Dari class diagram yang ada di slide sebelumnya atau di gambar samping ini, manakah output yang paling tepat untuk kode program di bawah ini?

ChildA ob1 = new GrandChildA();

System.out.println( obj1.methodA() );

method child A

method Grand Child A

method Child B

Exception/Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Dari class diagram yang ada di slide sebelumnya atau di gambar samping ini, manakah output yang paling tepat untuk kode program di bawah ini?

Parent obj1 = new GrandChildA();

System.out.println( obj1.number );

10

20

30

40

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Dari class diagram yang ada di slide sebelumnya atau di gambar samping ini, manakah output yang paling tepat untuk kode program di bawah ini?

ChildA ob1 = new GrandChildA();

System.out.println( obj1.toString() );

Parent 10

Child A 20

Grand Child 40

Exception/Error

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?