MCAB1

MCAB1

University

12 Qs

quiz-placeholder

Similar activities

QUIZ KELAS JAVA

QUIZ KELAS JAVA

University

10 Qs

REACTOR

REACTOR

University

15 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

Core Java Quiz

Core Java Quiz

University

10 Qs

OOP

OOP

University

13 Qs

Third Year Placement Training Revision Test

Third Year Placement Training Revision Test

University

10 Qs

Java Основи

Java Основи

11th Grade - University

16 Qs

MCAB1

MCAB1

Assessment

Quiz

Computers

University

Hard

Created by

Sobhana Behera

Used 1+ times

FREE Resource

12 questions

Show all answers

1.

OPEN ENDED QUESTION

30 sec • Ungraded

Name

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

30 sec • Ungraded

Roll No

Evaluate responses using AI:

OFF

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the process of defining two or more methods within same class that have same name but different parameters declaration?
method overloading
b) method overriding
c) method hiding
d) none of the mentioned

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Java code? class San { public void m1 (int i,float f) { System.out.println(" int float method"); } public void m1(float f,int i); { System.out.println("float int method"); } public static void main(String[]args) { San s=new San(); s.m1(20,20); } } `

int float method

b) float int method

c) compile time error

d) run time error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Java code? class overload { int x; double y; void add(int a , int b) { x = a + b; } void add(double c , double d) { y = c + d; } overload() { this.x = 0; this.y = 0; } } class Overload_methods { public static void main(String args[]) { overload obj = new overload(); int a = 2; double b = 3.2; obj.add(a, a); obj.add(b, b); System.out.println(obj.x + " " + obj.y); } }
6 6
b) 6.4 6.4
c) 6.4 6
d) 4 6.4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of this keyword can be used in a subclass to call the constructor of superclass?
super
b) this
c) extent
d) extends

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these keywords can be used to prevent Method overriding?
static
b) constant
c) protected
d) fina

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?