Computer PGT
Computer PGT
SECTION A
3. As a fresh teacher new to teaching AI, what are the fundamental concepts you should focus on in
your introductory lessons? 2
4. Explain the concepts of Artificial Intelligence and its significance in modern society.
2
5. Differentiate between the append () and extend () methods in python lists. Provide examples to
illustrate their usage. 2
6. Explain the difference between CHAR and VARCHAR data types in MySQL.
7. What is the difference between Series and DataFrame in Pandas? 3
8. What are the difference between Machine Learning and Deep Learning. 3
9. What is an IP address? Explain the difference between IPv4 and IPv6. 3
10. Write a program to find the given number is positive or negative. 2.5
11. Write a program to find a factorial of a number. 2.5
SOLUTION
SUBJECT: INFORMATICS PRACTICES
GRADE: PGT
3. AI Introduction:
Define AI and its significance.
Mention subfields like machine learning and robotics.
Machine Learning Basics:
Cover supervised, unsupervised, and reinforcement learning.
Introduce common algorithms briefly.
Neural Networks Overview:
Explain neural network structure and function briefly.
Data Preprocessing:
Stress importance of cleaning and preprocessing data.
Model Evaluation:
Explain importance and mention common metrics briefly.
Ethical Considerations:
Address ethical concerns like bias and privacy.
Hands-on Applications:
Provide practical learning opportunities through projects.
4.
5.
extend(): Adds elements from another iterable (such as a list, tuple, or string) to the end of the list
6.
Feature CHAR VARCHAR
Storage Fixed-length Variable-length
Storage Size Defined length, padded with spaces Actual length of the string
if needed
Efficiency More efficient for fixed-length More efficient for variable-length strings
strings
Usage Ideal for fields with consistent Ideal for fields with varying length
length
Example CHAR(10) VARCHAR(255)
7.
8.
9.
Feature IPv4 IPv6
Address Format Expressed in dotted-decimal notation Expressed in hexadecimal notation
10. 11.
num = float(input("Enter a number: ")) num = int(input("Enter a number: "))
if num > 0: factorial = 1
print("Positive number") if num < 0:
elif num == 0: print("Sorry, factorial does not exist for negative
print("Zero") numbers")
else: elif num == 0:
print("Negative number") print("The factorial of 0 is 1")
#output: Positive number else:
for i in range(1,num + 1):
factorial = factorial*i
print("The factorial of",num,"is",factorial)