0% found this document useful (0 votes)
147 views3 pages

Lesson Plan # 8: Subject: Computer Science Grade: 8 Time: 30 Min

This lesson plan outlines a 30-minute lesson for 8th grade computer science students on syntax and logical errors. The lesson will define what errors are, explain the differences between syntax errors and logical errors, and give examples of each. Students will participate in an activity identifying different types of errors in code snippets and formulas. The teacher will summarize the key points about syntax errors occurring from incorrect language structure and logical errors arising from flawed reasoning.

Uploaded by

Iram Ammad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
147 views3 pages

Lesson Plan # 8: Subject: Computer Science Grade: 8 Time: 30 Min

This lesson plan outlines a 30-minute lesson for 8th grade computer science students on syntax and logical errors. The lesson will define what errors are, explain the differences between syntax errors and logical errors, and give examples of each. Students will participate in an activity identifying different types of errors in code snippets and formulas. The teacher will summarize the key points about syntax errors occurring from incorrect language structure and logical errors arising from flawed reasoning.

Uploaded by

Iram Ammad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Lesson Plan # 8

Syntax and Logical errors


Subject: Computer Science
Grade: 8th
Time: 30 min
Students learning outcomes (SLO):
The student will able to:
 What are errors?
 Define syntax and logical errors.
 Difference between syntax and logical errors.
Material:
White board, marker, board rubber, keyboard, charts etc.
Teaching Methods:
Following methods will be used:
1. Lecture Method
2. Demonstration Method
3. Activity based method
Lesson Development:
First of all teacher will ask from students that what are errors?
The teacher will tell the students that today we are going to study about syntax and logical errors.
First of all you should know that what are errors, in a program the occurrence of incorrect or
unexpected result is called an error. Errors occur due to some mistake in performing operations
in a program, there are two common types of errors in programming:
 Syntax errors
 Logical errors
Syntax errors:
Syntax of a programming language is the set of rules that define the combination of symbols
used by that language. Syntax errors occur when the instructions written in a program do not
follow the rules, these are the errors in spelling and grammar, and syntax error is easy to remove
because the computer finds them for the user.
For Example: INPUT instead of INUPT
10 = A instead of A = 10
Logical errors:
A logical error is an error resulting in wrong answer due to programmers own logical mistake.
These errors occur due to wrong use of formulae or providing wrong value to a variable.

For Example: PRODUCT = X+Y instead of PRODUCT = X*Y


AREA = Pie * R3 instead of AREA = Pie * R2
Activities:
Teacher has some flash cards written some formulae and instructions with errors and students
have to tell that which error is this?
Sum up:
Teacher will summarize the topic that today we learned about errors that Errors occurs due to
some mistake in performing operations in a program. In a program the occurrence of incorrect or
unexpected result is called an error. There are two types of errors that are syntax and logical
errors. Syntax errors occur when the instructions written in a program do not follow the rules and
logical errors occur due to wrong use of formulae or providing wrong value to a variable.
Assessment:
Teacher will ask question from students:
1. What is error?
2. What is the difference between syntax error and logical error?

Follow Up:
Write the differences between syntax and logical errors?

You might also like