Skip to main content

Modern Programming Languages MCQs with Answers

Practice important Modern Programming Languages MCQs with answers and explanations.

Multiple Choice Questions

Q221: Ada includes a predefined library for __________.
  • A: Input/output, string manipulation, numeric functions
  • B: Networking, database management, GUI development
  • C: Memory management, threading, security
  • D: Graphics, sound, file management
View Answer
A

Q222: Which Ada feature allows multiple threads of control to communicate?
  • A: Tasks
  • B: Functions
  • C: Procedures
  • D: Exceptions
View Answer
A

Q223: What feature of Ada is designed to improve program reliability by preventing errors?
  • A: Strong typing
  • B: Dynamic typing
  • C: Operator overloading
  • D: Memory management
View Answer
A

Q224: In Ada, the operator "/=" represents:
  • A: Not equal
  • B: Equal
  • C: Assignment
  • D: Modulo
View Answer
A

Q225: Which operator in Ada is used for logical NOT?
  • A: Not
  • B: !
  • C: ~
  • D: #
View Answer
A

Q226: Which operator in Ada is used for assignment?
  • A: :=
  • B: =
  • C: ==
  • D: :=:
View Answer
A

Q227: In Ada, the assignment operator can be overridden in which case?
  • A: Inheritance from an abstract class
  • B: When using modular arithmetic
  • C: For floating-point types
  • D: In Boolean expressions
View Answer
A

Q228: What is the main purpose of Ada's exception handling mechanism?
  • A: To catch errors at runtime
  • B: To define new data types
  • C: To improve program readability
  • D: To avoid modular types
View Answer
A

Q229: Which of the following is not a predefined type in Ada?
  • A: Integer
  • B: Character
  • C: Modular
  • D: String
View Answer
D

Q230: Ada's type 'Marks' defined as type Marks is range 0..100; is an example of which type?
  • A: Integer
  • B: Real
  • C: Modular
  • D: Enumeration
View Answer
A

Test Your Knowledge

Take a timed quiz on Modern Programming Languages

🚀 Start Quiz Now