Java - SET -1
Quiz
•
Computers
•
University
•
Medium
Standards-aligned
R GIRIDHARAN
Used 19+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is correct about an array in Java?
Its size can be changed dynamically
It starts with index 1
All elements have the same data type
Array elements can have mixed data types
Tags
java
array
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How does the indexing of an array start and end if there are 'n' elements?
Starts at 0, ends at n
Starts at 1, ends at n-1
Starts at 0, ends at n-1
Starts at 1, ends at n
Tags
java
array
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In which of the following declarations, both arr1 and arr2 are arrays?
int[] arr1, arr2;
int arr1[], arr2;
Int []arr1, arr2;
None of the above
Tags
java
array
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the default values of elements in an integer array in Java?
0
null
-1
Undefined
Tags
java
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
For a boolean array in Java, which of the following will be the default value for its elements?
0
null
true
false
Tags
java
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following methods is used to create arrays dynamically at runtime in Java?
using `malloc()`
using `new` keyword
using `define`
using `sizeof()`
Tags
java
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is correct about initializing an array in Java?
Elements can only be initialized during array declaration
All elements are automatically initialized to their default values when using the `new` keyword
Array initialization can only be done using the initialization block
None of the above
Tags
java
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Java Quiz 1
Quiz
•
University
20 questions
Microsoft Word Basics Quiz
Quiz
•
University
20 questions
MESYUARAT KE-3 MYTECC ASSEMBLY: TOGETHER WE BIND
Quiz
•
University
20 questions
Software Engineering
Quiz
•
University
20 questions
ICT Short Quiz
Quiz
•
University
20 questions
Review Quiz (Chapter 3&4)
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
20 questions
Microprocessor
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Computers
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
25 questions
Waves-8th Grade Physical Science
Quiz
•
KG - University
41 questions
Unit 8 Key Terms
Quiz
•
11th Grade - University
10 questions
Product & Quotient Derivative Rules
Quiz
•
University
5 questions
How to Calculate Force - Newton's 2nd Law of Motion
Interactive video
•
10th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
