Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,24 +96,7 @@ Ada.Characters.Handling Sample Content
Quiz
------

..
This file is auto-generated from the quiz template, it should not be modified
directly. Read README.md for more information.

.. code:: Ada

type T1 is (NUL, A, B, 'C');
for T1 use (NUL => 0, A => 1, B => 2, 'C' => 3);
type T2 is array (Positive range <>) of T1;
Obj : T2 := "CC" & A & NUL;

Which of the following proposition(s) is (are) true

A. The code fails at run-time
B. ``Obj'Length = 3``
C. :answermono:`Obj (1) = 'C'`
D. :answermono:`Obj (3) = A`
.. include:: quiz/user_defined_character/quiz.rst
.. include:: ../quiz/user_defined_character/quiz.rst

------
Quiz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,29 +94,6 @@ Multiple Declarations
Quiz
------

..
This file is auto-generated from the quiz template, it should not be modified
directly. Read README.md for more information.

.. code:: Ada

type Record_T is record
-- Definition here
end record;

Which record definition(s) is (are) legal?

A. ``Component_1 : array (1 .. 3) of Boolean``
B. :answermono:`Component_2, Component_3 : Integer`
C. ``Component_1 : Record_T``
D. ``Component_1 : constant Integer := 123``

.. container:: animate

A. Anonymous types not allowed
B. Correct
C. No recursive definition
D. No constant component
.. include:: ../quiz/record_component_decl/quiz.rst

------
Expand Down
Loading