Class 8 Chapter 10 Updated
Class 8 Chapter 10 Updated
LET'S SOLVE
10. Domains of AI
LET’S PLUG-IN
1. Technology 2. Intelligent
LET’S CATCH UP
1. Natural Language Processing 2. Computer Vision
FUN ZONE
LET'S SOLVE
Periodic Assessment–4
(Based on chapters 8 to 10)
A. num = 407
if num > 1:
# check for factors
for i in range(2,num):
if (num % i) == 0:
print(num,”is not a prime number”)
print(i,”times”,num//i,”is”,num)
break
else:
print(num,”is a prime number”)
# if input number is less than
# or equal to 1, it is not prime
else:
print(num,”is not a prime number”)
B. num = int(input(“Enter a number: “))
factorial = 1
if num < 0:
print(“Sorry, factorial does not exist for negative numbers”)
Test Sheet–2
(Based on chapters 6 to 10)
A. 1. (iii) 2. (i) 3. (iii) 4. (i) 5. (i)
6. (ii) 7. (i) 8. (iii)
B. 1. in-built 2. break, continue 3. Augmented Reality 4. AI
5. human intelligence 6 <FRAMESET> 7. href
C. 1. F 2. F 3. T 4. T 5. T
D. 1. Looping refers to the process of repeating a set of statements repeatedly on the basis of a
condition until the condition is falsified.
2. Authentication is the process of verifying a user’s identity before granting him or her access
to a computer system.
3. Rapid prototyping is used to create models to quickly test a new product before mass
production. 3D Printing can be termed as a RP method.
4. HREF stands for Hypertext Reference.
for each
2.
item in
sequence
False
Body of for
Exit loop
3. By using while loop:
limit = int(input(“ Please Enter the limit Value : “))
Sum = 0
N=1
while N <= limit:
if(N % 2 == 0):
print(N)
Sum = Sum + N
N=N+1
print(“The Sum of Even Numbers from 1 to”, limit, “is: “,Sum)
By using for loop:
Sum = 0
limit = int(input(“ Enter the last number of the range : “))
for even in range(1, limit+1):
if(even % 2 == 0):
print(even)
Sum = Sum + even
print(“The Sum of the even numbers till”, limit, “is: “, Sum)