{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

m2 - Lecture C2 Ada Characters and Strings Response...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lecture C2: Ada: Characters and Strings Response to 'Muddiest Part of the Lecture Cards' (10 respondents) 1) How do you know how many bits make up a piece of data? (1 student) The number of bits is a function of its type. The Type’First and Type’Last, tell you the range of values that the data type contains. From that, you should be able to compute the number of bits used. 2) Does Question’Last give the last used position in the string array or just the last position possible? If it gives just the last position possible what is the point of having both Question’last and Question’Length ? (1 student) Attributes for array types T’first gives first index value for array type T T’last gives last index value for array type T T’length gives number if components in array type T T’range gives the index interval for array type T Where T is the name of a constrained array type. Instead of a type name, the name of an object of an array type can be used: A’first gives first index value for array A A’last gives last index value for array A A’length gives number of components in array A A’range gives the index interval for array A
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}