MCQ TEST FOR CLASS X PART I

1
Created on By Baibhav Computer

MCQ TEST FOR CLASS X PART I

1 / 20

Character class methods are found in the package called:

2 / 20

System.out.println(‘Z’ + 32); will display:

3 / 20

double x[] = {2.5, 4.5, 5.5, 6.4}; occupies ____ bytes.

4 / 20

The output of 42 / 6 % 2 is:

5 / 20

Select the infinite loop:

6 / 20

The output of Math.max(-7, Math.min(-5, -4)) is:

7 / 20

Which of the following is true for the given object creation statement?
Game cricket = new Game();

8 / 20

 

Assertion (A): In switch case, break statement avoids fall through.
Reason (R): break statement helps to execute only one case at a time.

9 / 20

The index (subscript) of the last element of an array ar[] is:

10 / 20

Assertion (A): A clock is a real-life example of nested loops.
Reason (R): The hour hand moves through 12 positions, while the minute hand moves through 60 positions within each hour.

11 / 20

Which of the following converts “25” to 25.0?

12 / 20

Consider the program segment:
int p = 0;
for(p = 4; p > 0; p -= 2);
System.out.print(p);
System.out.println(p);
The above statement will display:

13 / 20

int x = 98; char ch = (char)x; What is the value in ch?

14 / 20

The output of the statement “CONCENTRATION”.indexOf(‘T’) is:

15 / 20

The output of the statement “talent”.compareTo(“genius”) is:

16 / 20

Which of the following is an escape sequence character in Java?

17 / 20

if(a > b && b > c) then largest number is:

18 / 20

What is the output of Math.ceil(5.4) + Math.ceil(4.5)?

19 / 20

What is the method to check whether a character is a letter or digit?

20 / 20

The extension of a Java source code file is:

Your score is

The average score is 40%

0%

Previous Post
Newer Post