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
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
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
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