Search Header Logo

Wipro PRP - 7th June 2023

Authored by Kavitha Murugan

Computers

University

Used 3+ times

Wipro PRP - 7th June 2023
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?