Skip to main content

Modern Programming Languages MCQs with Answers

Practice important Modern Programming Languages MCQs with answers and explanations.

Multiple Choice Questions

Q281: In Ada, which of the following is used to exit a loop?
  • A: exit
  • B: continue
  • C: break
  • D: return
View Answer
A

Q282: What is a characteristic of Ada's case statement?
  • A: Supports fall-through
  • B: Requires all values to be static
  • C: Requires dynamic values
  • D: None of the above
View Answer
B

Q283: Which of the following is NOT a loop type in Ada?
  • A: While loop
  • B: Do-while loop
  • C: For loop
  • D: Simple loop
View Answer
B

Q284: In Ada, which loop is used for potentially infinite loops?
  • A: Simple loop
  • B: While loop
  • C: For loop
  • D: Do-while loop
View Answer
A

Q285: Which of the following loops is NOT supported in Ada?
  • A: While loop
  • B: For loop
  • C: Simple loop
  • D: Do-while loop
View Answer
D

Q286: What is the range operator in Ada?
  • A: ..
  • B: :
  • C: =
  • D: ->
View Answer
A

Q287: What does the "reverse" keyword in Ada’s for loop do?
  • A: It reverses the loop’s iteration order.
  • B: It sets a limit on the loop.
  • C: It stops the loop when the condition is met.
  • D: It does nothing.
View Answer
A

Q288: Which of the following is true about Ada’s "while" loop?
  • A: It supports post-test loops like C.
  • B: The loop condition is checked after the loop body.
  • C: The loop condition is checked before the loop body.
  • D: The loop runs indefinitely.
View Answer
C

Q289: In Ada, which statement is used to terminate a loop?
  • A: terminate
  • B: exit stop
  • C: halt
  • D:
View Answer
B

Q290: What does the "when others" clause in a case statement in Ada do?
  • A: Covers all values not mentioned in other when clauses
  • B: Stops the case statement from executing
  • C: Allows values to be dynamic
  • D: None of the above
View Answer
A

Test Your Knowledge

Take a timed quiz on Modern Programming Languages

🚀 Start Quiz Now