
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
40 questions
Quizz PTS Kelas XI Struktur Data Array

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

Quiz
•
University
39 questions
MidExam- Data Structures and Algorithms

Quiz
•
University
40 questions
Java Programming

Quiz
•
University
39 questions
Java Midterm

Quiz
•
University
34 questions
Java Quiz

Quiz
•
11th Grade - University
33 questions
Pre_Assessment front end + React Sankeshwar

Quiz
•
University
36 questions
FPOO

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade