Which method is used to compare two strings in a case-insensitive manner in Java?
Anonymous Quiz
30%
a) equalsIgnoreCase()
23%
b) equals()
23%
c) compareToIgnoreCase()
24%
d) compareTo()
👍6
What is the purpose of the new keyword in Java?
Anonymous Quiz
69%
a) To allocate memory for a new object
14%
b) To declare a new variable
12%
c) To create a new class
5%
d) To invoke a static method
👍7👌4
Which collection class in Java is synchronized?
Anonymous Quiz
44%
a) ArrayList
23%
b) LinkedList
20%
c) HashMap
13%
d) Vector
👍13🕊3
What does the super keyword represent in Java?
Anonymous Quiz
12%
a) It refers to the subclass.
29%
b) It refers to the current instance of the class.
55%
c) It refers to the superclass.
4%
d) It refers to the static context.
☃16👍3🔥1
How do you read user input from the console in Java?
Anonymous Quiz
22%
a) Using System.in.read()
48%
b) Using Scanner
22%
c) Using Console.readline()
8%
d) Using BufferedReader
👍10🤷♂3🥴2
Which method is used to find the length of a string in Java?
Anonymous Quiz
58%
a) length()
9%
b) size()
6%
c) count()
28%
d) strlen()
👍7🤷♂4
Which protocol is used for secure communication over a computer network?
Anonymous Quiz
8%
a) FTP
28%
b) HTTP
57%
c) HTTPS
7%
d) SMTP
👍4❤🔥3❤3✍1
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