What is the purpose of the super keyword in Java?
Anonymous Quiz
70%
A) It is used to access the superclass of the current class.
17%
B) It is used to create an instance of a class.
7%
C) It is used to define a constant variable.
7%
D) It is used to indicate that a method can throw an exception.
❤8❤🔥1☃1
Which feature of Java ensures that a class can extend only one class?
Anonymous Quiz
11%
A) Polymorphism
11%
B) Encapsulation
29%
C) Inheritance
49%
D) Single Inheritance
👍8🕊5🥱5🤨3❤1
Which exception is thrown when trying to access an element with an index that is out of bounds for an array, ArrayList, or String?
Anonymous Quiz
10%
A) NullPointerException
80%
B) ArrayIndexOutOfBoundsException
7%
C) ArithmeticException
3%
D) ClassCastException
👍8❤1
Which of the following is true about the Set interface in Java?
Anonymous Quiz
13%
A) Set allows duplicate elements.
21%
B) Set is an ordered collection.
28%
C) Set guarantees that elements will remain in the order they were added.
38%
D) Set does not allow duplicate elements.
👍6🔥3❤2
Which keyword is used in Java to synchronize access to an object or method to prevent thread interference and memory consistency errors?
Anonymous Quiz
57%
A) synchronized
13%
B) volatile
25%
C) static
4%
D) transient
🏆15👍5❤1
Which of the following statements about garbage collection in Java is true?
Anonymous Quiz
42%
A) The finalize() method is guaranteed to be called exactly once on an object before garbage.
21%
B) Objects that are referenced in a circular dependency are not eligible for garbage collection.
24%
C) The System.gc() method guarantees immediate garbage collection of all unused objects.
13%
D) Calling System.gc() suggests, not guarantees, JVM garbage collection.
👍8❤2
Which of the following is the correct way to declare an array in Java?
Anonymous Quiz
65%
A) int array[] = new int[5];
16%
B) int array = new int[5];
13%
C)int[] array = myarray int[5];
6%
D) array int[] = new int[5];
👍7✍6🔥2❤🔥1❤1🕊1
Which method in the String class is used to compare two strings for equality, ignoring case differences?
Anonymous Quiz
23%
A) equals()
38%
B) equalsIgnoreCase()
27%
C) compareTo()
12%
D) compareToIgnoreCase()
👍8❤2
Which loop construct will execute the body of the loop at least once, even if the condition is false at the first iteration?
Anonymous Quiz
14%
A) for loop
17%
B) while loop
64%
C) do-while loop
5%
D) foreach loop
🍾8🕊4☃1👍1
Which keyword is used to inherit a class in Java?
Anonymous Quiz
48%
A) extends
10%
B) super
11%
C) implements
19%
D) inherits
12%
D) extends
🤷♂30❤6👍5🤔5❤🔥1
What does Express.js primarily provide in the MEARN stack?
Anonymous Quiz
17%
A) A NoSQL database system
21%
B) A frontend framework
42%
C) A backend web application framework
20%
D) A JavaScript runtime environment
🥴4❤3👍3🔥1
What does SQL stand for?
Anonymous Quiz
89%
A) Structured Query Language
3%
B) Simple Query Language
5%
C) Sequential Query Language
3%
D) Standard Query Language
🤣11❤🔥6❤3👍3🤨2🕊1
Which SQL statement is used to extract data from a database?
Anonymous Quiz
12%
A) GET
61%
B) SELECT
26%
C) EXTRACT
1%
D) OPEN
❤7👍4🤣4🕊2🔥1
Which SQL statement is used to update data in a database?
Anonymous Quiz
14%
A) MODIFY
4%
B) CHANGE
70%
C) UPDATE
12%
D) ALTER
❤7☃5👍5
Which SQL keyword is used to sort the result-set?
Anonymous Quiz
27%
A) SORT
55%
B) ORDER BY
14%
C) GROUP BY
5%
D) ARRANGE
❤6✍3🤗3👍2
Which of the following is a characteristic feature of cloud computing?
Anonymous Quiz
16%
A) Limited scalability and fixed resources
13%
B) High upfront costs for hardware
68%
C) On-demand self-service and broad network access
4%
D) Sole reliance on local infrastructure
👍7
Which SQL statement is used to extract data from a database?
Anonymous Quiz
4%
A) OPEN
27%
B) EXTRACT
62%
C) SELECT
7%
D) GET
❤12👍3🔥2☃1
Which SQL keyword is used to retrieve only unique values?
Anonymous Quiz
47%
A) DISTINCT
46%
B) UNIQUE
5%
C) DIFFERENT
2%
D) SINGLE
👍6🕊2
What is the main function of the command interpreter in an operating system?
Anonymous Quiz
22%
A) To provide the interface between the API and application program
21%
B) To handle the execution of programs
53%
C) To interpret commands allowing a user to communicate with the operating system
3%
D) To manage the resources of the computer
👍2
What is the primary function of a router?
Anonymous Quiz
23%
A) To provide wireless connectivity
56%
B) To connect multiple networks and route network traffic between them
18%
C) To store data for network users
3%
D) To manage the security of a network
👍8❤4