You are on page 1of 4

ICT logic activities

Activity 1.1a

Read the sentences. Extract the indicated number of propositions. Identify the logic operator that
best fits the meaning of the sentence. Rewrite the sentence using the logic operator.

Sam is a 15 year old boy.

Indicated number of propositions: 1

It is a warm sunny day.

Indicated number of propositions: 1

Even though it is sunny, it may also be windy.

Indicated number of propositions: 2

Activity 1.1b

Read the sentences. Extract the indicated number of propositions. Identify the logic operator that
best fits the meaning of the sentence. Rewrite the sentence using the logic operator.

An integer x is divisible by 5 or 2.

Indicated number of propositions: 2

0<x<2

Indicated number of propositions: 3

x is between 5 and 10.

Indicated number of propositions: 6

Activity 1.2

Read the narrative. Extract propositions. Construct a truth table that will evaluate the various logical
possibilities and outcomes.

You have invited your friends Angela and Lin over to spend the day at your house. You are at the ice
cream shop and you want to buy a flavor they both like. You call them to ask them if they like
chocolate ice cream. Under which conditions would you buy chocolate ice cream?

If your friend will buy chocolate ice cream.

Activity 1.3a

Read the narrative. Extract propositions. Construct a truth table that will evaluate the various logical
possibilities and outcomes.

You are given an integer. You are required to decide if the integer is between the
numbers 10 and 20.

Activity 1.3b

Use a spreadsheet application to prepare the following.

a. Construct a truth table that will evaluate the various logical possibilities and outcomes of any two
propositions p and q, based on AND logic.

b. Prepare a spreadsheet that can evaluate if an entered integer lies be- tween the numbers 10 and
20.

c. Prepare a spreadsheet that can evaluate if an entered integer lies between two integers specified
by the user.

Activity 1.3c

Use Python to prepare the following programs.

a. Prepare a program that can evaluate if an entered integer lies between the numbers 10 and 20.

b. Prepare a program that can evaluate if an entered integer lies between two integers specified by
the user.
Activity 1.4

Read the narrative. Extract propositions. Construct a truth table that will evaluate the various logical
possibilities and outcomes.

Angela and Lin are spending the day at your house. You are at the ice cream shop and you want
choose a flavor that at least one of them likes. You ask them about strawberry flavor. Under which
conditions would you buy strawberry ice cream?

Activity 1.5a

Read the narrative. Extract propositions. Construct a truth table that will evaluate the various logical
possibilities and outcomes.

You are given two integers. You need to decide if at least one of them is greater than 10.

Activity 1.5b

Use a spreadsheet application to prepare the following.

a. Construct a truth table that will evaluate the various logical possibilities and outcomes of any two
propositions p and q, based on OR logic.

b. Prepare a spreadsheet that can evaluate if at least one of two entered integers is greater than 10.

c. Prepare a spreadsheet that can evaluate if at least one of two entered integers is greater than a
third integer specified by the user.
Activity 1.5c

Use Python to prepare the following programs.

a. Prepare a program that can evaluate if at least one of two entered inte-gers is greater than 10.

b. Prepare a program that can evaluate if at least one of two entered inte- gers is greater than a third
integer specified by the user.

You might also like