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 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🤨31
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
👍81
Which keyword is used in Java to synchronize access to an object or method to prevent thread interference and memory consistency errors?
Anonymous Quiz
57%
A) synchronized
13%
B) volatile
25%
C) static
4%
D) transient
🏆15👍51
👍76🔥2❤‍🔥11🕊1
Which method in the String class is used to compare two strings for equality, ignoring case differences?
Anonymous Quiz
23%
A) equals()
38%
B) equalsIgnoreCase()
27%
C) compareTo()
12%
D) compareToIgnoreCase()
👍82
Which loop construct will execute the body of the loop at least once, even if the condition is false at the first iteration?
Anonymous Quiz
14%
A) for loop
17%
B) while loop
64%
C) do-while loop
5%
D) foreach loop
🍾8🕊41👍1
Which keyword is used to inherit a class in Java?
Anonymous Quiz
48%
A) extends
10%
B) super
11%
C) implements
19%
D) inherits
12%
D) extends
🤷‍♂306👍5🤔5❤‍🔥1
🥴43👍3🔥1
🤣11❤‍🔥63👍3🤨2🕊1
Which SQL statement is used to extract data from a database?
Anonymous Quiz
12%
A) GET
61%
B) SELECT
26%
C) EXTRACT
1%
D) OPEN
7👍4🤣4🕊2🔥1
Which SQL statement is used to update data in a database?
Anonymous Quiz
14%
A) MODIFY
4%
B) CHANGE
70%
C) UPDATE
12%
D) ALTER
75👍5
Which SQL keyword is used to sort the result-set?
Anonymous Quiz
27%
A) SORT
55%
B) ORDER BY
14%
C) GROUP BY
5%
D) ARRANGE
63🤗3👍2
Which SQL statement is used to extract data from a database?
Anonymous Quiz
4%
A) OPEN
27%
B) EXTRACT
62%
C) SELECT
7%
D) GET
12👍3🔥21
Which SQL keyword is used to retrieve only unique values?
Anonymous Quiz
47%
A) DISTINCT
46%
B) UNIQUE
5%
C) DIFFERENT
2%
D) SINGLE
👍6🕊2