Skip to main content

Modern Programming Languages MCQs with Answers

Practice important Modern Programming Languages MCQs with answers and explanations.

Multiple Choice Questions

Q451: Fill in the blank: The _____ in the Zebra puzzle owns the dog.
  • A: Swede
  • B: Dane
  • C: Norwegian
  • D: German
View Answer
A

Q452: Fill in the blank: In Prolog, the function next_to(L1, L2, S) checks if two items are _____.
  • A: Adjacent
  • B: Duplicates
  • C: Identical
  • D: Sorted
View Answer
A

Q453: What drink is consumed in the middle house in the Zebra puzzle?
  • A: Coffee
  • B: Soda
  • C: Milk
  • D: Tea
View Answer
C

Q454: Which of the following is a valid definition for the union predicate in Prolog?
  • A: union([], X, X).
  • B: union(X, [], []).
  • C: union([], X, []).
  • D: union([], [], X).
View Answer
A

Q455: What color is the house to the left of the white house in the Zebra puzzle?
  • A: Blue
  • B: Green
  • C: Red
  • D: Yellow
View Answer
B

Q456: Who lives in the first house in the Zebra puzzle?
  • A: English man
  • B: Swede
  • C: Norwegian
  • D: Dane
View Answer
C

Q457: Which Prolog predicate checks for the intersection of two lists?
  • A: subset
  • B: union
  • C: intersection
  • D: member
View Answer
C

Q458: What is Prolog primarily used for?
  • A: Game development
  • B: Writing operating systems
  • C: Expert systems development
  • D: Database management
View Answer
C

Q459: Which of the following drug relieves headaches?
  • A: penicilline
  • B: aspirin
  • C: anti-diarrhea
  • D: bis_cure
View Answer
B

Q460: Which symptom is relieved by "de_congest"?
  • A: diarrhea
  • B: severe_pain
  • C: nasal_congestion
  • D: headache
View Answer
C

Test Your Knowledge

Take a timed quiz on Modern Programming Languages

🚀 Start Quiz Now