What is the size of the char data type in Java?
Anonymous Quiz
55%
A) 8 bits
27%
B) 16 bits
13%
C) 32 bits
5%
D) 64 bits
😱9👍4👨💻4❤2🔥2
Which of the following is used to handle exceptions in Java?
Anonymous Quiz
82%
A) try-catch blocks
9%
B) do-while loops
4%
C) for loops
5%
D) switch-case statements
🫡5🤷♂3👍3❤1
What does the static keyword in Java indicate?
Anonymous Quiz
24%
A) The member belongs to a specific instance of a class.
33%
B) The member belongs to the class, rather than any instance of the class.
28%
C) The member is a constant and cannot be changed.
15%
D) The member is protected from access by code defined outside its class.
🤷♂9👍5❤3🕊3✍1
Which of the following correctly describes an abstract class in Java?
Anonymous Quiz
14%
A) An abstract class can be instantiated just like any other class.
36%
B) An abstract class must contain at least one abstract method.
18%
C) An abstract class cannot contain concrete methods (methods with implementations).
32%
D) An abstract class is a class that cannot be instantiated and can contain abstract methods.
✍4❤4
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