
Java Quiz1 Basics and OOPS

Quiz
•
Professional Development
•
Professional Development
•
Hard
Surekha Rajeshwari
Used 2+ times
FREE Resource
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
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
}
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
quiz on c#

Quiz
•
Professional Development
10 questions
152 Engines L2 L4

Quiz
•
Professional Development
10 questions
Day13_Quiz_NBKR

Quiz
•
Professional Development
15 questions
Revisão Programação Web - 2

Quiz
•
10th Grade - Professi...
15 questions
Manager Development Program - Phase 1 Recap

Quiz
•
Professional Development
10 questions
DevOps MCQ

Quiz
•
Professional Development
9 questions
Prestressed Quiz 1b

Quiz
•
Professional Development
10 questions
PU Day 1 assessments - Srinivas's batch

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade