Wipro PRP - 7th June 2023

Wipro PRP - 7th June 2023

University

15 Qs

quiz-placeholder

Similar activities

OOP

OOP

University

13 Qs

csharp

csharp

University

10 Qs

Fundamentos JAVA

Fundamentos JAVA

University

20 Qs

Java Основи

Java Основи

11th Grade - University

16 Qs

Third Year Placement Training Revision Test

Third Year Placement Training Revision Test

University

10 Qs

SAD Topic 7

SAD Topic 7

University

10 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

Final Quiz

Final Quiz

University

20 Qs

Wipro PRP - 7th June 2023

Wipro PRP - 7th June 2023

Assessment

Quiz

Computers

University

Hard

Created by

Kavitha Murugan

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trace the output.

class A{
    public static void main(String[] args) {
        System.out.print();
    }
}

Runs without any error, prints nothing

Error: no suitable method found for print

1

0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  System.out.println(86>>2);

  System.out.println(-86>>2);

21 -22

21 -21

22 -22

22 -21

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

.Main method is static because to execute main method without creating object By JVM

Yes

No

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

All Interface variables are ___ by default in Java.

public

final

public and final

any thing is acceptable(private, protected, etc.,)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A Class implementing an Interface can use ____ access modifier before the implemented methods.

public

private

protected

all are acceptable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these can be used to fully abstract a class from its implementation?

asbtract

Interface

Both abstract and Interface

none of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A Java Interface can not declare constructors. State TRUE or FALSE.

True

false

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?