0% found this document useful (0 votes)
15 views

XII_IP_Model_1

This document is an examination paper for Class XII Informatics Practices, consisting of 37 questions divided into five sections with varying marks. The exam covers topics such as Python programming, SQL queries, and data handling with Pandas. Students are required to answer all questions, with specific instructions for programming and multiple-choice questions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

XII_IP_Model_1

This document is an examination paper for Class XII Informatics Practices, consisting of 37 questions divided into five sections with varying marks. The exam covers topics such as Python programming, SQL queries, and data handling with Pandas. Students are required to answer all questions, with specific instructions for programming and multiple-choice questions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

CHINMAYA VIDYALAYA, CMECT – GC

FIRST MODEL EXAMINATION, 2024 - 25


INFORMATICS PRACTICES (065)
Class : XII Marks : 70
Time: 3 Hrs

General Instructions:

* Please check this question paper contains 37 questions.


* All questions are compulsory. However, internal choices have been provided
in some questions. Attempt only one of the choices in such questions
* The paper is divided into 5 Sections- A, B, C, D and E.
* Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
* Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
* Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
* Section D consists of 2 case study type questions (33 to 34). Each question
carries 4 Marks.
* Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
* All programming questions are to be answered using Python Language only.
* In case of MCQ, text of the correct answer should also be written.

Section -A (21 X 1 = 21 Marks )

1 State whether the following statement is True or False: 1

CSV stands for common separated values


2 1
What will be the output of the MySQL command:
Select round(2356.98,-2);
(a) 2300 (b) 2350 (c) 2000 (d) 2400

3 Which protocol is used for sending messages 1

(a) PPP (b)SMTP (c)POP3 (d)VoIP

4 Which of the following function returns an integer that indicates 1


the position of the first occurrence of the sub-string within the
string?
(a) RTRIM( ) (b) INSTR( ) (c) LENGTH() (d) TRIM( )

1
5 1
A branch of science that deals with designing or arranging
workplaces including furniture, equipment and systems so it
becomes safe and comfortable for the user is
(a)Ergonomics (b)Economics
(c)Ergomology (d)Euphonic
6 Which attribute is used to get the number of elements in a 1
dataframe?
(a) size (b) shape (c) values (d) ndim

7 Which of the following is not a valid plotting function of pyplot 1


(a) hist() (b) plot() (c) bar() (d) line()

8 State whether the following statement is True or False: 1

In SQL, the Distinct clause is used to apply filter on groups formed


by the GROUP BY clause
9 To create an empty series object you can use: 1

(a) pd.Series(empty) (b) pd.Series(np.NaN)


(c) pd.Series() (d) pd.series()

10 _____ is an activity where fake websites or emails that look 1


original or authentic are presented to the user.

(a) Phishing ( b)Hacking ( c) Spamming (d) Identity theft

11 Which of the following is not an aggregate function? 1


(a) pow() (b) min() (c) max() (d) sum()
12 Which argument must be set with plotting functions for legend() to 1
display legends

(a)data (b)label (c)name (d)title


13 Which of the following Python statements is used to import data from 1
a CSV file into a Pandas DataFrame
(a) pd.open_csv('A.csv')
(b) pd.to_csv(‘A.csv’)
(c) pd.read_csv('A.csv’)
(d) pd.import_csv('A.csv')

2
14 Which of the IPR is granted automatically to the creators? 1
(a)trademark (b) copyright (c)patent (d) all of the above

15 In Python Pandas, while performing mathematical operations on 1


series, index matching is implemented and all missing values are
filled in with _____by default.
(a) Null (b) Blank (c) NaN (d) Zero
16 Choose the correct MySQL query to convert and display string 1
‘Large’ into uppercase.
(a)Select uppercase(Large); (b) Select ucase(“Large”);
(c) Select upper(Large); (d) Select U(Large);

17 Which of the following command will show the last 3 rows from a 1
Pandas Series named S?
(a) S. tail( ) (b) S. tail(3)
(c ) S.TAIL(3) (d) S. Tail(3)
18 For how long does a patent typically protect an invention? 1
(a) 15 years (b) 5 years (c) 10 years (d) 20 years
19 1
Which of the following activities is an example of leaving Active
digital footprints?
(a)Surfing internet (b)Visiting a website
(c)Sending an email to a friend (d)Use a mobile app

Q20 and 21 are ASSERTION AND REASONING based


questions. Mark the correct choice as
(a)Both A and R are true and R is the correct explanation for A
(b)Both A and R are true and R is not correct explanation for A
(c)A is True but R is False
(d)A is false but R is True
20 Assertion (A) : Social media are websites or applications that 1
enable their users to participate in social networking but they cannot
create and share content with others in the community.

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


unnecessary emails or comments unless they have some relevance .

3
21 Assertion(A): A Series is a one-dimensional array containing a 1
sequence of values of any datatype (int,float, list, string)

Reason(R): Pandas Series can be imagined as a column in a


spreadsheet.

Section B (7 X 2 = 14 Marks)
22 Write a program in python to create a series friend as shown 2
below:
Arun 40
Beena 50
Tom 21
OR
What is a dataframe in Pandas? Give suitable example
23 Mention any 4 habits that are not considered as netiquette. 2

24 Sanya is using a table Student. It has the following columns 2

Admno, Name, Agg, Stream


[Column Agg contain Aggregate marks].
She wants to display the highest Agg obtained in each
Stream. She wrote the following statement:

SELECT Stream, Max(Agg) FROM Student;

But she did not get the desired result. Rewrite the above query with
necessary changes to get the desired output. Also write the query to
display the number of students in each stream
25 Differentiate between the following: 2

static and dynamic web page


OR
website and webpage
26 Differentiate between where clause and having clause with example. 2

27 List out and explain 4 health concerns which can happen with 2
digital device addiction.

4
28 What will be the output of the following command: 2
import pandas as pd
s1 = pd.Series([1,2,3], ["a","b","c"])
s2=pd.Series([10,20,30], ["aa","b","c"])
print(s1+s2)
OR

Name the attribute of Dataframe df that would:


a)Return the number of rows and columns in a dataframe.
b)Display the column labels

Section C (4 X 3 = 12 Marks)
29 3
Write three measures to recycle your e-waste.

30 Write a program to create the following DataFrame h_p using a list 3


of dictionaries.
HOUSE POINTS
0 VINDHYA 10
1 SATPURA 15
2 SHIVALIK 12
3 ARAVALI 30

OR
Write a Program to create a Pandas Series as shown below using a
dictionary.

Kerala Palakkad
Tamilnadu Coimbatore
Karnataka Bangalore
31 a)Write an SQL statement to create a table named Employee, with the 2+1
following specifications:

Column Name Data Type Key


EmpID Numeric Primary Key
Name Varchar(20)
Salary Integer
DateOfBirth Date
Commision Float(10,2)
b)Write SQL Query to insert the following data in the Table
1101, Thomas,60000, 2002-08-28, 750.50

5
32 3

Write outputs for SQL queries (i) to (iii) which are based on the
given table vehicle:

V_NO TYPE COMPANY PRICE QTY


WR1 WAGONR MARUTI 5000 25
J001 JEEP MAHINDRA 4000 25
S009 SUMO MAHINDRA 40000 18
M092 ALTO MARUTI 2000 15

(a) select sum (Qty),company from vehicle group by company;

(b) select round(qty/2) from vehicle;

(c) select distinct company from vehicle ;

OR

Consider the table Customer given below and write SQL


commands :

CustID Name Country Emailid Orderdate


C1001 Rajat India [email protected] 2022-12-22
C1002 Michael Denmark [email protected] 2023-11-15
C1003 Riyo Thailand [email protected] 2022-05-06
C1004 Jennifer S. Korea [email protected] 2022-08-07
C1005 Sudha India [email protected] 2023-01-01
C1006 Vivek Nepal [email protected] 2023-04-14

(a) Display the details of all customers who have placed the
order in the year 2023.

(b) Count the total number of customers from India.

(c) Display the last 9 characters of the email id of all


customers of Denmark.

6
Section D (2 X 4 = 8 Marks)
33 Write Python code to plot a bar chart for India’s medal tally as shown 4
below:

Also give suitable python statement to save this chart.

34 Consider the following table TEACHER. Write SQL commands 4


for the following statements

(a) Display subject wise highest experience.


(b) Display category wise lowest experience.
(c) Display total number of PGT and TGT teachers
(d) List the first 3 characters of the names of Physics
teachers

7
OR
Write outputs for SQL queries (a) to (d) which are based on the
given table CLUB:

SNo Activity Fee Days

1 Swimming 10000 M, W
2 Singing 8000 Th, S
3 Dance 12000 M, W
4 Drawing 7000 T, Th
5 Craft NULL F, S
6 Cooking 9000 T, F

(a)SELECT COUNT(*) FROM CLUB;


(b) SELECT SUM(Fee) FROM CLUB;
(c) SELECT LEFT(Activity,2) FROM CLUB WHERE
Days='M,W';
(d) SELECT AVG(Fee) from CLUB ;

Section E (3 X 5 = 15 Marks)
35 WEDGE company is working in 4 blocks- A, B, C and D. 5
Following table shows the distance between blocks and the
number of computers in each of the blocks. The company is
planning to form a network of these blocks.

8
(a) Suggest a cable layout of connections between the blocks.

(b) Suggest the most suitable place (i.e. block) to house the
server of this organisation with a suitable reason.

(c) Suggest the placement of the following devices with


justification
i)Repeater
ii)Hub/Switch

(d) The organization is planning to link its front office situated


in the city in a hilly region where cable connection is not
feasible, suggest an economic way to connect it with
reasonably high speed?

(e) The organisation is planning to link its sale counter situated


in various parts of the same city, which type of network out
of LAN, MAN or WAN will be formed? Justify your
answer
36 Consider the dataframe company and answer the questions 5

L&T TCS WIPRO INFOSIS


QTR1 80 88 66 74
QTR2 98 67 75 98
QTR3 77 93 89 92
QTR4 65 50 40 80

(a) Write python code to display the profit rate of all quarters
of Infosys company.

(b) Write python code to display the profit rate of Qtr3 of all
companies

(c) Write the output of the python code


print(company.iloc[2:,2:])

(d) Print the first 2 rows of the dataframe (using loc)

(e) Rename the column INFOSIS to COGNIZANT

9
37 Write suitable SQL query for the following: 5

(a) Display the current date on your system.


(b) Display the position of occurrence of string ‘‘OR’’ in the
string “CORPORATE LAWYER’’.
(c) Compute 43.
(d) Display four characters from string “CORPORATE ”
starting from second character.
(e) Display the first 5 characters from the string “MODEL
EXAMINATION”.

OR

(a) Display Salesman, customer name and city where the


salesperson and customer belongs to same city.
(b) Show salesman id, commission, customer name of those
grades where grade exists between 200 and 300
(c) Print the City, Salesman name of all salesperson(s) and their
respective the customer(s).
(d) List the average grade , city wise
(e) Display the different cities from the Salesman table

10

You might also like