1 minute read
3. Logical Operators I
Objectives
In this session, students will learn about -
● AND operator
● OR Operator
Keywords
● Logical AND or AND operator: Compares two conditions and if both the conditions are true, only then is the result true.
● Logical OR or OR operator: Compares two conditions and if any one of the conditions is true, the result is true
WEBS at a Glance
Recall the concepts covered in the previous coding session
Play the video given in the panel to introduce the concepts to be covered in this session
Discuss AND operator and OR operator Activity given in the panel Conclude the session Assign the homework
● Instruct: Go to the Panel and open the Lab on Logical Operators I.
● Play the video given in the panel.
● Discuss the Quiz questions given in the Panel.
● Invite answers from as many students as possible.
● Conduct Select Your Game given in the Panel:
■ Say: Let us choose our game from the store. The game should fulfil two conditions in order to be your companion.
■ Instruct: Click on the Assignment section.
■ Instruct: Click the Go to Practise button to attempt the activity.
■ Walk around in the classroom and observe the activity done by the students.
■ Instruct: Click on the Yes button to submit the activity.
Note
● If time permits, conduct the additional activity given in the panel.
● Ask the following probing questions:
■ Mention conditions in your day-to-day life where you apply AND condition.
Possible Responses: I will have pizza and coke; I will wear blue jeans and a white shirt; I will buy a book and a game and so on.
■ Mention conditions in your day-to-day life where you apply OR conditions.
Possible Responses: I will have sandwiches OR burgers for snacks; I will have juice or coconut water; I will wear a red or blue dress.
● Assign the following project as homework:
■ Compare two conditions using AND and OR operators and check the output.
Hint: Use the tables on Pages 18 and 20 in the coding booklet.
Note
● The project is optional. Assign it if feasible.