Wipro PRP - 7th June 2023

Wipro PRP - 7th June 2023

University

15 Qs

quiz-placeholder

Similar activities

Java Control and Loop -2

Java Control and Loop -2

University

20 Qs

JAVA - Arrays

JAVA - Arrays

University - Professional Development

15 Qs

CMP128 Java Ch. 05 Methods

CMP128 Java Ch. 05 Methods

University

10 Qs

SKIP1103 TOPIC 2: USER DEFINED CLASS

SKIP1103 TOPIC 2: USER DEFINED CLASS

University

12 Qs

Java Displaying Data & Data Types

Java Displaying Data & Data Types

University - Professional Development

12 Qs

Java Quiz 1

Java Quiz 1

University

10 Qs

PBO Inheritance Episode 2

PBO Inheritance Episode 2

University

18 Qs

java - intro

java - intro

University

11 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?