bbb29.jpg

Back 

Syntax and logic errors questions

Q1. What is meant by a ‘reserved word’?
Q2. What type of error might be displayed when you try to compile a program?
Q3. What is a ‘logical error’?
Q4. Give an example of a logical error. 
Q5.
What kind of error would you get if you used the keyword WHILE but spelt it as WIHLE?
Q6. 
What kind of error would you get if you used the keyword REPEAT but spelt it as REPEET?
Q7. 
What kind of error would you get if you wanted to do COST + TAX in a program but you accidentally wrote COST * TAX?
Q8. 
What kind of error would you get if you wanted to do (SCORE + OFFSET) / 5  in a program but you accidentally wrote SCORE + OFFSET / 5?
Q9.
What are 'translator diagnostics'?
Q10.
How do you go about finding logic errors?

Back