Chapter 5 Outcomes
Basic Data Types: Integer, Real and String
Knowledge Outcomes
Define each of the key terms listed in the chart below.
| binary form | decimal form | digital computer | bit |
| representation of numbers | radix notation | byte | boolean |
| character | string | white space | token |
| token-oriented input | backslash | join operator + | substring |
| ASCII code | ASCII value | ord | chr |
Explain the differences and similarities between base 2 numbers and base 10 numbers.
Describe a number in it's radix or positional notation.
Discuss the implications to computer memory usage of using real numbers or integer numbers in a program.
State the number of bytes reserved in memory to store each of the following data types:
Show how to limit the size of memory for the string data type.
Explain the purpose of .. (dot dot) at the end of a put line.
State what makes up white space.
Describe what is meant when we say that a programming language is a token-oriented language.
Explain how many separate words can be entered as one token.
Describe the purpose of the backslash (escape character or \) when useed in a string.
Describe the numbering system used by the computer when determining the position of a character in a string (include the .., *, and the *- in your explanation).
Explain the purpose of the ASCII code.
Discuss the difference between case sensitive and non case sensitive languages.
Skills Outcomes
Use the join operator to create one larger string from two smaller ones.
Show how to include quotation marks as part of a token.
Use the backslash character to output quotation or other backslash characters in a put statement.
Use the length function to determine the length of a string.
Take a substring from a larger string, this includes single and multiple character strings.
Use the pre-defined function ord and chr to convert a number to its corresponding ASCII character or an ASCII character to get its corresponding value.
Detect and correct a variety of common errors as outlined in the chapter.