
Wipro PRP - 7th June 2023
Authored by Kavitha Murugan
Computers
University
Used 3+ times

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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?