MCQ TEST FOR CLASS X PART II

4
Created on By Baibhav Computer

MCQ TEST FOR CLASS X PART II

1 / 20

The number of bytes occupied by a character array of four rows and three columns are:

2 / 20

Which of the following data type cannot be used with switch case construct?

3 / 20

The correct statement to create an object named mango of class fruit:

4 / 20

What is the output of the Java code given below?
String color[] = {“Blue”, “Red”, “Violet”};
System.out.println(color[2].length());

5 / 20

Which of the following mathematical methods returns only an integer?

6 / 20

A mechanism where one class acquires the properties of another class:

7 / 20

Identify the type of operator &&:

8 / 20

The Scanner class method used to accept words with space:

9 / 20

What value will Math.sqrt(Math.ceil(15.3)) return?

10 / 20

The absence of which statement leads to fall through situation in switch case statement?

11 / 20

State the type of loop in the given program segment:
for(int i = 5; i != 0; i -= 2)
System.out.println(i);

12 / 20

Predict the output of the following code snippet: String P = “20”, Q = “22”;

int a = Integer.parseInt(P);
int b = Integer.valueOf(Q);
System.out.println(a + ” ” + b);

13 / 20

int x = (int)32.8; is an example of ________ typecasting.

14 / 20

The code obtained after compilation is known as:

15 / 20

Missing a semicolon in a statement is what type of error?

16 / 20

When an object of a wrapper class is converted to its corresponding primitive data type, it is called as ________.

17 / 20

The number of bits occupied by the value ‘a’ are:

18 / 20

“Java compiled code (bytecode) can run on all operating systems.”

– Name the feature.

19 / 20

Identify the operator that gets the highest precedence while evaluating the given expression:

a + b % c * d – e

20 / 20

Which of the following is a valid Java keyword?

Your score is

The average score is 21%

0%

Previous Post
Newer Post