Unit_4_Object Oriented Programming with Java

Unit_4_Object Oriented Programming with Java

University

38 Qs

quiz-placeholder

Similar activities

Eng-103 Vocab1

Eng-103 Vocab1

University

40 Qs

Midterm Exam - Discrete Math

Midterm Exam - Discrete Math

University

35 Qs

Introduction to Computer

Introduction to Computer

University

40 Qs

ASSESSMENT 2: OVERVIEW OF ICT & REVIEW ON COMPUTER FUNDAMENTALS

ASSESSMENT 2: OVERVIEW OF ICT & REVIEW ON COMPUTER FUNDAMENTALS

University

40 Qs

Test Algoritma

Test Algoritma

University

40 Qs

TIK kelas 7, Penilaian Tengah semester

TIK kelas 7, Penilaian Tengah semester

7th Grade - University

40 Qs

C++ Internal Assessment

C++ Internal Assessment

University

40 Qs

Decision and Case Control Statements in C

Decision and Case Control Statements in C

University

35 Qs

Unit_4_Object Oriented Programming with Java

Unit_4_Object Oriented Programming with Java

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Anil Chinchawade

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers