Java Fundamentals_Array

Java Fundamentals_Array

Professional Development

20 Qs

quiz-placeholder

Similar activities

Тесть по PHP #1

Тесть по PHP #1

Professional Development

18 Qs

SYP Chapter 1 & 2

SYP Chapter 1 & 2

Professional Development

20 Qs

day5

day5

Professional Development

21 Qs

Python - CDT

Python - CDT

Professional Development

20 Qs

PythonDS

PythonDS

Professional Development

21 Qs

CPR_Quiz_Arrays and strings

CPR_Quiz_Arrays and strings

Professional Development

20 Qs

core java 2

core java 2

Professional Development

25 Qs

Day 4 - Advanced Topics

Day 4 - Advanced Topics

Professional Development

20 Qs

Java Fundamentals_Array

Java Fundamentals_Array

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

kowshika arumugham

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a Java features?

Dynamic

Architecture Neutral

Object-oriented

Use of pointers

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the extension of java code files?

.class

.txt

.java

.js

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict the Output

10

Compilation Error

Run time Error

11

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid declaration of an object of class Box?

Box obj = new Box;

Box obj = new Box();

obj = new Box();

new Box obj

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the type of variable ‘b’ and ‘d’ in the following Java snippet?

int a[], b;

int []c, d;

Both are int

Both are array

'b' is int and 'd' is array

'b' is array and 'd' is int

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is an incorrect array declaration?

int arr[] = new int[5];

int [] arr = new int[5];

int arr[] = int [5] new;

int[] arr={1,2,3,4,5};

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you determine the number of elements in an array?

int buses[] = new int[5];

buses.length

buses.length()

buses.size

buses.size()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?