
Java Quiz1 Basics and OOPS
Authored by Surekha Rajeshwari
Professional Development
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output:
int arr[ ] = new int[5];
System.out.println(arr[1]);
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output:
package main;
class Main {
public static void main(String args[]) {
int t;
System.out.println(t); } }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
public class Main {
public static void main(String args[]) {
int arr[] = {10, 20, 30, 40, 50};
for(int i=0; i < arr.length; i++) {
System.out.print(" " + arr[i]);
} } }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the immediate parent class for Integer, Float and Long classes?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
predict the output:
abstract class Sample{ //Line0
public int a; //Line1
demo(){ //Line2
a=10; //Line3
} }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
predict the output: abstract class Sample{
Sample(){
super(); //Line1
}
abstract final public get(); //Line2
public static void check() { //Line3
System.out.println("Static checking"); } }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output:
abstract class Sample{
Sample(){
super(); //Line1
}
public final void get() { //Line2
System.out.println(); }
public static abstract void check(); //Line3
}
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?
Similar Resources on Wayground
15 questions
Research Proposal Quiz
Quiz
•
Professional Development
15 questions
Building Laws Quiz 3- PD1096
Quiz
•
KG - Professional Dev...
10 questions
Travel Security
Quiz
•
Professional Development
13 questions
Data Structure
Quiz
•
Professional Development
15 questions
principle of teaching and learning
Quiz
•
Professional Development
15 questions
TOEIC Conversations and Short Talks 2
Quiz
•
Professional Development
10 questions
Guidelines on Data Collection and Validation Process
Quiz
•
Professional Development
15 questions
Google Certified Educator Fundamentals Units 3-4
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade