Predict the output:
int arr[ ] = new int[5];
System.out.println(arr[1]);
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
}
7 questions
Kotlin Fundamentals
Quiz
•
Professional Development
9 questions
Abstract Class
Quiz
•
University - Professi...
15 questions
Tech Writing
Quiz
•
Professional Development
8 questions
M1 Quiz
Quiz
•
Professional Development
10 questions
Emotional Intelligence
Quiz
•
Professional Development
15 questions
Static Routing
Quiz
•
Professional Development
10 questions
DAY9_QUIZ_NBKR
Quiz
•
Professional Development
15 questions
[FAST TRACK] Android Class Quiz week 05 12/05
Quiz
•
Professional Development
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade