
Unit_4_Object Oriented Programming with Java

Quiz
•
Computers
•
University
•
Medium
Anil Chinchawade
Used 5+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
36 questions
FPOO

Quiz
•
University
34 questions
ALGO - Prelim Reviewer

Quiz
•
University
40 questions
Quiz pertemuan 12

Quiz
•
University
36 questions
AP CS A unit 1

Quiz
•
11th Grade - University
40 questions
Java Quiz 1

Quiz
•
University
35 questions
end of year Quiz

Quiz
•
12th Grade - University
40 questions
Soal Pemograman Dasar

Quiz
•
12th Grade - University
35 questions
IT-OOPRGO21 PRELIM

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University