Page 114 - Digicode_AI_class_8
P. 114
Periodic Assessment 3
(Based on chapters 6 to 8)
A. What will be the output of the following Python codes:
1. i = 0
while (i == 0):
print("Hello Touchpad")
2. def info(name, age):
"This will prints a passed
information into the function"
print("Name: ", name)
print("Age: ", age)
return
#Now print information function is called
info(age=21, name="Taarush")
B. Write a program to add first five natural numbers by using the while loop.
C. Define the following:
1. Built-In Functions
2. Arguments
3. Sensors
112 DigiCode AI-VIII

