Java 60 MCQS Question paper Online Test Series 5251 - MS Word Class

Java 60 MCQS Question paper Online Test Series 5251

0%
13
Java 60 MCQS Question paper Online Test Series 5251 - MS Word Class

Java 60 MCQS Question paper Online Test Series 5251

Java MCQ question Paper Basic To Advanced

1 / 60

Correct declaration:

2 / 60

Math.abs(-8) returns:

3 / 60

Syntax of if statement:

4 / 60

Which of these is correct syntax?

5 / 60

Java statements end with a ______.

6 / 60

The modulus operator is:

7 / 60

Which declares an integer variable correctly?

8 / 60

Converting one data type into another is called:

9 / 60

To compare two strings:

10 / 60

Static variables are shared by ______.

11 / 60

Comments are used for:

12 / 60

Logical AND is:

13 / 60

Which package is required for Scanner?

14 / 60

default case in switch is:

15 / 60

!(5 == 5) results in:

16 / 60

Java was developed by ______.

17 / 60

Java is ______ typed.

18 / 60

Single-line comments use:

19 / 60

Default value of an int variable is:

20 / 60

Size of double type is:

21 / 60

switch works with:

22 / 60

Which method prints a line and moves to the next line?

23 / 60

Random number function:

24 / 60

Syntax of for loop:

25 / 60

What executes when if condition is false?

26 / 60

Which performs multiplication?

27 / 60

Strings are ______ in Java.

28 / 60

Which requires explicit cast?

29 / 60

Type of Margin in notepad ?

30 / 60

To find length of a String:

31 / 60

Boolean can store:

32 / 60

Which loop executes fixed number of times?

33 / 60

Boolean type holds:

34 / 60

What does System.out.print() do?

35 / 60

Which is the assignment operator?

36 / 60

The entry point of any Java program is the ______ method.

37 / 60

The extension of Java source files is ______.

38 / 60

Which is widening conversion?

39 / 60

Output of System.out.println(5+5+”Java”);

40 / 60

for loop repeats until:

41 / 60

Infinite loop example:

42 / 60

Which is not a primitive type?

43 / 60

To get array length:

44 / 60

Increment operator is:

45 / 60

String class belongs to package:

46 / 60

Nested if means:

47 / 60

Variables store ______.

48 / 60

Default value of boolean is:

49 / 60

Who is known as the father of Java?

50 / 60

Every case label must end with:

51 / 60

Java is a ______ language.

52 / 60

double x = 9.8; int y = (int)x;

53 / 60

Math.pow(2,4) equals:

54 / 60

Identifiers in Java are ______.

55 / 60

Array index starts from:

56 / 60

(10 > 5) && (2 < 4) returns:

57 / 60

System.out.println(“A”+”B”); prints:

58 / 60

Math.sqrt(25) returns:

59 / 60

Multi-line comments start with:

60 / 60

Which keyword defines a class?

Your score is

0%

Scroll to Top