
Unit_4_Object Oriented Programming with Java
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Anil Chinchawade
Used 5+ times
FREE Resource
Enhance your content in a minute
38 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of these operators is used to allocate memory to array variable in Java?
malloc
alloc
new
new malloc
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of these is an incorrect array declaration?
int arr[] = new int[5];
int arr[5] = new int [];
int arr[];
arr = new int[5];
int [] arr = new int[5];
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of these is an incorrect Statement?
It is always necessary to use new operator to initialize an array.
Array can be initialized using comma separated expressions surrounded by curly braces.
Array can be initialized when they are declared.
None of the mentioned
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of these is necessary to specify at time of array initialization?
Row
Column
Both Row and Column
None of the mentioned
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of these best describes an array?
A data structure that shows a hierarchical behavior
Container of objects of similar types
Arrays are immutable once initialized
Array is not a data structure
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you instantiate an array in Java?
int arr[] = new int(3);
int arr[];
int arr[] = new int[3];
int arr() = new int(3);
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the given piece of code?
4
5
ArrayIndexOutOfBoundsException
InavlidInputException
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
40 questions
Desktop Publishing Quiz 2
Quiz
•
University
35 questions
Midterm Exam
Quiz
•
University
38 questions
Ôn Tập Tin Học 10
Quiz
•
10th Grade - University
43 questions
KELAS XI TKJ_DKV_SOAL AAS PKK _SEMESTER GANJIL 2024-2025
Quiz
•
University
40 questions
PAK
Quiz
•
University
35 questions
PHP Quiz
Quiz
•
University
35 questions
ITD11303 DATABASE
Quiz
•
University
40 questions
Unit 12, 13_ Haifaa_2020
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
