8aadhar - Coding - Holiday Assignment
8aadhar - Coding - Holiday Assignment
Page 1 of 3
How many times the loop will be executed?
a) 9 b) 10 c) 15 d) 20
x) Which opertaor is used to compare two value or expressions are not equal?
a) = = b) != c) += d) =
Page 2 of 3
vii) listx=[11,22,33] viii) a=b=1, n=1
listy=[44,55,66] while(n<=5):
for x in listx: c=a+b
for y in listy: print(c)
print(x) a=b
b=c
n=n+1
ix) marks=[10,20,30,40,50] x) listx=[11,22,33]
for i in marks: listy=[44,55,66]
print(i) for x in listx:
for y in listy:
print(y)
4. Try the following activities on Make Code Arcade and write the block code in your notebook-
i) There are three children named Rohit, Priya and Pooja. Height of Rohit, Priya and Pooja are 4.8 ft 5.2 ft
and 5.1 ft respectively. Create a program in Make Code Arcade using block coding to find who is the
tallest of three.
ii) Create a program in Make Code Arcade which assigns a number to a variable. Then checks if the number
is divisible by 7 or 9 or both 7 and 9.
iii) Create a program in Make Code Arcade which assigns a number to a variable. Find out if the number is
divisible by 3. If divisible by 3, multiply it by 10 and display the output.
iv) Create a program which assigns total marks of a student to variable, and display grade using the logic
below.
• Total marks > 70, then grade A
• Total marks >49 and Total marks <=70, then grade B
• Total marks <= 49, then grade C
v) To print first 10 natural numbers and find their sum using-
• For Loop • While Loop
♦♦♦
Page 3 of 3