Which layer of the OSI model is responsible for end-to-end communication, flow control, and error correction?
Anonymous Quiz
31%
A) Data Link Layer
30%
B) Network Layer
30%
C) Transport Layer
9%
D) Session Layer
👍5
What is the function of a router in a computer network?
Anonymous Quiz
41%
A) Forwarding data packets between devices within the same network
18%
B) Converting digital signals to analog signals for transmission
19%
C) Filtering and forwarding packets between different networks
22%
D) Providing physical connectivity between devices in a local area network
👍15🔥1🕊1
Which protocol is commonly used for secure communication over the Internet, providing encryption and authentication?
Anonymous Quiz
55%
A) Hypertext Transfer Protocol (HTTP)
8%
B) File Transfer Protocol (FTP)
9%
C) Simple Mail Transfer Protocol (SMTP)
29%
D) Secure Socket Layer/Transport Layer Security (SSL/TLS)
👍6
What does the SQL acronym "DDL" stand for?
Anonymous Quiz
85%
a) Data Definition Language
5%
b) Data Deletion Language
4%
c) Data Distortion Language
6%
d) Data Development Language
🕊10👍7
Which keyword is used to declare a constant in Java?
Anonymous Quiz
19%
a) constant
26%
b) final
19%
c) static
37%
d) const
👍5🔥3❤🔥2
What is the purpose of the break statement in Java?
Anonymous Quiz
21%
a) To terminate the program execution.
56%
b) To exit a loop or switch statement.
14%
c) To skip the next iteration of a loop.
10%
d) To define a stopping condition for recursion.
👍8
Which of the following access modifiers in Java is the most restrictive?
Anonymous Quiz
13%
a) public
27%
b) protected
18%
c) default (package-private)
42%
d) private
❤🔥4👍3☃1
Which of the following is true about the StringBuilder class in Java?
Anonymous Quiz
30%
a) StringBuilder is immutable.
20%
b) Methods in StringBuilder are synchronized.
28%
c) StringBuilder is part of the java.util package.
22%
d) StringBuilder is generally faster than StringBuffer.
👍2❤🔥1
What is the purpose of the super keyword in Java?
Anonymous Quiz
23%
a) To refer to the superclass of the current object.
15%
b) To invoke the superclass constructor.
8%
c) To access the superclass's static methods.
53%
d) All of the above.
👍3✍1🤗1
What is the correct way to declare a variable that will hold a floating-point number in Java?
Anonymous Quiz
34%
a) float x;
10%
b) double x;
46%
c) float x = 5.0;
10%
d) double x = 5.0;
✍15👍5🔥4🫡3❤🔥1👨💻1
Which of the following statements is true about the compareTo method in Java?
Anonymous Quiz
29%
a) It is used to compare the memory addresses of two objects.
16%
b) It is a method of the Object class.
45%
c) It is used to compare the values of two objects.
9%
d) It is only applicable to primitive data types.
👍10❤🔥2
What is the correct way to declare and initialize an array in Java?
Anonymous Quiz
11%
a) array = [1, 2, 3];
34%
b) int array[] = new int[]{1, 2, 3};
34%
c) int array[3] = {1, 2, 3};
22%
d) int[] array = {1, 2, 3};
👍9🥰2😢1
What is the purpose of the finally block in a Java try-catch-finally statement?
Anonymous Quiz
24%
a) To handle exceptions.
57%
b) To execute code regardless of whether an exception is thrown or not.
14%
c) To specify code that will throw an exception.
5%
d) To indicate that the code is unreachable.
👍7🕊2
Which of the following statements is true about the ArrayList class in Java?
Anonymous Quiz
20%
a) ArrayList is a synchronized collection.
33%
b) Elements in an ArrayList must be of the same data type.
38%
c) ArrayList automatically resizes itself when elements are added or removed.
9%
d) ArrayList does not allow duplicate elements.
👍6🕊2
What is the default value of a boolean variable in Java?
Anonymous Quiz
31%
a) true
33%
b) false
24%
c) null
12%
d) 0
👍12
Which keyword is used to define an interface in Java?
Anonymous Quiz
55%
a) interface
13%
b) class
23%
c) implements
9%
d) extend
👍4✍2
What is the purpose of the static keyword in Java?
Anonymous Quiz
26%
a) It indicates that a variable is constant.
12%
b) It is used to define a class within another class.
54%
c) It is used to declare a method that can be called without creating an instance of the class.
8%
d) It is used to make a class immutable.
👍7❤🔥1
Which method is used to convert a string to an integer in Java?
Anonymous Quiz
55%
a) parseInt()
22%
b) parseInteger()
16%
c) toInteger()
7%
d) valueOf()
👍5❤🔥2✍1
What is the role of the this keyword in Java?
Anonymous Quiz
60%
a) It refers to the current instance of the class.
14%
b) It is used to create a new instance of a class.
16%
c) It is used to call a method of the superclass.
10%
d) It refers to the parent class of the current class.
👍8
Which of the following is used to implement multiple inheritance in Java?
Anonymous Quiz
58%
a) Interfaces
30%
b) Abstract classes
5%
c) Enums
7%
d) Packages
👍7🫡1