0% found this document useful (0 votes)
5 views4 pages

Computer PGT

The document contains a teacher eligibility test for a teaching position in Informatics Practices. It has three sections - an introductory section, a subject knowledge section containing multiple choice questions, and a programming skills section containing coding questions. The summary provides solutions to sample questions from sections two and three, addressing fundamental AI concepts, differences between machine learning and deep learning, data types in SQL, and code to determine the sign of a number and calculate a factorial.

Uploaded by

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

Computer PGT

The document contains a teacher eligibility test for a teaching position in Informatics Practices. It has three sections - an introductory section, a subject knowledge section containing multiple choice questions, and a programming skills section containing coding questions. The summary provides solutions to sample questions from sections two and three, addressing fundamental AI concepts, differences between machine learning and deep learning, data types in SQL, and code to determine the sign of a number and calculate a factorial.

Uploaded by

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

COLONEL’S ACADEMY

TEACHER’S ELIGIBILITY TEST


SESSION: 2024-25
SUBJECT: INFORMATICS PRACTICES
GRADE: PGT
Time : 1 hour M.M: 25

SECTION A

1. Give a brief introduction about yourself. 2.5


2. Why did you choose teaching as a career option? 2.5

SECTION B : (SUBJECT KNOWLEDGE BASED)

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

SECTION C : (PROGRAMMING SKILLS)

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.

 AI automates tasks for efficiency.


 AI analyzes data for insights.
 AI personalizes user experiences.
 AI improves healthcare diagnostics.
 AI advances autonomous vehicles.
 AI powers language understanding.
 AI enhances customer service.
 AI strengthens cybersecurity.

5.

append(): Adds a single element to the end of the list.

extend(): Adds elements from another iterable (such as a list, tuple, or string) to the end of the list

# Using append() # Using extend() # Using extend() with a string


my_list = [1, 2, 3] my_list = [1, 2, 3] my_list = [1, 2, 3]
my_list.append(4) other_list = [4, 5, 6] my_string = "hello"
print(my_list) my_list.extend(other_list) my_list.extend(my_string)
# Output: [1, 2, 3, 4] print(my_list) print(my_list)
# Output: [1, 2, 3, 4, 5, 6] # Output: [1, 2, 3, 'h', 'e', 'l', 'l',
'o']

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.

Feature Series DataFrame


Dimensionality One-dimensional Two-dimensional
Data Structure Homogeneous (all elements are of Heterogeneous (each column can have a
the same data type) different data type)
Usage Ideal for working with a single Ideal for working with multiple columns of
column of data data
Creation Created from a single list, array, or Created from multiple lists, arrays, or
dictionary dictionaries
Example [1, 2, 3, 4, 5] pd.DataFrame({'A': [1, 2, 3],
'B': ['a', 'b', 'c']})

8.

Feature Machine Learning Deep Learning


Complexity Generally simpler models Complex models with multiple layers
Feature Requires manual feature extraction Automatically learns features from data
Engineering
Training Data Size Works well with smaller datasets Requires large datasets for optimal
performance
Interpretability More interpretable models Less interpretable, often considered as
'black boxes'
Performance May not perform as well on complex Often achieves state-of-the-art
tasks performance on tasks
Computational Requires less computational Requires significant computational
Resources resources resources

9.
Feature IPv4 IPv6
Address Format Expressed in dotted-decimal notation Expressed in hexadecimal notation

Address Length 32 bits 128 bits


Number of Approximately 4.3 billion Approximately 340 undecillion
Addresses
Address Manual or DHCP DHCPv6 or Stateless Autoconfiguration
Configuration
Header Format Fixed-length headers More efficient, simpler header format

Security No built-in security features IPSec support mandated


NAT Dependency Heavy reliance on NAT Reduced reliance on NAT
Fragmentation Routers fragment packets Source devices handle fragmentation

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)

You might also like