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

8aadhar - Coding - Holiday Assignment

The document is a summer holiday assignment for Grade 8 students at Wisdom World School, focusing on coding. It includes multiple-choice questions, output evaluation of expressions, pseudo code analysis, and practical coding activities in Make Code Arcade. Students are instructed to print the assignment and solve it in their notebooks.

Uploaded by

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

8aadhar - Coding - Holiday Assignment

The document is a summer holiday assignment for Grade 8 students at Wisdom World School, focusing on coding. It includes multiple-choice questions, output evaluation of expressions, pseudo code analysis, and practical coding activities in Make Code Arcade. Students are instructed to print the assignment and solve it in their notebooks.

Uploaded by

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

WISDOM WORLD SCHOOL

SUMMER HOLIDAY ASSIGNMENT (SESSION 2024-25)


CODING
GRADE 8 (AADHAR)
General Instructions:
• Take its print out and solve it in your note book.

1. Multiple Choice Questions:


i) “To check whether any number is even or odd”, this can be executed with the help of ________
control structure.
a) Sequential b) Iteration c) Selection d) All of these
ii) The expression: 5>=5 will results into-
a) True b) False c) True or False d) Any of these
iii) Which loop is known as Conditional loop?
a) For b) While c) Nested d) All of these
iv) The result of the following expression is- True or False
a) True b) False c) Any of these d) None of these
v) Nested if control structure is used when there is a need to check ___________ condition.
a) One b) Two c) Two or more d) Three
vi) Which of the following is the correct syntax of If-Else statement?
a) if(condition) b) if(condition)
statement-1 statement-1
else else
statement-2 statement-2
c) if(condition): b) if(condition):
statement-1 statement-1
else: else (condition):
statement-2 statement-2
vii) _________operators are fundamental blocks that can be used to build a decision-making capability in
your code.
a) Relational b) Logical c) Arithmatic d) All of these
viii) __________ criteria is defined as a condition that must be met before completing a specific task.
a) Entry b) Exit
ix) In this given pseudo code- class_a=[1,2,3,4,5]
class_b=[6,7,8,9]
for i in class_a:
for j in class_b:
print(i)

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) =

2. Find the output of the following expressions:


i) x=2 ii) n=10
result= 3*x**3-2*x+5 result= n*(n+1)//2

iii) a=5, b=10 iv) a=5,b=3, c=-6


result=( a<b) and (a+b= = 15) result= a+b < c or c+a< b and b+c <a

v) result=20%4+16**2-16//3+28/8 vi) result= (5-3)**3-24 /2*(2+1)

vii) a=7, b=6, c=9 viii) x=2, n=4


result=( a!=b)&& (c= =a) || (a<c) result= x**3 <= n+5*x-8

ix) A1=A3= True x) A1=A3= True, A2=False


A2= A4= False result= ! A1 && A2 || A3
result= A1 && A2 && A3 || A4

3. Find the output of the following Psuedo Code:


i) x=1 ii) listx=[11,22,33]
while x is not 5: listy=[44,55,66]
res= x**3 for x in listx:
print(res) for y in listy:
x=x+1 print(y)
iii) listx=[11,22,33] iv) listx=[11,22,33]
listy=[44,55,66] listy=[44,55,66]
for x in listy: for x in listy:
for y in listx: for y in listx:
print(y) print(x)
v) list= [3,4,5,6,7,8] vi) listm=[7,8,9]
for x in list: listn=[1,2,3]
x=x*3 for x in listm:
print(x) for y in listn:
print(x-y)

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

You might also like