SlideShare a Scribd company logo
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 1 of 13
Q.1. Plagiarism.
Q.2. matplotlib. pyplot.
Q.3. 3500.
Q.4. import pandas as pd
x=6
S1=pd.Series(x, index= [1,2,4,6,8,9])
print(S1)
Output: -
1 6
2 6
4 6
6 6
8 6
9 6
dtype: int64
Q.5. index.
Q.6. Line Chart.
Q.7.Bus.
Q.8.All of the above.
Q.9. Multiple Values.
Q.10.Microsoft Edge.
Q.11.ORDER BY.
Q.12.Open Source.
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 2 of 13
Q.13.import pandas as pd
I=['Apple','Banana','Mango','Orange','Litchi']
df=pd.DataFrame(I,index= [1,2,3,4,5])
print(df.iloc[1:3])
Output: -
2 Banana
3 Mango
Q.14.IT Act (ITA).
Q.15.Website, Webpage.
Q.16.Blind Carbon Copy (BCC).
Q.17.All of the above.
Q.18.USE.
Q.19.indexof ().
Q.20. MAN.
Q.21. Extension and Plugin.
Q.22.
import pandas as pd
t={'rollno':[1,2,3,4,5,6],
'Name':['Krishna','Pranshu','Gurusha','Arpit','Rani','Aurobindo'],
'Age':[15,14,14,15,16,15],
'marks':[70.4,60.9,80.3,87.5,67.8,86.0],
'class':['11A','12B','11B','12B','12B','11B']}
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 3 of 13
df=pd.DataFrame(t, index=[10,20,30,40,50,60])
print(df)
Output: -
rollno Name Age marks class
10 1 Krishna 15 70.4 11A
20 2 Pranshu 14 60.9 12B
30 3 Gurusha 14 80.3 11B
40 4 Arpit 15 87.5 12B
50 5 Rani 16 67.8 12B
60 6 Aurobindo 15 86.0 11B
1).Print (df. iloc [1])
2).Print(df[‘marks’].max ())
3).df. insert (loc=2, column=’fee’, values=[3200,3400,4500,3100,3200,4000])
4).df. drop (‘Age’, axis=1, inplace = True)
5).df. rename (columns={‘marks’:’Term1’}, inplace = True)
Q.23. click for codes to create table.
1). select * from HOTEL where Location = ‘London’;
2). select Hotel_Id, H_Name, Location, Room_Type, Price, Star from HOTEL where Price >
6000 order by Price;
3). select H_Name from HOTEL where H_Name like “%e”;
4). select count (distinct Room_type) from HOTEL;
5). select H_Name from HOTEL order by H_Name desc;
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 4 of 13
Q.24.
import pandas as pd
h= ['H','a','p','p','y']
s = pd.Series(data=h)
print(s[0:3])
Output: -
0 H
1 a
2 p
dtype: object
Q.25.(A). Erro: SQL is case sensitive language. In given command the starting with
uppercase and the continue with lower case cause the error.
Solution: select emp_name from emp where comm = NULL;
OR SELECT emp_name FROM emp WHERE comm = NULL;
In the solution, all the functions are in same case from starting to end except the table date
names.
(B). No, because WHERE clause specifies search conditions for the rows returned by the
Query and limits rows to a specific row-set. If a table has huge number of records and if
someone wants to get the particular records then using ‘where’ clause is useful. Whereas
GROUP BY clause summaries identical rows into a single/distinct group and returns a
single row with the summary for each group, by using appropriate Aggregate function in the
SELECT list, like COUNT(), SUM(), MIN(), MAX(), AVG(), etc.
Having clause is used to restrict the number of records returned by the Group by clause.
Q.26. The count (*) returns all rows whether column contains NULL value or not, while
count (<Column Name>) returns the number of rows except NULL valued row / rows.
E.g.: - >> create table school (St_name char (25), Class int (3), Attendance int (4));
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 5 of 13
>> select count (*) from school where Attendance < 45;
It will show all the name and classes which have attendance less than 45.
Q.27.
import pandas as pd
A=pd.Series([2,4,6], index = [0,1,2])
B=pd.Series([1,3,5], index = [1,2,3])
print(A)
print(B)
1).S = (A+B)
2).S = (A*B)
Q.28.
1).5.
2).Sun Cream 678
Beauty Cream 5400
Beauty Cream 1200
Q.29. (A).1). Substr (“Innovation”,3,4)
nova
2). ation
(B). 1). 3.
2).1.
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 6 of 13
Q.30.
import pandas as pd
stu = {'Admno':[1001,1002,1003,1004,1005],
'Firstname':['Amit','Rohit','Shyam','Manan','Raman'],
'Lastname':['Sehgal','Malik','Bhatia','Gupta','Bajaj'],
'Age':[18,17,18,16,18],
'Pretest':[87,89,90,79,922],
'Posttest':[67,78,84,69,70]}
d=pd.DataFrame(stu)
print(d)
1). d.loc[::-1].head()
2). g = {'Admno':1006, 'Firstname':'Sujal', 'Lastname':'Sharma', 'Age':17, 'Pretest':87,
'Posttest':89}
d = d.append(g,ignore_index=True)
print(d)
Q.31. VoIP stands for (Voice Over Internet Protocol) is the technology that converts your
voice into a digital signal, allowing you to make a call directly from a computer, VoIP phone, or
other data – driven devices. Examples of software / apps are: Skype, IMO, Instagram,
Facebook, etc.
Q.32.There is main health hazard that can occur due to excessive use of computer / smart
phone screes,
→ Physical health Effects:
1. Eyestrain,
2. Poor Posture,
3. Sleeping Problems,
4. Reduced Physical Activities.
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 7 of 13
→ Psychological Effects:
1. Isolation,
2. Depression,
3. Irritation,
4. Decrement in creativity thinking skills.
Q.33.
1. URL stands for Uniform Resource Locator,
2. It was invented with the development of www by Tim Berners – Lee.
3. A URL is a web address of a given unique resource on the web.
4. It is the mechanism used by browsers to retrieve any published resource on the web.
5. E.g.: - https://www.google.com . (Https://) – Protocol; (www.google.com) – Domain
name.
Q.34.
import pandas as pd
S1 = pd.Series(data=[2,3,1])
print(S1)
1).
0 8
1 27
2 1
dtype: int64
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 8 of 13
2).
0 6
1 9
2 3
dtype: int64
Q.35. (A). → For copyright: -
• It exists, without me doing anything to assert it, from the moment of creation.
• Unless explicitly assigned, or surrendered, it persists regardless of license chosen
for the software.
• It grants the creator very specific legal rights and remedies (although, these may
vary by jurisdiction).
• Most forms of copyright have a defined duration (usually life + 'n' years).
• In an open-source project, every contributor retains copyright in their own
contributions.
→For the License: -
• It is a legal document
• I have to explicitly choose, or create, the license. It does not apply automatically.
• It grants users of the software specific, and limited, rights.
• Unless stated in the License itself, or until it is revoked, it remains enforceable in
perpetuity.
(B). Intellectual property rights are the rights given to persons over the creations of
their minds. They usually give the creator an exclusive right over the use of his/her creation
for a certain period of time.
The protection of Intellectual Property Rights (IPR) is important for the economy and for
its further growth in areas such as research, innovation and employment. Effective IPR
enforcement is also essential to health and safety. ... For these reasons, IP rights are worth
protecting, both domestically and internationally.
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 9 of 13
Q.36. (A).import matplotlib.pyplot as plt
import numpy as np
plt.plot([1.0,2.0,3.0,4.0,5.0], [12,14,13,14.8,18.9])
plt.xlabel('Tests')
plt.ylabel('Marks Secured')
plt.show()
(B).import matplotlib. pyplot as pl
info = ['Gold', 'Silver', 'Bronze', 'Total']
Australia = [80,59,59,198]
pl.bar(info,Australia)
pl.title("AUSTRIALIA MEDAL PLOT")
pl.xlabel("Medals Won by Austraila")
pl.ylabel("Marks won")
pl.show()
*Questions for visually impaired:
(A). Data visualization is the graphical representation of information and data. By
using visual elements like charts, graphs, and maps, data visualization tools provide an
accessible way to see and understand trends, outliers, and patterns in data.
In the world of Big Data, data visualization tools and technologies are essential to analyze
massive amounts of information and make data-driven decisions.
Like matplotlib , Pandas, etc.
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 10 of 13
(B).1). Plot (): - The plot () function in pyplot module of matplotlib library is used to make
a 2D hexagonal binning plot of points x, y. Parameters: This method accept the following
parameters that are described below: x, y: These parameters are the horizontal and vertical
coordinates of the data points. x values are optional.
2). Show (): - The show () function in pyplot module of matplotlib library is used to display
all figures.
3). Savefig (): - Savefig () As the name suggests Savefig () method is used to save the figure
created after plotting data. The figure created can be saved to our local machines by using
this method.
Q.37. 1). select House, count(House)
-> from School
-> group by House
-> having count(House) >2;
2). select avg (Percentage) from School;
3). select min (Percentage) from School where Class = 10;
Q.38.(A).import pandas as pd
d = {'country':['Italy', 'Spain','Greece', 'France', 'Portugal'],
'population':[61,46,11,65,10],
'percent':[0.83,0.63,0.15,0.88,0.14]}
df1 = pd.DataFrame(d, index=['IT','ES','Gr','Fr','Po'])
print(df1)
Output: -
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 11 of 13
(B). 1).print(df1[df1.columns[0:2]])
2). print (df1[(df1[“population”]>40)])
3).df1.drop(df1.tail(2).index, inplace=True)
Q.39.(A). 1).select dayname(‘2000-07-05’);
2).select lcase(“e-mail-id”);
3).select length(“King”);
4).select substring (“King”,1,1);
5).select avg (marks) from class;
(B). 1).select substring (Itemname,1,3) from ITEM;
2).select monthname (Stockdate) from ITEM; //given
date is not correct format to use ‘monthname’ function. You have to change the format in
‘YYYY-MM-DD’ then you will able to get the correct output.
3).select sum (Price) from ITEM;
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 12 of 13
4).select avg (Price) from ITEM;
5).select round (Price,2) from ITEM;
Q.40. a).Star Topology.
b).Administrative Wing (W1), because at W1 all of the record will store and easy to
access in all conditions.
c). LAN, because it covers up to 10 kms’ of radius.
d).As per suggested layout separate repeaters need not to be installed as each
building or wing, will be having a hub that acts as repeater. One hub per wing is
enough.
e).School can use cloud-based applications for sharing any type of data, like: Google
drive, One Drive, AWS drive services, etc. to share their files and make it save for future
use.
*Questions for visually impaired:
(a). A network switch connects devices (such as computers, printers, wireless access points) in
a network to each other, and allows them to 'talk' by exchanging data packets. Switches
can be hardware devices that manage physical networks, as well as software-based virtual
devices.
(b). Bus Topology and Star Topology.
(c). A modulator-demodulator, or simply a modem, is a hardware device that converts data
from a digital format, intended for communication directly between devices with specialized
wiring, into one suitable for a transmission medium such as telephone lines or radio.
(d). A gateway is a network node used in telecommunications that connects two
networks with different transmission protocols together. Gateways serve as an entry and
Informatics Practices (New) Solution
CBSE – 2021 Compt., Improvement Examination
Page 13 of 13
exit point for a network as all data must pass through or communicate with the gateway prior
to being routed.
(e). Voice over Internet Protocol (VoIP), is a technology that allows you to make voice calls
using a broadband Internet connection instead of a regular (or analog) phone line.

More Related Content

PDF
Accountancy Class 12 Project
PDF
Computer science class 12 project on Super Market Billing
PPTX
National income
PDF
IP Project for Class 12th CBSE
PDF
Solved Accounting Ratios with Balance Sheet(vertical) and Statement of Profit...
PPTX
Indian Agriculture sector
PDF
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
PDF
IP project for class 12 cbse
Accountancy Class 12 Project
Computer science class 12 project on Super Market Billing
National income
IP Project for Class 12th CBSE
Solved Accounting Ratios with Balance Sheet(vertical) and Statement of Profit...
Indian Agriculture sector
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
IP project for class 12 cbse

What's hot (9)

PDF
Computer science Project for class 11th and 12th(library management system)
PDF
PYTHON PROJECT ON CARSHOP SYSTEM
PDF
Computer project final for class 12 Students
PPTX
Comparative development experiences of india and its neighbours
PDF
ECONOMICS AND SOCIAL ISSUES PDF FOR RBI GRADE B EXAM
DOCX
12th CBSE Computer Science Project
DOCX
A PROJECT REPORT ON TAX REFORMS
PPTX
Accountancy 12th class Project Work (both comprehensive and specific)
PPTX
A PROJECT WORK BASED ON MANAGEMENT PRINCIPLES CLASS - 12
Computer science Project for class 11th and 12th(library management system)
PYTHON PROJECT ON CARSHOP SYSTEM
Computer project final for class 12 Students
Comparative development experiences of india and its neighbours
ECONOMICS AND SOCIAL ISSUES PDF FOR RBI GRADE B EXAM
12th CBSE Computer Science Project
A PROJECT REPORT ON TAX REFORMS
Accountancy 12th class Project Work (both comprehensive and specific)
A PROJECT WORK BASED ON MANAGEMENT PRINCIPLES CLASS - 12
Ad

Similar to Informatics Practices (new) solution CBSE 2021, Compartment, improvement examination. (20)

PDF
InformaticsPractices-MS - Google Docs.pdf
PDF
InformaticsPractices-MS.pdfsssssssssssss
PDF
Question Paper Code 065 informatic Practice New CBSE - 2021
PDF
2023 9b09kvuofjfouijfd8bifjbuiofjdfoivbjdogbj
PPTX
DataFrame in Python Pandas
DOCX
information practices cbse based paper.docx
PPTX
More on Pandas.pptx
PDF
Worksheet - python Pandas numerical py pdf
PPTX
interenship.pptx
PPTX
Meetup Junio Data Analysis with python 2018
PPTX
Python-for-Data-Analysis.pptx
PDF
XII - 2022-23 - IP - RAIPUR (CBSE FINAL EXAM).pdf
PDF
SjwvwkkzjxbebbzbxvbenwnjxbzmznnzmBnskcjnxbsnnnx.pdf
PPTX
Lecture 9.pptx
PPTX
R language introduction
PPTX
Data_Manipulation_with_Pandas that manipulation used
PPTX
Pandas yayyyyyyyyyyyyyyyyyin Python.pptx
PDF
PROG 13-14-15-16.pdf
PPTX
Data Visualization_pandas in hadoop.pptx
PPTX
2. Data Preprocessing with Numpy and Pandas.pptx
InformaticsPractices-MS - Google Docs.pdf
InformaticsPractices-MS.pdfsssssssssssss
Question Paper Code 065 informatic Practice New CBSE - 2021
2023 9b09kvuofjfouijfd8bifjbuiofjdfoivbjdogbj
DataFrame in Python Pandas
information practices cbse based paper.docx
More on Pandas.pptx
Worksheet - python Pandas numerical py pdf
interenship.pptx
Meetup Junio Data Analysis with python 2018
Python-for-Data-Analysis.pptx
XII - 2022-23 - IP - RAIPUR (CBSE FINAL EXAM).pdf
SjwvwkkzjxbebbzbxvbenwnjxbzmznnzmBnskcjnxbsnnnx.pdf
Lecture 9.pptx
R language introduction
Data_Manipulation_with_Pandas that manipulation used
Pandas yayyyyyyyyyyyyyyyyyin Python.pptx
PROG 13-14-15-16.pdf
Data Visualization_pandas in hadoop.pptx
2. Data Preprocessing with Numpy and Pandas.pptx
Ad

More from FarhanAhmade (13)

PPTX
Exploration of Volcanos by using the robots ppt.
PPTX
Highway Wind Turbine Electricity generation PPT.
PDF
Engineering Mathematics for 4th Semester.
PDF
Casio fx-991EX classWiz user manual and commands.
PDF
Discrete mathematical structure complete notes of 3rd semester B.tech.
PDF
Short note on Peripheral devices Operating System.
PDF
All types computer calculations.
PDF
Network Security in brief.
PDF
OSI model networking internet.
PDF
Book referencing single, two, three and multiple authors; Newspaper referenci...
PDF
Report on cloud computing
PPTX
Fire Fighting Robot using arduino UNO PPT
PPTX
Radiation detector arduino UNO PPT
Exploration of Volcanos by using the robots ppt.
Highway Wind Turbine Electricity generation PPT.
Engineering Mathematics for 4th Semester.
Casio fx-991EX classWiz user manual and commands.
Discrete mathematical structure complete notes of 3rd semester B.tech.
Short note on Peripheral devices Operating System.
All types computer calculations.
Network Security in brief.
OSI model networking internet.
Book referencing single, two, three and multiple authors; Newspaper referenci...
Report on cloud computing
Fire Fighting Robot using arduino UNO PPT
Radiation detector arduino UNO PPT

Recently uploaded (20)

PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Lesson notes of climatology university.
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
1_English_Language_Set_2.pdf probationary
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
Empowerment Technology for Senior High School Guide
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
Digestion and Absorption of Carbohydrates, Proteina and Fats
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
LDMMIA Reiki Yoga Finals Review Spring Summer
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Lesson notes of climatology university.
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
1_English_Language_Set_2.pdf probationary
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Empowerment Technology for Senior High School Guide
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Computing-Curriculum for Schools in Ghana
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
SOIL: Factor, Horizon, Process, Classification, Degradation, Conservation
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Digestion and Absorption of Carbohydrates, Proteina and Fats
Supply Chain Operations Speaking Notes -ICLT Program
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Chinmaya Tiranga quiz Grand Finale.pdf
Paper A Mock Exam 9_ Attempt review.pdf.
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...

Informatics Practices (new) solution CBSE 2021, Compartment, improvement examination.

  • 1. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 1 of 13 Q.1. Plagiarism. Q.2. matplotlib. pyplot. Q.3. 3500. Q.4. import pandas as pd x=6 S1=pd.Series(x, index= [1,2,4,6,8,9]) print(S1) Output: - 1 6 2 6 4 6 6 6 8 6 9 6 dtype: int64 Q.5. index. Q.6. Line Chart. Q.7.Bus. Q.8.All of the above. Q.9. Multiple Values. Q.10.Microsoft Edge. Q.11.ORDER BY. Q.12.Open Source.
  • 2. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 2 of 13 Q.13.import pandas as pd I=['Apple','Banana','Mango','Orange','Litchi'] df=pd.DataFrame(I,index= [1,2,3,4,5]) print(df.iloc[1:3]) Output: - 2 Banana 3 Mango Q.14.IT Act (ITA). Q.15.Website, Webpage. Q.16.Blind Carbon Copy (BCC). Q.17.All of the above. Q.18.USE. Q.19.indexof (). Q.20. MAN. Q.21. Extension and Plugin. Q.22. import pandas as pd t={'rollno':[1,2,3,4,5,6], 'Name':['Krishna','Pranshu','Gurusha','Arpit','Rani','Aurobindo'], 'Age':[15,14,14,15,16,15], 'marks':[70.4,60.9,80.3,87.5,67.8,86.0], 'class':['11A','12B','11B','12B','12B','11B']}
  • 3. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 3 of 13 df=pd.DataFrame(t, index=[10,20,30,40,50,60]) print(df) Output: - rollno Name Age marks class 10 1 Krishna 15 70.4 11A 20 2 Pranshu 14 60.9 12B 30 3 Gurusha 14 80.3 11B 40 4 Arpit 15 87.5 12B 50 5 Rani 16 67.8 12B 60 6 Aurobindo 15 86.0 11B 1).Print (df. iloc [1]) 2).Print(df[‘marks’].max ()) 3).df. insert (loc=2, column=’fee’, values=[3200,3400,4500,3100,3200,4000]) 4).df. drop (‘Age’, axis=1, inplace = True) 5).df. rename (columns={‘marks’:’Term1’}, inplace = True) Q.23. click for codes to create table. 1). select * from HOTEL where Location = ‘London’; 2). select Hotel_Id, H_Name, Location, Room_Type, Price, Star from HOTEL where Price > 6000 order by Price; 3). select H_Name from HOTEL where H_Name like “%e”; 4). select count (distinct Room_type) from HOTEL; 5). select H_Name from HOTEL order by H_Name desc;
  • 4. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 4 of 13 Q.24. import pandas as pd h= ['H','a','p','p','y'] s = pd.Series(data=h) print(s[0:3]) Output: - 0 H 1 a 2 p dtype: object Q.25.(A). Erro: SQL is case sensitive language. In given command the starting with uppercase and the continue with lower case cause the error. Solution: select emp_name from emp where comm = NULL; OR SELECT emp_name FROM emp WHERE comm = NULL; In the solution, all the functions are in same case from starting to end except the table date names. (B). No, because WHERE clause specifies search conditions for the rows returned by the Query and limits rows to a specific row-set. If a table has huge number of records and if someone wants to get the particular records then using ‘where’ clause is useful. Whereas GROUP BY clause summaries identical rows into a single/distinct group and returns a single row with the summary for each group, by using appropriate Aggregate function in the SELECT list, like COUNT(), SUM(), MIN(), MAX(), AVG(), etc. Having clause is used to restrict the number of records returned by the Group by clause. Q.26. The count (*) returns all rows whether column contains NULL value or not, while count (<Column Name>) returns the number of rows except NULL valued row / rows. E.g.: - >> create table school (St_name char (25), Class int (3), Attendance int (4));
  • 5. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 5 of 13 >> select count (*) from school where Attendance < 45; It will show all the name and classes which have attendance less than 45. Q.27. import pandas as pd A=pd.Series([2,4,6], index = [0,1,2]) B=pd.Series([1,3,5], index = [1,2,3]) print(A) print(B) 1).S = (A+B) 2).S = (A*B) Q.28. 1).5. 2).Sun Cream 678 Beauty Cream 5400 Beauty Cream 1200 Q.29. (A).1). Substr (“Innovation”,3,4) nova 2). ation (B). 1). 3. 2).1.
  • 6. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 6 of 13 Q.30. import pandas as pd stu = {'Admno':[1001,1002,1003,1004,1005], 'Firstname':['Amit','Rohit','Shyam','Manan','Raman'], 'Lastname':['Sehgal','Malik','Bhatia','Gupta','Bajaj'], 'Age':[18,17,18,16,18], 'Pretest':[87,89,90,79,922], 'Posttest':[67,78,84,69,70]} d=pd.DataFrame(stu) print(d) 1). d.loc[::-1].head() 2). g = {'Admno':1006, 'Firstname':'Sujal', 'Lastname':'Sharma', 'Age':17, 'Pretest':87, 'Posttest':89} d = d.append(g,ignore_index=True) print(d) Q.31. VoIP stands for (Voice Over Internet Protocol) is the technology that converts your voice into a digital signal, allowing you to make a call directly from a computer, VoIP phone, or other data – driven devices. Examples of software / apps are: Skype, IMO, Instagram, Facebook, etc. Q.32.There is main health hazard that can occur due to excessive use of computer / smart phone screes, → Physical health Effects: 1. Eyestrain, 2. Poor Posture, 3. Sleeping Problems, 4. Reduced Physical Activities.
  • 7. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 7 of 13 → Psychological Effects: 1. Isolation, 2. Depression, 3. Irritation, 4. Decrement in creativity thinking skills. Q.33. 1. URL stands for Uniform Resource Locator, 2. It was invented with the development of www by Tim Berners – Lee. 3. A URL is a web address of a given unique resource on the web. 4. It is the mechanism used by browsers to retrieve any published resource on the web. 5. E.g.: - https://www.google.com . (Https://) – Protocol; (www.google.com) – Domain name. Q.34. import pandas as pd S1 = pd.Series(data=[2,3,1]) print(S1) 1). 0 8 1 27 2 1 dtype: int64
  • 8. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 8 of 13 2). 0 6 1 9 2 3 dtype: int64 Q.35. (A). → For copyright: - • It exists, without me doing anything to assert it, from the moment of creation. • Unless explicitly assigned, or surrendered, it persists regardless of license chosen for the software. • It grants the creator very specific legal rights and remedies (although, these may vary by jurisdiction). • Most forms of copyright have a defined duration (usually life + 'n' years). • In an open-source project, every contributor retains copyright in their own contributions. →For the License: - • It is a legal document • I have to explicitly choose, or create, the license. It does not apply automatically. • It grants users of the software specific, and limited, rights. • Unless stated in the License itself, or until it is revoked, it remains enforceable in perpetuity. (B). Intellectual property rights are the rights given to persons over the creations of their minds. They usually give the creator an exclusive right over the use of his/her creation for a certain period of time. The protection of Intellectual Property Rights (IPR) is important for the economy and for its further growth in areas such as research, innovation and employment. Effective IPR enforcement is also essential to health and safety. ... For these reasons, IP rights are worth protecting, both domestically and internationally.
  • 9. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 9 of 13 Q.36. (A).import matplotlib.pyplot as plt import numpy as np plt.plot([1.0,2.0,3.0,4.0,5.0], [12,14,13,14.8,18.9]) plt.xlabel('Tests') plt.ylabel('Marks Secured') plt.show() (B).import matplotlib. pyplot as pl info = ['Gold', 'Silver', 'Bronze', 'Total'] Australia = [80,59,59,198] pl.bar(info,Australia) pl.title("AUSTRIALIA MEDAL PLOT") pl.xlabel("Medals Won by Austraila") pl.ylabel("Marks won") pl.show() *Questions for visually impaired: (A). Data visualization is the graphical representation of information and data. By using visual elements like charts, graphs, and maps, data visualization tools provide an accessible way to see and understand trends, outliers, and patterns in data. In the world of Big Data, data visualization tools and technologies are essential to analyze massive amounts of information and make data-driven decisions. Like matplotlib , Pandas, etc.
  • 10. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 10 of 13 (B).1). Plot (): - The plot () function in pyplot module of matplotlib library is used to make a 2D hexagonal binning plot of points x, y. Parameters: This method accept the following parameters that are described below: x, y: These parameters are the horizontal and vertical coordinates of the data points. x values are optional. 2). Show (): - The show () function in pyplot module of matplotlib library is used to display all figures. 3). Savefig (): - Savefig () As the name suggests Savefig () method is used to save the figure created after plotting data. The figure created can be saved to our local machines by using this method. Q.37. 1). select House, count(House) -> from School -> group by House -> having count(House) >2; 2). select avg (Percentage) from School; 3). select min (Percentage) from School where Class = 10; Q.38.(A).import pandas as pd d = {'country':['Italy', 'Spain','Greece', 'France', 'Portugal'], 'population':[61,46,11,65,10], 'percent':[0.83,0.63,0.15,0.88,0.14]} df1 = pd.DataFrame(d, index=['IT','ES','Gr','Fr','Po']) print(df1) Output: -
  • 11. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 11 of 13 (B). 1).print(df1[df1.columns[0:2]]) 2). print (df1[(df1[“population”]>40)]) 3).df1.drop(df1.tail(2).index, inplace=True) Q.39.(A). 1).select dayname(‘2000-07-05’); 2).select lcase(“e-mail-id”); 3).select length(“King”); 4).select substring (“King”,1,1); 5).select avg (marks) from class; (B). 1).select substring (Itemname,1,3) from ITEM; 2).select monthname (Stockdate) from ITEM; //given date is not correct format to use ‘monthname’ function. You have to change the format in ‘YYYY-MM-DD’ then you will able to get the correct output. 3).select sum (Price) from ITEM;
  • 12. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 12 of 13 4).select avg (Price) from ITEM; 5).select round (Price,2) from ITEM; Q.40. a).Star Topology. b).Administrative Wing (W1), because at W1 all of the record will store and easy to access in all conditions. c). LAN, because it covers up to 10 kms’ of radius. d).As per suggested layout separate repeaters need not to be installed as each building or wing, will be having a hub that acts as repeater. One hub per wing is enough. e).School can use cloud-based applications for sharing any type of data, like: Google drive, One Drive, AWS drive services, etc. to share their files and make it save for future use. *Questions for visually impaired: (a). A network switch connects devices (such as computers, printers, wireless access points) in a network to each other, and allows them to 'talk' by exchanging data packets. Switches can be hardware devices that manage physical networks, as well as software-based virtual devices. (b). Bus Topology and Star Topology. (c). A modulator-demodulator, or simply a modem, is a hardware device that converts data from a digital format, intended for communication directly between devices with specialized wiring, into one suitable for a transmission medium such as telephone lines or radio. (d). A gateway is a network node used in telecommunications that connects two networks with different transmission protocols together. Gateways serve as an entry and
  • 13. Informatics Practices (New) Solution CBSE – 2021 Compt., Improvement Examination Page 13 of 13 exit point for a network as all data must pass through or communicate with the gateway prior to being routed. (e). Voice over Internet Protocol (VoIP), is a technology that allows you to make voice calls using a broadband Internet connection instead of a regular (or analog) phone line.