
Java Quizz
Authored by Peruvayila Vikram
Other
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
How do we access data in an array
using operator
using variable
using index
using pointer
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following java program
class Demo
{
public static void main(String args[])
{
int a[] = new int[3];
System.out.println("a[0] is "+a[0]);
}
}
compilation error
runtime error
0
1
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is the correct way of importing an entire package ‘pkg’?
import pkg.
Import pkg.
import pkg.*
Import pkg.*
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following package stores all the standard java classes?
lang
java
util
java.packages
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following program
import java.util.*;
class Launch {
public static void main(String args[]) {
int array[] = new int [5];
for (int i = 5; i > 0; i--) {
array[5 - i] = i;
}
Arrays.sort(array);
System.out.print(Arrays.binarySearch(array, 4));
}
}
2
3
4
5
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
10 questions
اختبار مدرسي الحاسوب في المعرض السنوي 2025
Quiz
•
University
10 questions
Arrays - 2D
Quiz
•
University
10 questions
Diagnóstico Fundamentos de Programación.
Quiz
•
University
10 questions
C Functions
Quiz
•
University
10 questions
Federal Law on Food Safety
Quiz
•
University
10 questions
Data Types in C++
Quiz
•
University
10 questions
c set 3
Quiz
•
University
10 questions
QUIZ3:-DATA STRUCTURE
Quiz
•
University
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
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University