Programming MCQs Feed

📊 C Programming
Q. What is the work of break keyword?
  • (A) halt execution of program
  • (B) restart execution of program
  • (C) exit from loop or switch statement
  • (D) none of the above
💬 Discuss
✅ Correct Answer: (C) exit from loop or switch statement
📊 C#
Q. In a database, a parent-child relationship is also known as a
  • (A) Many-to-one relationship.
  • (B) Many-to-many relationship.
  • (C) One-to-many relationship.
  • (D) One-to-one relationship.
💬 Discuss
✅ Correct Answer: (C) One-to-many relationship.
📊 CSS
Q. Which of the following is not an appropriate value for border-collapse?
  • (A) all
  • (B) collapse
  • (C) inherit
  • (D) separate
💬 Discuss
✅ Correct Answer: (A) all
📊 HTML
Q. What is DOM in HTML?
  • (A) Language dependent application programming
  • (B) Hierarchy of objects in ASP.NET
  • (C) Application programming interface
  • (D) Convention for representing and interacting with objects in html documents
💬 Discuss
✅ Correct Answer: (D) Convention for representing and interacting with objects in html documents
📊 Linux
Q. An example of the most popular opensource software is ______ .
  • (A) Mozilla Firefox browser, GIMP image editor,QCAD drafting tool, Blender 3D modeling software
  • (B) Linux operating system
  • (C) Open office, Libre Office, KOffice, gnumeric,AbiWord, Scribus
  • (D) all of them
💬 Discuss
✅ Correct Answer: (D) all of them
📊 Linux
Q. Which of the following subdirectory(ies) contains the system
configuration scripts.
  • (A) /dev
  • (B) /bin
  • (C) /etc
  • (D) /home
💬 Discuss
✅ Correct Answer: (C) /etc
📊 JAVA
Q. Identify the keyword among the following that makes a variable belong to a class,rather than being defined for each instance of the class.
  • (A) Final
  • (B) Static
  • (C) Volatile
  • (D) Abstract
💬 Discuss
✅ Correct Answer: (B) Static
📊 HTML
Q. What is the URL encoding of VT?
  • (A) %09
  • (B) %02
  • (C) %0B
  • (D) %06
💬 Discuss
✅ Correct Answer: (C) %0B
📊 JAVA
Q. What is the size of a SHORT integer in Java?
  • (A) 1 byte
  • (B) 2 bytes
  • (C) 4 bytes
  • (D) 8 bytes
💬 Discuss
✅ Correct Answer: (B) 2 bytes
📊 JAVA
Q. What is the output of the below Java program?
Code:
int persons = 45;
int random = 45;
switch(random)
{
  case persons: System.out.print("CRICKET ");
  default: System.out.println("RUGBY");
}
  • (A) CRICKET
  • (B) CRICKET RUGBY
  • (C) RUGBY
  • (D) Compiler error
💬 Discuss
✅ Correct Answer: (D) Compiler error