Select the valid statement to declare and initialize an array.

PEC-OOPS

Quiz
•
see tha
•
Education
•
11th Grade
•
5 plays
•
Hard
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
12 questions
Python Definitions

Quiz
•
10th - 12th Grade
11 questions
Android & Android Studio 1

Quiz
•
7th - 12th Grade
15 questions
Travel Documents

Quiz
•
9th - 12th Grade
16 questions
Manipulasi Data String

Quiz
•
9th - 12th Grade
15 questions
C# dolgozat

Quiz
•
11th Grade - University
20 questions
SUMATIF 1

Quiz
•
11th Grade
20 questions
Xâu_lần 2

Quiz
•
11th Grade
12 questions
Nirmala School quiz

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
17 questions
CAASPP Math Practice 3rd

Quiz
•
3rd Grade
15 questions
Grade 3 Simulation Assessment 1

Quiz
•
3rd Grade
20 questions
math review

Quiz
•
4th Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2425sy

Quiz
•
5th Grade
16 questions
Grade 3 Simulation Assessment 2

Quiz
•
3rd Grade
21 questions
6th Grade Math CAASPP Practice

Quiz
•
6th Grade
13 questions
Cinco de mayo

Interactive video
•
6th - 8th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade