Programming MCQs Feed

📊 CSS
Q. Which of the following selector is used to selects the element that is the nth child of its parent?
  • (A) :last-of-type
  • (B) :first-of-type
  • (C) :nth-child(n)
  • (D) ::first-line
💬 Discuss
✅ Correct Answer: (C) :nth-child(n)
📊 C#
Q. XML provides a(n)
  • (A) Difficult format for data storage.
  • (B) Numeric based code for data storage.
  • (C) Consistent format for data across applications, networks, and the Internet.
  • (D) Limited format for data storage.
💬 Discuss
✅ Correct Answer: (C) Consistent format for data across applications, networks, and the Internet.
📊 HTML
Q. Which HTML tag is used to insert an image?
  • (A) <img url=”htmllogo.jpg” />
  • (B) <img alt=”htmllogo.jpg” />
  • (C) <img src=”htmllogo.jpg” />
  • (D) <img link=”htmllogo.jpg” />
💬 Discuss
✅ Correct Answer: (C) <img src=”htmllogo.jpg” />
📊 Linux
Q. The command kshin Linux opens ______shell.
  • (A) Bourne Again SHell
  • (B) C-Shell
  • (C) Korn-shell
  • (D) none of them
💬 Discuss
✅ Correct Answer: (C) Korn-shell
📊 JAVA
Q. JRE stands for
  • (A) Java Realtime Environment
  • (B) Java Rapid Enterprise
  • (C) Java Runtime Environment
  • (D) None of the above
💬 Discuss
✅ Correct Answer: (C) Java Runtime Environment
📊 Python
Q. What is the maximum length of a Python identifier?
  • (A) 32
  • (B) 16
  • (C) 128
  • (D) No fixed length is specified.
💬 Discuss
✅ Correct Answer: (D) No fixed length is specified.
📊 HTML
Q. In URL encoding replaces non-ASCII characters with
  • (A) &
  • (B) %
  • (C) +
  • (D) *
💬 Discuss
✅ Correct Answer: (B) %
📊 JAVA
Q. What is the abbreviation of ASCII?
  • (A) American Standard Characters for Information Interchange
  • (B) Australian Standard Code for Information Interchange
  • (C) American Standard Code for Information Interchange
  • (D) None of the above
💬 Discuss
✅ Correct Answer: (C) American Standard Code for Information Interchange
📊 JAVA
Q. What is the output of the below Java program with SWITCH and Strings?
Code:
String phone = "APPLE";
switch(phone)
{
case "Apple": System.out.println("Apple");break;
case "APPLE": System.out.println("APPLE");break;
case "SAMSUNG": System.out.println("SAMSUNG");
}
  • (A) Apple
  • (B) APPLE
  • (C) SAMSUNG
  • (D) Compiler error
💬 Discuss
✅ Correct Answer: (B) APPLE
📊 CSS
Q. Which of the following property is used to set order in a table?
  • (A) dotted
  • (B) text
  • (C) padding
  • (D) border
💬 Discuss
✅ Correct Answer: (D) border