Modern Programming Languages MCQs with Answers
Practice important Modern Programming Languages MCQs with answers and explanations.
Chapter: 13
Q201:
The Ada programming language was initially designed for which type of software systems?
A. Military software systems
B. Commercial software systems
C. Scientific software systems
D. Entertainment software systems
Correct Answer:
A
Chapter: 13
Q202:
Ada supports which of the following programming paradigms?
A. Object-oriented programming
B. Procedural programming
C. Functional programming
D. Declarative programming
Correct Answer:
A
Chapter: 13
Q203:
In Ada, the operator for assignment is:
A. =
B. :=
C. ==
D. !=
Correct Answer:
B
Chapter: 13
Q204:
Which of the following is NOT a feature of Ada?
A. Support for exception handling
B. Support for object-oriented programming
C. Limited libraries
D. Support for multiple parallel threads of control
Correct Answer:
C
Chapter: 13
Q205:
What is the purpose of the "Put_Line" statement in Ada?
A. To print output to the screen
B. To assign a value to a variable
C. To define a procedure
D. To handle an exception
Correct Answer:
A
Chapter: 13
Q206:
In Ada, which operator is used for string concatenation?
A. &
B. +
C. *
D. .
Correct Answer:
A
Chapter: 13
Q207:
The Ada operator "Mod" is equivalent to which operator in C?
A. %
B. //
C. /
D. &
Correct Answer:
A
Chapter: 13
Q208:
Which of the following features was introduced in Ada 95?
A. Object-oriented programming
B. Multiple parallel threads of control
C. Exception handling
D. Generic packages
Correct Answer:
A
Chapter: 13
Q209:
The operator for equality in Ada is:
A. =
B. ==
C. !=
D. :=
Correct Answer:
A
Chapter: 13
Q210:
Which of the following is NOT a valid operator in Ada?
A. PlusEquals
B. Abs
C. **
D. Rem
Correct Answer:
A
Chapter: 13
Q211:
What does Ada aim to improve by catching errors at compile-time?
A. Debugging time
B. Program execution speed
C. Program portability
D. Program readability
Correct Answer:
A
Chapter: 13
Q212:
The Ada "Rem" operator is used for:
A. Remainder calculation
B. Exponentiation
C. Modulo operation
D. Absolute value calculation
Correct Answer:
A
Chapter: 13
Q213:
In Ada, the "In" operator is used for:
A. Range checking
B. Membership testing
C. Equality testing
D. Assignment
Correct Answer:
B
Chapter: 13
Q214:
Which Ada feature allows precise control of data representation?
A. Tables
B. Tasks
C. Packages
D. Data types
Correct Answer:
D
Chapter: 13
Q215:
Ada's history includes its initial code names. Which one was NOT used?
A. Strawman
B. Woodman
C. Steelman
D. Platinum
Correct Answer:
D
Chapter: 13
Q216:
The primary objective of Ada is to support construction of __________ software systems.
A. Highly reliable
B. Long-lasting
C. Real-time
D. Interactive
Correct Answer:
A
Chapter: 13
Q217:
What was the main challenge in Ada’s development due to the developers' lack of experience?
A. Lack of formal documentation
B. Overuse of exceptions
C. Overloading operators
D. Poor performance
Correct Answer:
A
Chapter: 13
Q218:
In the Ada "Hello World" example, what is printed to the screen?
A. Hello, Ada
B. Hello World
C. Hello
D. World
Correct Answer:
B
Chapter: 13
Q219:
Which operator in Ada is used for exponentiation?
A. **
B. ^
C. !
D. //
Correct Answer:
A
Chapter: 13
Q220:
Which of the following is true about Ada's exception handling?
A. It helps catch runtime errors
B. Avoids code repetition
C. Increases debugging time
D. Reduces program reliability
Correct Answer:
A