Coding Mcq’s
10.4K subscribers
3 photos
1 file
6 links
Do join for coding McQ’s‼️

All types of Programming Questions, Answer & Mcq's 🧠👨‍💻
Download Telegram
What is the primary purpose of the Domain Name System (DNS) in computer networks?
Anonymous Quiz
20%
A) To encrypt data transmission
61%
B) To allocate IP addresses
16%
C) To manage network security
2%
D) To regulate internet speed
👍6
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
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
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
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👍31
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
👍9🥰2😢1
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
👍42
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❤‍🔥21