Theory p2
Theory p2
Paper 2
Data types
• Integer: numbers 0-9 without decimal, eg., 95, 768
• Real/float: numbers 0-9 with decimal, eg., 34.6, 59.2
• String: series of characters, enclosed in quotes, eg.,
“House no. 7, street # 2”, “Ahmad”,
• Character: single character, in single quotes, eg., ‘c’,
‘M’, ‘Y’, ‘N’
• Boolean: used for comparisons, either True or False
• Give appropriate data types.
What is data identifier table, and what it
contains?
• It contains list of variables.
• It contains explanation of what that variable does
• Data type of that variable