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 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
Which collection class in Java is synchronized?
Anonymous Quiz
44%
a) ArrayList
23%
b) LinkedList
20%
c) HashMap
13%
d) Vector
👍13🕊3
How do you read user input from the console in Java?
Anonymous Quiz
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❤‍🔥331