Find The Output of the Program ??

Java

Quiz
•
Other
•
University
•
Medium
N191080 SANKARAABHIRAM
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Compilation error
Runtime error
5 6 5 6
5 6 5
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the Output ?
1
120
0
None Of These
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Guess The Output ?
2 2
3 3
Compilation Error
Runtime Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When an array is passed to a method, what does the method receive?
The reference of the Array
The Copy of The Array
Copy of the first element
Length of the Array
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
101
100
None
Compilation Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
public class Main {
public static void main(String[] args) {
try {
int[] myNumbers = {1, 2, 3};
System.out.println(myNumbers[1]);
int a = 2 / myNumbers[4];
System.out.println(a);
} catch (Exception e) {
System.out.println("Index out of bounds.");
} finally {
System.out.println("The 'try catch' is finished.");
}
}
}
Find the Output
The 'try catch' is finished.
2
2
Index out of bounds.
The 'try catch' is finished.
None of These
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
public class MainClass
{
public static void main(String[] args)
{
C c = new C();
c.firstMethod();
c.secondMethod();
c.thirdMethod();
}
} Find the output ?
FIRST
SECOND
THIRD
FIRST
THIRD
THIRD
THIRD
FIRST
THIRD
SECOND
FIRST
THIRD
THIRD
THIRD
FIRST
SECOND
THIRD
FIRST
THIRD
THIRD
FIRST
THIRD
SECOND
FIRST
THIRD
THIRD
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Coding Golf Event 2

Quiz
•
University
10 questions
Algoritma Struktur Data (1)

Quiz
•
University
15 questions
Technoquiz..3

Quiz
•
University
15 questions
Arrays

Quiz
•
University
15 questions
Quiz on Object Oriented Programming and Java

Quiz
•
University
15 questions
Java Debugging Questions - E

Quiz
•
University
11 questions
Junk Genius

Quiz
•
University
15 questions
Java Debugging Questions - M

Quiz
•
University
Popular Resources on Quizizz
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