Professional Documents
Culture Documents
SCHOOL
(Affiliated to CBSE, New Delhi)
SREE NANDEESWARAR CAMPUS, ADAMBAKKAM, CHENNAI-88
CLASS : VII HOME ASSIGNMENT-2 SUB : COMPUTER SCIENCE
(2023-2024)
I. Guess the logical operators used in the boxes and write the truthtable in it.
Hint:
True
NAME:__________________
False
III. Find the type of operator and write the reason for the name
IV. Look at the pictures below and find the types of selection control structure.
V. Identify and write the control structure from the given image and justify.
1 2
3 4
VII. Write the equvalent C coding for the given flowchart using selection statement.
VIII. Convert the following C coding using Nested if statement.
#include <stdio.h>
void main()
{
int a;
printf(" Enter your age");
scanf("%d",&a);
if (a<18 )
printf("Student");
else if(a>=18&&a<=60 )
printf("Employee");
else
printf("Senior citizen”);
}
IX. Pick out the words related to control structure in the given word search. (Any 10)
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.