12 Informatics Practices Sp 01
12 Informatics Practices Sp 01
Maximum Marks: 70
Time Allowed: : 3 hours
General Instructions:
Section A
1. State true or false:
CSV files are quick to create and load into memory before analysis.
a) True
b) False
a) plotlib
b) matplot
c) matplotlib
d) matliplot
3. Which of the following topologies is very efficient and all nodes are connected to a central hub?
a) Ring
b) Tree
c) Bus
d) Star
4. What is the significance of the statement "HAVING COUNT (emp_id)>2" in the following MySQL statement?
SELECT name, COUNT (emp_id),emp_no FROM department GROUP BY name HAVING COUNT (emp_id)>2;
5. With the outset of Covid-19, schools started online classes but due to continuous online classes, students health issues
also started. Health practitioner advised the parents to follow a few health tips. Which of the following health tip should
not be suggested?
a) Microsoft Edge
b) Ubuntu
c) Microsoft Windows
d) Android
7. A website is a collection of
a) All of these
b) Audio and video files
c) HTML documents
d) Graphic files
8. State true or false:
The return value of CONCAT() has the same data type as the argument.
a) True
b) False
9. The first page on the website that allows you to navigate to other pages by menus or links is known as ________.
a) web page
b) Home page
c) primary page
d) front page
10. There is only 1 day left for Ravisha to submit her Science project. Therefore, she performed the following activities to
complete her task. Which of the following activities can be considered as plagiarism?
a) Downloaded the images that were marked as CC and pasted in her project file.
b) Copied the content from some website and pasted in her file.
c) Downloaded and installed the open source software for typing the synopsis.
d) Copied the content from the website and gave references about the same in the project.
a) SELECT
12. Which aggregate function returns the count of all rows in a specified table?
a) SUB
b) COUNT
c) SUM
d) DISTINCT
13. A person who is authorized keep or transfer rights to use/distribute the software is known as ________.
a) Plagiarism
b) Trademark
c) Patent
d) Copyright holder
14. Suhana is down with fever. So, she decided not to go to school tomorrow. Next day, in the evening she called up her
classmate, Shaurya and enquired about the computer class. She also requested him to explain the concept. Shaurya said,
“Mam taught us how to use tuples in python”.
Further, he generously said, “Give me some time, I will email you the material which will help you to understand tuples
in python”. Shaurya quickly downloaded a 2-minute clip from the Internet explaining the concept of tuples in python.
Using video editor, he added the text “Prepared by Shaurya” in the downloaded video clip. Then, he emailed the
modified video clip to Suhana. This act of Shaurya is an example of-
a) Fair use
b) Hacking
c) Cyber crime
d) Copyright infringement
16. All aggregate functions ignore NULLs except for the ________ function.
a) SAME()
b) Average()
c) Distinct
d) Count(*)
18. Assuming the given structure, which command will give us the given output:
Output Required: (3, 4)
a) WHERE
b) Both GROUP BY and WHERE
c) GROUP BY
d) SELECT
21. Assertion (A): Rows and columns in the dataframe can be added/deleted and individual values in the data frame can be
modified.
Reasoning (R): Dataframe is both size mutable and value mutable.
What do you understand by the term VoIP? Give two examples of software/apps based on VoIP.
23. To display the roll number, name and marks of all the students in descending order of their marks and ascending order of
their names.
24. You have a table “Company" having column cno, cname, department and salary. Write SQL statement to display average
salary of each department.
OR
27. Write a program to print the values of 0, 2, 4 positions from Series s[10, 20, 30, 40, 50] using .iloc.
28. Write a python program to create a data frame with headings (CS and IP) from the list given below-
[[79,92][86,96],[85,91],[80,99]]
OR
Section C
OR
A B C
i. Select POW(2,4);
ii. SELECT POW(2,-2);
iii. SELECT POW(-2,3);
OR
Expected number of computers to be installed at various locations in the university are as follows:
Office Block 10
Science Block 140
Commerce Block 30
Kolkata Admission Office 8
i. Suggest the authorities, the cable layout amongst various blocks inside university campus for connecting the
blocks.
ii. Suggest the most suitable place (i.e. block) to house the server for this university with a suitable reason.
iii. Suggest an efficient device form the following to be installed in each of the block to connect all the computers.
a) Modem
b) Switch
c) All of these
d) Gateway
iv. Suggest the most suitable (very high speed) service to provide data connectivity between admission office
located in Kolkata and the campus located in Ana Nagar form the following options:
Telephone line
Fixedline dial-up connection
Co-axial cable network
GSM
Leased line
Satellite connection
OR
ENGINEERING To BUSINESS 60 m
ENGINEERING To MEDIA 50 m
BUSINESS To MEDIA 45 m
BUSINESS 40
MEDIA 10
Mumbai Head Office 20
i. Suggest the most appropriate location of the server inside the Nepal Campus (out of 4 buildings), to get the best
connectivity for maximum number of computers. Justify your answer.
ii. Suggest and draw the cable layout to efficiently connect various buildings within the Nepal Campus for
connecting the computers.
iii. Which hardware device will you suggest to be procured by the company to be installed to protect and control
the Internet uses within the campus.
iv. Which of the following will you suggest to establish the online face-to-face communication between the people
in the ADMIN office of Nepal Campus and Mumbai Head Office?
a) Video Conferencing
b) Cable TV
c) Text Chat
d) E-mail
i. Display 4 characters extracted from 6 th left character onwards from the string 'MYCBSEGUIDE'.
ii. Display the position of occurrence of string 'DELHI' in the string 'WELCOME TO DELHI'.
iii. Round off the value 25.613 to two decimal place.
iv. Display the remainder of 123 divided by 13.
v. Remove all the expected leading and trailing spaces from a column salary of the table 'EMPLOYEES'.
36. a. Write a program in Python Pandas to create the following DataFrame "population" from a Dictionary:
country population percent
IT Italy 61 0⋅ 83
ES Spain 46 0⋅ 63
GR Greece 11 0⋅ 15
FR France 65 0⋅ 88
PO Portugal 10 0⋅ 14
b. Perform the following operations on the DataFrame:
i. Display the columns country and population.
ii. Display all the rows where population is more than 40.
iii. Delete the last 2 rows.
37. Write a Python code to draw the following bar graph representing the average marks secured by each student in Term-2
Exam. Add the Title and Label for X-axis and Y-axis. Use the following data to draw the graph:
Yugesh 92
Vishesh 45
Rakesh 72
OR
Consider the following population data of Males and Females. for which we want to show the stacked bar plot. Write a
code to plot a bar chart to depict the same.
Area M 30 19 49
Area B 12 15 27
Area N 8 7 15
To practice more questions & prepare well for exams, download myCBSEguide.com App. It provides complete study
material for CBSE, NCERT, JEE (main), NEET-UG and NDA exams. Teachers can use Examin8.com App to create
similar papers with their own name and logo.
Solution
Section A
1. (a) True
Explanation:
True
2. (c) matplotlib
Explanation:
matplotlib
3. (d) Star
Explanation:
Star
4. (b) Both filter out all rows whose total emp_id below 2 and selecting those rows whose total emp_id>2
Explanation:
Both filter out all rows whose total emp_id below 2 and selecting those rows whose total emp_id>2
5. (b) To protect the eyes the gadgets should be placed above eye level.
Explanation:
To protect the eyes the gadgets should be placed above eye level.
Microsoft Edge
HTML documents
8. (b) False
Explanation:
False
Home page
Downloaded the images that were marked as CC and pasted in her project file.
WHERE
COUNT
Copyright holder
Copyright infringement
Distinct
Spyware
print(df.shape)
GROUP BY
21. (a) Both A and R are true and R is the correct explanation of A.
Explanation:
Section B
22. Web server is a computer with an Internet connection on which a website is hosted.
OR
VoIP stands for Voice over Internet Protocol. It refers to technology that enables voice communication over the internet.
Two examples of VoIP software/apps are Skype and Zoom.
25. 5.3
OR
Result: '2020-04-06'
DATE(): Extracts the date part of a date or datetime expression.
26. A firewall can either be software-based or hardware-based and is used to keep a network secure. Its primary objective is
to control the incoming and outgoing network traffic by analyzing the data packets and determining whether it should be
allowed through or not, based on a predetermined rule set.
28. l=[[10,20],[20,30],[30,40]]
df=pd.DataFrame(l, columns=['CS','IP'])
print(df)
OR
import pandas as pd
s=pd.Series()
Section C
29. i. The NOW() function returns the system date and time.
ii. 0 parameters
iii. "YYYY-MM-DD HH : MM : SS".
30. a. SELECT LENGTH("GOOD LUCK");
The LENGTH() returns the number of characters in the given string.
The input string is "GOOD LUCK", which has 9 characters.
So, the output will be 9.
b. SELECT POWER(3, 3);
The POWER() calculates the result of raising a number to a specified power.
We calculate (3**3), which is 27.
The output will be 27.
c. SELECT UPPER("examination");
The UPPER() converts the given string to uppercase.
The input string is "examination".
The output will be "EXAMINATION".
OR
31. i. A B
ii. A 330
B 550
C 610
32. i. Result:16
ii. Result: 0.25
OR
33. i. print(df[df.population>=20])
ii. df[:]=0
iii. print(df.iloc[::-1)
34. i.
ii. The most suitable place to house the server is Science Block as it has maximum number of computers. Thus,
reducing the cabling cost and increases efficiency of network.
Switch is the device to be installed in each of the blocks to connect all the computers.
OR
i. ADMIN is the most appropriate location of the Nepal Campus because it has maximum number of computers.
ii.
Video Conferencing
Section E
35. i. select mid('MYCBSEGUIDE',6,4);
ii. select INSTR('WELCOME TO DELHI',DELHI);
iii. select round(25.613,2);
iv. select mod(123,13);
v. select trim(salary) from employees;
data = {
population = pd.DataFrame(data)
print(population)
print(population[['country', 'population']])
population.drop(population.tail(2).index, inplace=True)
print(population)
37. Python code to draw the given bar graph representing the average marks secured by each student in Term-2 Exam.
OR
To practice more questions & prepare well for exams, download myCBSEguide.com App. It provides complete study
material for CBSE, NCERT, JEE (main), NEET-UG and NDA exams. Teachers can use Examin8.com App to create
similar papers with their own name and logo.