Online Assessment Platform

ALL THE BEST!!!

ALL THE BEST!!!


JAVA-EFC-CHENNAI BATCH2-07TH NOVEMBER 2024

1 / 50

Which of the following is NOT a principle of Object-Oriented Programming?

2 / 50

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

3 / 50

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

4 / 50

Finally block is attached to?

5 / 50

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

6 / 50

Which syntax is valid to create a vector in java?

7 / 50

Which of the following is a valid data structure in java?

8 / 50

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

9 / 50

Which command is used to compile a Java program?

10 / 50

What is the main difference between POP and OOP?

11 / 50

Which of the following is a valid for loop syntax in Java?

12 / 50

Static variables in java are declared as __________________

13 / 50

Which of the following statements is true about nested loops?

14 / 50

BigInteger Class is used to ____________

15 / 50

What will be the output of the following Java code?

public class Main {
public static void main(String[] args) {
System.out.println(Math.copySign(100.6, -200.6));
}

16 / 50

Which of the following is NOT an application of OOP?

17 / 50

What is stringBuffer in Java?

18 / 50

The correct syntax to import the math library in Java is ______________

19 / 50

Which method deletes a file in Java?

20 / 50

Array in Java is ______________

21 / 50

What will be the output of the following code?

int i = 0;
while (i < 3) {
System.out.println(i);
i++;
}

22 / 50

Which is/are valid method(s) of math library in Java?

23 / 50

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

24 / 50

After compilation, Java code is converted into:

25 / 50

Object in java are __________

26 / 50

Which method in java is used to read lines fromfile?

27 / 50

What will be the output of the following Java code?

public class Main {
public static void main(String[] args) {
String str = "Hello" ;
str = "Bye";

System.out.println(str);
}
}

28 / 50

What is garbage collection in Java?

29 / 50

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

30 / 50

What does the java command do?

31 / 50

Can the Java program accept input from the command line?

32 / 50

The break statement in Java is used to ______________

33 / 50

Where are Java source files stored by convention?

34 / 50

Which of these is true for interfaces in Java?

35 / 50

Which of these is the correct method to create an array in java?

36 / 50

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

37 / 50

When a finally block executed in Java?

38 / 50

Which method in java is used to generate randomnumbers in Java?

39 / 50

Which class in Java is used to take input from the user?

40 / 50

Which method is used to convert radians to degree in Java?

41 / 50

What is type casting in Java?

42 / 50

Which of the following is the correct syntax to create a variable in
Java?

43 / 50

In Java, recursion is _____________

44 / 50

Which type of casting is lossy in Java?

45 / 50

Which of the following can be declared as final in java?

46 / 50

Which of these is a property of threads in Java?

47 / 50

Which thread is executed in the background?

48 / 50

Multithreading in java is _______________

49 / 50

What is boolean in Java?

50 / 50

Which programming paradigm does Java primarily support?