What is a bug?
An error in a program
An error in an algorithm
A way of halting a program that is running
What is a syntax error?
A mistake in the logic of the program
A spelling or grammatical mistake in the program
What is a logic error?
If a syntax error is present, what will happen when the error is encountered?
The program will crash when the error is encountered
The program will behave unexpectedly
The program will not start
If a logic error is present, what will happen when the error is encountered?
Which of the following contains a syntax error?
print("We love computing")
pront("We love computing")
print(answer)
How can the legibility of code be improved?
By inserting lots of line spaces
By using small sized characters
By including comments and using meaningful names
What is a comment?
A sentence that explains what a section of code is trying to do
An opinion of the program's suitability
A sensible name for a variable
Why are comments included in code?
So that the program's title is known
To help programmers understand how the program works
To make it clear who wrote the program
Which of the following is a meaningful variable name?
aop
age_of_person
age