Exam Questions and Answers
comments ✔️✔️helps human users by documenting what the code does it is also ignored by the
compiler
string literal ✔️✔️A string literal must be enclosed in either single or double quotes "string" -or-
'strings'
\n ✔️✔️Newline character
Whitespace ✔️✔️any tab, space, indent or newline is whitespace
input() ✔️✔️reads input from user wont continue the program until input is read
String ✔️✔️anything that is in quotes example is "ab!%&##" is a string
type ✔️✔️strings, integers, floats etc are all types of data ex. 1 is in integer '1' is a string and 1.0
is a float
Syntax error ✔️✔️an error in syntax
Runtime error ✔️✔️Can be caused when trying to perform impossible tasks like multiplying
strings together
Crash ✔️✔️abrupt end/ unexpected end of a program