What is the purpose of the Domain Name System (DNS) in computer networks?
Anonymous Quiz
11%
a) To encrypt data transmission
31%
b) To provide dynamic IP addresses
50%
c) To translate domain names into IP addresses
9%
d) To establish secure connections
👍5🔥3
Which of the following is a connection-oriented protocol used for reliable data transfer in networking?
Anonymous Quiz
16%
a) UDP
10%
b) ICMP
60%
c) TCP
14%
d) IP
👍4🔥3😘3✍2
What is the purpose of the subnet mask in networking?
Anonymous Quiz
20%
a) To uniquely identify a device on a network
16%
b) To determine the default gateway
51%
c) To divide an IP address into network and host portions
13%
d) To encrypt data transmission between devices
👍10✍3🤓3
Which of the following is a protocol used for sending and receiving emails?
Anonymous Quiz
15%
a) FTP
53%
b) SMTP
29%
c) HTTP
3%
d) DHCP
👍9❤🔥4✍2
What is the purpose of the #include directive in C?
Anonymous Quiz
72%
a) To insert the contents of one file into another file during compilation.
13%
b) To declare variables.
3%
c) To create a loop.
12%
d) To define a macro.
👍9🤓3🔥2😈2👨💻1
Which of the following data types in C has the largest storage capacity?
Anonymous Quiz
10%
a) int
8%
b) float
74%
c) double
8%
d) char
✍6👍6🕊5
In C, what is the purpose of the return 0; statement in the main function?
Anonymous Quiz
28%
a) It indicates that the program ended successfully.
11%
b) It causes the program to exit immediately.
14%
c) It returns control to the operating system.
47%
d) Both a and c.
👍8🕊2✍1🤗1
What does the && operator do in C?
Anonymous Quiz
8%
a) It performs a logical OR.
37%
b) It performs a bitwise AND.
4%
c) It performs a bitwise OR.
51%
d) It performs a logical AND.
👍10🤷♂3👨💻3❤2
What is the purpose of the finalize() method in Java?
Anonymous Quiz
18%
A) It is used to start the execution of a thread.
42%
B) It is called before an object is garbage collected.
23%
C) It is used to initialize an object after it is created.
16%
D) It provides runtime polymorphism.
👍3❤🔥2🤷♂2
Which of the following is not a valid Java identifier?
Anonymous Quiz
21%
A) _helloWorld
12%
B) java2share
36%
C) 3DModel
31%
D) $currency
🕊7✍4❤🔥3👍3❤1
In Java, which of the following is true about a static method?
Anonymous Quiz
20%
A) It belongs to a class, not to any specific instance of the class.
20%
B) It can only access static data in the class.
10%
C) It can directly call other static methods in the class.
50%
D) All of the above.
🤷♂2😐2
What is the default value of a boolean variable in Java?
Anonymous Quiz
29%
A) true
37%
B) false
22%
C) null
11%
D) 0
❤🔥9🕊6🤷♂4👍4🔥3❤2
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