Skip to main content

Modern Programming Languages MCQs with Answers

Practice important Modern Programming Languages MCQs with answers and explanations.

Multiple Choice Questions

Q241: What does Ada's type 'LetterGrades' represent?
  • A: A sequence of ordered grades
  • B: A set of modular arithmetic types
  • C: A range of integer values
  • D: A floating-point type for grades
View Answer
A

Q242: What is the valid range of values for the Ada type 'Sin_Values' defined as type Sin_Values is digits 10 range -1.0..1.0;?
  • A: -1.0 to 1.0
  • B: 0 to 100
  • C: -100 to 100
  • D: 0.0 to 1.0
View Answer
A

Q243: Which Ada feature helps in defining reusable components?
  • A: Packages and generic types
  • B: Modular types
  • C: Floating-point types
  • D: Fixed-point types
View Answer
A

Q244: What does the operator 'Abs' in Ada return?
  • A: The absolute value
  • B: The sum of values
  • C: The difference between values
  • D: The square of the value
View Answer
A

Q245: In Ada, which type can represent a collection of colors like Red, Orange, and Blue?
  • A: Enumeration Type
  • B: Integer Type
  • C: Real Type
  • D: Fixed Point Type
View Answer
A

Q246: In Ada, the operator '/=' represents which operation?
  • A: Inequality
  • B: Equality
  • C: Assignment
  • D: Exponentiation
View Answer
A

Q247: Which Ada operator is used for string concatenation?
  • A: &
  • B: +
  • C: *
  • D: /
View Answer
A

Q248: Which of the following is true about Ada’s exception handling?
  • A: It automatically catches errors like overflow and invalid array indexes.
  • B: It only handles compile-time errors.
  • C: It does not support any form of error handling.
  • D: It only handles logical errors.
View Answer
A

Q249: In Ada, what type is used to represent signed integers?
  • A: Integer Types
  • B: Modular Types
  • C: Floating-Point Types
  • D: Enumeration Types
View Answer
A

Q250: Ada provides ________ for controlling data representation in systems programming.
  • A: Data types
  • B: Error handling
  • C: Exception handling
  • D: Tasks
View Answer
A

Test Your Knowledge

Take a timed quiz on Modern Programming Languages

🚀 Start Quiz Now