Ada: The First Computer Programmer: 16 MCQs
All 16 multiple-choice questions from this kit, free and with no sign-up.
Warm-up · 5 questions
Q1. Ada was commissioned by which organisation?
BeginnerAnswers and explanations are in the Veda app.
Q2. Ada is named after which person?
BeginnerAnswers and explanations are in the Veda app.
Q3. In which year was Ada standardised by ANSI, giving Ada 83?
BeginnerAnswers and explanations are in the Veda app.
Q4. Which feature is built into Ada for expressing parallel activities?
BeginnerAnswers and explanations are in the Veda app.
Q5. Ada was commissioned by the **US Department of Defense** and standardised as **Ada 83**; it is named after **Ada Lovelace**.
BeginnerAnswers and explanations are in the Veda app.
Building up · 6 questions
Q6. A team is writing software for a fly-by-wire flight control system where a single fault could be catastrophic. Which language characteristic of Ada is most directly relevant to this need?
IntermediateAnswers and explanations are in the Veda app.
Q7. Why does Ada use distinct numeric types such as Metres and Seconds?
IntermediateAnswers and explanations are in the Veda app.
Q8. What is the role of a package specification in Ada?
IntermediateAnswers and explanations are in the Veda app.
Q9. Which Ada revision introduced contracts such as preconditions and postconditions written into the code?
IntermediateAnswers and explanations are in the Veda app.
Q10. A student claims that Ada is obsolete because it was designed in the 1970s. Which fact best refutes this claim?
IntermediateAnswers and explanations are in the Veda app.
Q11. In Ada, what happens when a program attempts to access an array element outside its declared bounds?
IntermediateAnswers and explanations are in the Veda app.
Topper level · 5 questions
Q12. Which pair of design goals most clearly explains why Ada uses English-like keywords such as begin, end, is and then?
AdvancedAnswers and explanations are in the Veda app.
Q13. A developer wants to hide implementation details from client code while still exposing a stable interface. Which Ada mechanism directly provides this?
AdvancedAnswers and explanations are in the Veda app.
Q14. Consider this Ada declaration: ```ada type Metres is new Float; type Seconds is new Float; ``` A programmer then writes an expression that adds a Metres value to a Seconds value. What is the most likely outcome?
AdvancedAnswers and explanations are in the Veda app.
Q15. Which statement best captures the relationship between Ada's revisions (Ada 83, 95, 2005, 2012) and backward compatibility?
AdvancedAnswers and explanations are in the Veda app.
Q16. Given the following Ada function declaration that includes preconditions and postconditions, analyze the implications of the conditions on the function's usability and safety: ```ada function Sqrt (X : Float) return Float with Pre => X >= 0.0, Post => Sqrt'Result >= 0.0; ``` What is the most significant benefit of using such contracts in Ada?
AdvancedAnswers and explanations are in the Veda app.
Your notes can be a kit like these
Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free to start, in more than 40 languages.
- Chapter notes
- Flashcards
- Practice MCQs
- Scored tests
- Paper Solver
Get Veda free See what students get
Free to start · Android app and web · More than 40 languages