Online Assessment Platform

ALL THE BEST!!!

ALL THE BEST!!!


JAVA-EFC-CHENNAI BATCH1-07TH NOVEMBER 2024

1 / 50

Which of the following statements is true?

2 / 50

Which of the following is not a Java features?

3 / 50

Which of the following is a correct example of method overloading?

4 / 50

Which of these is a non-access modifier?

5 / 50

In Java, a class can contain:

6 / 50

Which of the following is a primitive data type in Java?

7 / 50

Which of the following methods is used to extract the length of a stringin Java?

8 / 50

What is boolean in Java?

9 / 50

An abstract class in Java:

10 / 50

Which method in Java is used to check for NaN values?

11 / 50

Which keyword is used to implement an interface in Java?

12 / 50

Which of the following is a marker interface?

13 / 50

Which of the following is a checked exception in Java?

14 / 50

In which memory a String is stored, when we create a string using new operator?

15 / 50

Which of the following statements is used to exit a loop prematurely?

16 / 50

Polymorphism allows us to:

17 / 50

What is the correct way to manually request garbage collection in Java?

18 / 50

Which of the following is a correct way to declare an abstract method in Java?

19 / 50

The result of dividing by 0 in Java is _____________

20 / 50

Which of these is not a valid Boolean method in Java?

21 / 50

Which block is used to specify a code that must be executed regardless of an exception being handled or not?

22 / 50

Which of the following is a reserved keyword in Java?

23 / 50

What is the use of the intern() method?

24 / 50

_____ is used to find and fix bugs in the Java programs.

25 / 50

Which of the following is the correct way to exit from all nested loops?

26 / 50

Which of the following is the correct syntax for an if-else statement in Java?

27 / 50

Which command is used to compile a Java program?

28 / 50

Which of the following option leads to the portability and security of Java?

29 / 50

Which of the following correctly defines a class in Java?

30 / 50

After compilation, Java code is converted into:

31 / 50

Which OOP principle helps to reduce redundancy in code by reusing existing classes?

32 / 50

Which Java keyword is used to access the features of a package?

33 / 50

Which operator is used to check multiple conditions in a single if statement?

34 / 50

Which of the following is NOT an application of OOP?

35 / 50

Which of the following is true about the try-catch block?

36 / 50

Which of the following is NOT a characteristic of an object?

37 / 50

What is a set in Java?

38 / 50

What are regexes in Java?

39 / 50

The trim() method in Java used to ______________

40 / 50

Which of the following is true about interfaces in Java?

41 / 50

Which keyword is used for accessing the features of a package?

42 / 50

What is a map in Java?

43 / 50

Which of the following is used to create an object in Java?

44 / 50

Which loop in Java checks the condition after executing the loop's body?

45 / 50

Which keyword is used to handle exceptions in Java?

46 / 50

What does the java command do?

47 / 50

When a finally block executed in Java?

48 / 50

Which OOP principle is used to hide the internal details of an object and only expose what is necessary?

49 / 50

Which statement is used to specify a block of code that will be executed regardless of the conditions in a try-catch block?

50 / 50

Where are Java source files stored by convention?