Lessons

Ada · Introductory

Ada · Introductory. Ten lessons. Open-book quizzes. Lesson 1 free.

10 lessons · The Host · Lesson 1 free

Pass all ten lessons for the certificate. Sample · Claim

  1. Program structure and output

    Lesson 1 · On the house

    Program structure and output

    with clauses, procedure bodies, Put_Line, and building with gnatmake.

  2. Variables, constants, and strong typing

    Lesson 2

    Variables, constants, and strong typing

    Declarations, :=, constants, Integer and Float, explicit conversion, and 'Image.

  3. Range types and subtypes

    Lesson 3

    Range types and subtypes

    Define your own integer ranges, use Natural and Positive, and catch Constraint_Error.

  4. Control flow

    Lesson 4

    Control flow

    if/elsif, case with choices and others, for loops with ranges and reverse, while, and exit when.

  5. Procedures, functions, and parameter modes

    Lesson 5

    Procedures, functions, and parameter modes

    in, out, in out parameters, functions returning values, named association, and defaults.

  6. Arrays

    Lesson 6

    Arrays

    Constrained and unconstrained arrays, index types, aggregates, and 'First, 'Last, 'Range, 'Length.

  7. Records

    Lesson 7

    Records

    Record types, defaults, aggregates, field access, and record equality.

  8. Strings

    Lesson 8

    Strings

    Fixed String, concatenation with &, slices, Unbounded_String, and Ada.Strings.Fixed helpers.

  9. Enumerations

    Lesson 9

    Enumerations

    Enumeration types, attributes 'Pos, 'Val, 'Succ, 'Pred, 'Image, 'Value, and enum loops.

  10. Exceptions

    Lesson 10

    Exceptions

    Predefined exceptions, raise with messages, handlers, and Exception_Message.

Sample certificate

Certificate of completion

Sign in to claim your certificate of completion.

Certificate

Finish all ten lessons, then sign in

Pass every lesson on this device (quizzes and checks). Then sign in or create an account to type your name and download the JPG.

All lessons