Search Header Logo

BA345 L

Authored by Oyungerel Delger

Computers

4th Grade

Used 6+ times

BA345 L
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Үр дүнг гарга

10

20

0

алдаатай

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Үр дүнг гарга.

12

123

321

23

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Класс удамшуулахад ямар түлхүүр үг ашигладаг вэ?

super

extends

this

extent

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class A

{

int i;

void display()

{

System.out.println(i);

}

}

class B extends A

{

int j;

void display()

{

System.out.println(j);

}

}

class inheritance_demo

{

public static void main(String args[])

{

B obj = new B();

obj.i=1;

obj.j=2;

obj.display();

}

}

0

1

2

3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class A

{

int i;

}

class B extends A

{

int j;

void display()

{

super.i = j + 1;

System.out.println(j + " " + i);

}

}

class inheritance

{

public static void main(String args[])

{

B obj = new B();

obj.i=1;

obj.j=2;

obj.display();

}

}

2 2

2 3

3 3

3 2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

public class Vehicle {

public void move() {

System.out.println("The vehicle moves"); } }

public class Car extends Vehicle {

public void move() { System.out.println("The car moves"); } }

public class Main { public static void main(String[] args) {

Vehicle vehicle = new Car(); vehicle.move(); } }

The vehicle moves

The car moves

The vehicle moves

The car moves

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

class Parent {

String name = "parent";

String message() { return "from parent"; } }

class Child extends Parent {

String name = "child";

String message() { return "from child"; } }

public class Main { public static void main(String[] args) {

Parent p = new Child();

System.out.println(p.name + " " + p.message()); } }

"parent from parent" 

"child from child" 

"parent from child" 

"child from parent" 

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?