PEC-OOPS

PEC-OOPS

11th Grade

16 Qs

Similar activities

Python Definitions

Python Definitions

10th - 12th Grade

12 Qs

Android & Android Studio 1

Android & Android Studio 1

7th - 12th Grade

11 Qs

Travel Documents

Travel Documents

9th - 12th Grade

15 Qs

Manipulasi Data String

Manipulasi Data String

9th - 12th Grade

16 Qs

C# dolgozat

C# dolgozat

11th Grade - University

15 Qs

SUMATIF 1

SUMATIF 1

11th Grade

20 Qs

Xâu_lần 2

Xâu_lần 2

11th Grade

20 Qs

Nirmala School quiz

Nirmala School quiz

9th - 12th Grade

12 Qs

PEC-OOPS

PEC-OOPS

Assessment

Quiz

Created by

see tha

Education

11th Grade

5 plays

Hard

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the valid statement to declare and initialize an array.

int[] A = {}

int[] A = {1, 2, 3}

int[] A = (1, 2, 3)

int[][] A = {1,2,3}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the valid statement to declare and initialize an array.

int[][] A = {1,2,3}

int[] A = {}

int[] A = {1, 2, 3}

int[] A = (1, 2, 3)

int[][] A = {1,2,3}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When is the object created with new keyword?

At Run time

At compile time

Depends on the Code

None

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the corrected definition of a package.

A package is a collection of editing tools

A package is a collection of classes

A package is a collection of classes and interfaces

A package is a collection of interfaces

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A blueprint for a software object is called a ___.

object

program

API

class

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many Bytes are reserved for "Char" data type in JAVA?

1 Byte

2 Bytes

2 Bits

14 Bits

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify the keyword among the following that makes a variable belong to a class,rather than being defined for each instance of the class.

final

static

volatile

abstract

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following explains Polymorphism?

int func(int, int);

float func1(float, float);

int func(float);

int func(int, int, char);

int func();

int new_func();

int func(int);

int func(int);

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Java is a platform independent programming language because

It is written almost similar to English language

Java compiler translates the source code directly to the machine level language.

It follows the concept of “write once and compile everywhere”.

It compiles to an intermediate code targeting a virtual machine, which can be interpreted by an interpreter for a given OS.

10.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Identify what can directly access and change the value of the variable res.

Package com.mypackage;

Public class Solution

{

Private int res = 100;

}

Any class

Only Solution class

Any class that extends Solution

None

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?