Informatics Practices-Sahodaya QP New

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

SAHODAYA MODEL QUESTION PAPER

CLASS XII
INFORMATICS PRACTICES (065)

Class: XII Time: 3Hr

Marks: 70

General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is given in Q34
and Q35 against part iii only.
8. All programming questions are to be answered using Python Language only.

SECTION A
1. In which topology are all the nodes connected through a single Coaxial cable? 1

i. Star

ii. Tree

iii. Bus

iv. Ring

2. Gaining unauthorised access to a network or computer or digital files with


malicious intentions, is called _____. 1

i. Cracking

ii. Hacking

iii. Banging
iv. Phishing

3. Code of the software will be protected by --------------- 1

i. Property rights

ii.Patent

iii.Registered trademark

iv. Copyright

4. What is the use of “HAVING” clause in MySQL? 1

i.To filter out row values

ii.To filter out column values

iii.To filter out the row and column values

iv.None of the above

5. The contents of prod ID and price columns of a table “PRODUCT” are given

below,what will be the output after the execution of the given query? 1

SELECT AVG (price) FROM PRODUCT;


prodI price
D

P01 3500

P02 2000

P03 NULL

P04 3500

i.2250

ii.3000

iii.1800

iv.2000
6. --------------- is the plug-in device used in networking and telecommunication
applications. 1

i.RJ-45

ii.Hub

iii.Switch

iv.Router

7. Identify the output of the following SQL query: 1

SELECT RIGHT (‘Application’, 2);

i.ion

ii.on

iii.Ap

iv.App

8. Select the function which is not the Scalar Function(s)? 1

i.UCASE()

ii.LEN()

iii.SUM()

iv.NOW()

9. Which module of matplotlib library is required for plotting of graph? 1

i. Plot

ii.matplot

iii. pyplot

iv. graphics
10. To display fourth element of a Series object S1, you will write---------- 1

i.S1[:3]

ii.S1[4]

iii.S1[:4]

iv.S1[3]

11. Which of the following function is used to import a DataFrame from csv file?

i.read_csv() 1

ii.import_csv()

iii.to_csv()

iv.export_csv()

12. Amongst which of the following is a correct syntax for panda's dataframe? 1

i.Pandas.DataFrame(data, index, dtype, copy)

ii.pandas.DataFrame(data, index, columns, dtype, copy)

iii.pandas.DataFrame(data, index, dtype, copy)

iv.pandas.DataFrame(data, index, rows, dtype, copy)

13. Which of the following is open-source software? 1

i.Microsoft Windows

ii.Adobe Photoshop

iii.MySQL

iv. MS PowerPoint
14. In SQL, which function returns the day of the month of a given date? 1

i. DAYNAME ()

ii.MONTHNAME ()

iii.DAY ()

iv.MONTH()

15. It is a cluster of related pages addressed to a typical URL. 1

i.Static webpage

ii.Website

iii.Web Server

iv.Dynamic webpage

16. The digital footprint can be saved in which of the following locations? 1

i.Download folder

ii.User account

iii.Browser settings and web server

iv.Google Drive

Q17 and 18 are ASSERTION AND REASONING based questions. Mark the
correct choice as:

i. Both A and R are true and R is the correct explanation for A

ii. Both A and R are true and R is not the correct explanation for A

iii. A is True but R is False

iv. A is False but R is True

17. Assertion(A):Social media are websites or applications that enable their users to
participate in social networking but they cannot create and share content with

others in the community. 1

Reason (R): We should not waste precious time in responding to unnecessary

emails or comments unless they have some relevance for us.

18. Assertion (A): Indexing can also be known as sub selection. 1

Reason(R):Pandas DataFrame.loc attribute access a group of rows and columns

by labels or a Boolean array in the given DataFrame.

SECTION B
19. Why is domain name address used in place of IP address of the server to

access any web site? 2

OR

What are the facilities provided by the server in a network environment?

20. Ms.Radhika is working in a school, she wants to group the result set based on

some column’s value. Also, the grouped result should appear in a sorted order.

In which orders she will write the two clauses? Give example to support her? 2

21. Find the output of the following SQL queries: 2

SELECT MOD (ROUND (56.25,-1),3);

SELECT MID (‘Organisation’, 4, 2);

22. Consider the following Series object, department 2

ACCOUNTS 6000
MARKETING 4000
PERSONNEL 5000

i.Write the command which will display the name of the department having
salary>5000.

ii. Write the command to increase the amount by 1000.

23. Mr.Raj recently sorted old and damaged items in his house. He gave away

many items for recycling but he did not know how to get rid of the electronic

items. Suggest some ways to manage e-waste effectively? 2

OR

List any two net etiquettes related to use of internet technology.

24. What will be the output of the following code? 2

import pandas as pd

S1 = pd.Series([2, 4, 8, 10])

S2 = pd.Series([1, 3, 7, 10])

print("Compare the elements of the Series:")

print("Equals:")

print(S1 = = S2)

25. Mr.Akshay is working in an organisation as a programmer. He has provided

some data in dataframe. Help him to perform some operations in DataFrame.

The DataFrame data is given below: 2

0 1 2 3

0 5 4 3.0 3.0

1 1 6 NaN NaN
2 3 1 7.0 NaN

3 8 7 9.0 2.0

i.Write the command to replace the missing values in columns 2 and 3 with

-6 and 8.

ii.What is the shape of the dataframe data.

SECTION C
26. What will be the output of the following queries on the basis of LOAN table?

CNO C_NAME PHNO LOANAMT BANK


454578 Mr.Rishi 9876435444 100000 HDFC
895765 Mrs.Swapna 8654657678 150000 IDBI
567843 Mr.Naveen 9746523308 NULL HDFC
276073 Ms.Puja 8741120078 500000 IDBI
675656 Mr.Anand 9835665777 200000 CANARA

i. SELECT BANK, COUNT (*) FROM LOAN GROUP BY BANK


HAVING COUNT (*)>1;

ii. SELECT UCASE (LEFT (C_NAME, 2)), LCASE RIGHT (C_NAME,2))


FROM LOAN WHERE BANK=’HDFC’ ;

iii. SELECT LENGTH (C_NAME) FROM LOAN;

27. Consider a series object AMT that stores the number of employees in each

section of production as shown below. First two sections have been given the

amount for charity Rs.500/-. Write code to create the series and display how
much section A and B have collected. 3

A 75

B 100

C 70

D 65

28. Mr.Jaspreet created a DataFrame Games as shown below: 3

Gcode Gname Prizemoney


101 Chess 2000
102 Badminton 2500
103 Cricket 7000
104 Football 7500

Write suitable Python statements for the following:

i. He wants to change the column ‘Gname’ to ‘Gamesname’ .

ii.To delete the second and third index rows in the DataFrame Games.

iii. He wants to set all the values to zero in DataFrame Games.

29. What do you mean by intellectual property? Explain the need of protecting

intellectual property right? 3

OR

Explain the different types of Software License.

30. Consider the table APPLIANCE given below. Write suitable SQL queries for
the following: 3

ICODE INAME COMPANY CNAME PRICE DISCOUNT DOP


S001 Refrigerator LG Satish 50000 15 2020-10-16
S002 Mobile APPLE Manoj 60000 20 2022-04-10
Phone
S003 LCD SAMSUNG Subodh 40000 10 2020-10-09
S004 Washing SAMSUNG Jacob 25000 15 2020-03-13
Machine
S005 Air LG Jerry 35000 11 2021-05-18
conditioner

i. Display the total price and count of appliances for each company.

ii. Display the item name and customer name of items whose price is greater
than 35000.

iii. Display the year for the date of purchase of all appliances without
duplication.

SECTION D
31. Write suitable SQL function for the following: 5

i. To display the date of today.

ii. To return the number of rows found in a set.

iii. To return the name of week day for a date.

iv. To compute the remainder of division between numbers m and n.

v.To remove space from the beginning and end of a string, “ Executives “.

OR

Consider the following table STOCK and answer the given questions:

Table: STOCK

S_ID StName Category Price Date

P01 Dot Pen ABC 12.50 2012-06-21


L02 Pencil XYZ 10.00 2020-05-20
R05 Eraser XYZ 5.50 2003-03-21
L01 Pencil CAM 15.75 2012-06-21
P02 Gel Pen ABC 30.00 2020-06-22

i.Display the stock name and price after rounding off to zero decimal

places.

ii. Display the occurrence of ‘en’ in stock name.

iii. Display the first four characters of the stock name.

iv. Find the total number of price by date and show only date with a total
number of prices above 15.

v. Display the stock name and price of stock in each item.

32. “Imperial College” has its main campus in London and their branches are
situated in the township. The buildings at these places are shown in the diagram.

Main Campus

City Branch
Admin

Arts Science

Distances between the blocks are given below:

Admin to Arts 75m


Admin to Science 80m
Science to Arts 70m
Township to main 9Km
campus
Numbers of computers in these blocks given are as

Admin 150

Science 100

Arts 75

City branch 50

i. Name the device that will be required to protect the network from unwanted and
unauthorized accesses from outside the network.

ii. Suggest the placement of the following devices with justification if the company
wants minimized network traffic.

*Repeater

*Hub/Switch

iii. Suggest the topology and draw the cable layout for main campus?

iv. Suggest most reliable and low maintenance connection for the campus with its
city branch in township.

v. Which block will be appropriate for server in the main campus, give reason.

33. Write Python code to plot a bar chart survey to find which kind of movie the
people liked best as shown below: 5
Favourite Type of Movie
7

4
Rating 3

0
Comedy Action Romance Drama SciFi
Type

Also give suitable python statement to save this chart.

OR

Write a python program to plot a line chart based on the given data to depict the

changing score tally between four football teams.

Team = [‘Brazil’,’Argentina’,’England’,’Germany’]

Score = [3, 2, 4, 2]

SECTION E
34. Consider the table AGENTS given below and answer the following questions:

1+1+2
AG_CODE AG_NAME WRKG_AREA LOCID COMM PHNO
A007 Ramasundar Bangalore B100 45.25 077-
25814763
A008 Nishant Chennai C200 20 044-65767568

A009 Anand Mumbai M300 10.25 022-54365657

A010 Ahmed Khan Chennai C200 25.20 044-42534667

A011 Saroj Bangalore B100 30 077-25577889

i. Display all the records in descending order of working area.

ii. To display the number of agents in the different areas.

iii. Display the agent name and phone number in the Chennai area.

OR

To display agent name and commission wise highest commission of the agent as
per locid from the table agents.

35. Mr. William created the following DataFrame Sales _data. He wants to do
some operations in the dataframe. 2+1+1

Name Region Sales Expenses


0 Naveen East 50000 42000
1 Rahana North 52000 43000
2 Rajeev East 90000 50000
3 Rahul South 34000 44000

i.Write a Pandas program to create and display a DataFrame from a specified


dictionary data which has the index labels.

ii.Code to add new Salesperson details.

(‘Rohini’,’South’, 28000, 35000)

iii.Display all the details of column Name and Region.


OR

Write a command to give the following output.

Region Sales

0 East 50000

1 North 52000

You might also like