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

cbleippu02

Uploaded by

suresh
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)
80 views

cbleippu02

Uploaded by

suresh
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/ 8

CBSC 12th Informatics Practices Sample Paper 02 Page 1

Sample Paper 02
INFORMATICS PRACTICES (065)
CLASS XII 2024-25
Time: 3 Hours Max. Marks: 70
General Instructions:
1. Please check this question paper contains 37 questions.
2. All questions are compulsory. However, internal choices have been provided in some questions. Attempt
only one of the choices in such questions
3. The paper is divided into 5 Sections- A, B, C, D and E.
4. Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
5. Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
6. Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
7. Section D consists of 2 case study type questions (33 to 34). Each question carries 4 Marks.
8. Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
9. All programming questions are to be answered using Python Language only.
10. In case of MCQ, text of the correct answer should also be written.

SECTION - A
1. State whether the following statement is True or False: The `.tail()` method in Pandas retrieves the last
few rows of a DataFrame.

2. The term plagiarism is not related to _____.


(a) illegal software copy (b) illegal use of patents
(c) stealing others E-mail password (d) None of these

3. _____ is a set of moral principles that governs the behaviour of a group or an individual and regulates
the use of computers.
(a) Copyright (b) Computer ethics
(c) Property rights (d) Privacy law

4. The columns of DataFrame can be


(a) heterogeneous (b) homogeneous
(c) Both (a) and (b) (d) None of these

5. The term e-Waste can also be called as _____.


(a) WEEE (b) WEST
(c) WET (d) None of these

6. Code of the software will be protected by


(a) copyright (b) patent
(c) registered trademark (d) None of these

Install NODIA App to See the Solutions.


Click Here To Install
Page 2 Sample Paper 02 NODIA

7. Which of the following is not an aggregate function?


(a) AVG() (b) ADD()
(c) MAX() (d) COUNT()

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


The `LIKE` operator in SQL can be used only with numeric data types.

9. Pandas is a _____.
(a) package (b) language
(c) library (d) software

10. The module that is required to create a Series is


(a) matplotlib (b) pyplot
(c) pandas (d) random

11. With the Internet help we can do _____.


(a) Exchange information with friends and colleagues.
(b) Access pictures, sounds, video clips and other media elements.
(c) Find diverse perspective on issues from a global audience.
(d) Exchange information, access pictures, find diverse perspective on issue from a global audience.

12. Which of the following is a valid SQL statement?


(a) SELECT MIN(pub_date) FROM books GROUP BY category HAVING pub_id = 4;
(b) SELECT MIN(pub_date) FROM books ORDER BY category = ‘COOKING’;
(c) SELECT COUNT(*) FROM orders WHERE customer# = 1005;
(d) SELECT MAX(COUNT(customer#)) FROM orders GROUP BY customer#;

13. Home page helps viewers to find out what they can find on the particular site. Home page is the _____.
(a) first page of a website (c) about page
(b) index page (d) None of these

14. Which of the following is an open source license?


(a) GNU (b) BSD
(c) Apache (d) All of these

15. What is the meaning of “GROUP BY” clause in MySQL?


(a) Group data by column values (b) Group data by row values
(c) Group data by column and row values (d) None of these

Continue on next page.....

Install NODIA App to See the Solutions.


Click Here To Install
CBSC 12th Informatics Practices Sample Paper 02 Page 3

16. Match the following SQL functions with their purposes:

SQL Funtion Description


P DISTINCT 1. Groups rows based on a specific condition
Q LIMIT 2. Restricts the result to a certain number of rows..
R ORDER BY 3. Removes duplicate rows in the result.
S GROUP BY 4. Sorts the rows in ascending or descending order.
(a) P-3, Q-2, R-4, S-1 (b) P-2, Q-3, R-1, S-4
(c) P-4, Q-3, R-2, S-1 (d) P-2, Q-3, R-1, S-4

17. Find odd one out.


(a) GROUP BY (b) DESC
(c) ASC (d) ORDER BY

18. If emp_id contain the following set {9, 7, 6, 4, 3, 1, 2}, what will be the output on execution of the following
MySQL statement?
SELECT emp_id
FROM person ORDER BY emp_id;
(a) {1, 2, 3, 4, 6, 7, 9} (b) {2, 1, 4, 3, 7, 9, 6}
(c) {9, 7, 6, 4, 3, 1, 2} (d) None of these

19. Identify the correct INSERT queries from the following :


(a) INSERT INTO Persons(‘xxx1’, ‘yyy1’);
(b) INSERT INTO Persons (LastName, FirstName) Value (‘xxx’, ‘yyy’);
(c) INSERT INTO Persons Values (‘xxx1’, ‘yyy1’);
(d) INSERT INTO Persons Value (‘xxx1’, ‘yyy1’);

Directions (Q.Nos. 20-21) Assertion and Reason based Questions.

20. Assertion (A) : The name Bluetooth is derived from Harald Bluetooth, a king in Denmark.
Reason (R) : Bluetooth is used for exchanging data over a short distance from fixed and mobile devices.
(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 the correct explanation for A.
(c) A is true but R is false.
(d) A is false and R is true.

21. Assertion (A) : Pandas is an open-source Python library which offers high performance, easy to use data
structures and data analysis tools.
Reason (R) : Professionals and developers are using the Pandas library in data science and machine learning.
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.

Install NODIA App to See the Solutions.


Click Here To Install
Page 4 Sample Paper 02 NODIA

SECTION B
22. What are some factors that have contributed to the rise of cyber crimes?

23. What is the purpose of ORDER BY clause in SQL? Explain with the help of suitable example.

24. Carefully observe the following code:


import pandas as pd
One={‘P’:5000,‘Q’:8000,‘R’:12000,
‘S’: 18000}
Two={‘A’:13000, ‘B’:14000, ‘C’:12000}
totSales={1:One, 2:Two}
df=pd.DataFrame(totSales)
print(df)
Answer the following:
(i) List the index of the DataFrame df
(ii) List the column names of DataFrame df.

25. List some benefits of networking. Name any two components required for networking.
 o
Give an example of each static web page and dynamic web page.

26. The Python code written below has syntactical errors. Rewrite the correct code and underline the corrections
made.
Import pandas as pd
Emp = {‘a’ : 10000, ‘b’ : 15000,
‘c’ : 12000}
Sr = pd.Series(Emp)
Print(sr)

27. A character expression name contains ‘try yourself’. Write a command to pick the following set of characters
from it.
(i) First 3 characters
(ii) From 3rd to 7th character

28. Complete the given Python code to get the required output as: 16
import _____ as np
data = [1, 4, 9, 16]
series_data = np._____(data)
print(series_data[______])

Continue on next page.....

Install NODIA App to See the Solutions.


Click Here To Install
CBSC 12th Informatics Practices Sample Paper 02 Page 5

SECTION C
29. Consider the table EXAM given below. Write the queries for (i) to (iii).

Table : EXAM
S No Name Stip-end Subject Average Division
1 Karan 400 English 68 Ist
2 Aman 680 Mathematics 72 Ist
3 Javed 500 Accounts 67 Ist
4 Bishakh 200 Informatics 55 IInd
5 Sugandha 400 History 35 IIIrd
6 Suparna 550 Geography 45 IIIrd
(i) To list the names of those students, who have obtained division as Ist in ascending order of Name.
(ii) To count the number of students, who have either Accounts or Informatics as Subject.
(iii) To display a report listing Name, Subject and annual Stipend received assuming that the Stipend
column has monthly stipend.
 o
Reena is working with functions of MySQL.
Explain her following
(i) What is the purpose of NOW( ) function?
(ii) How many parameters does it accept?
(iii) What is the general format of its return type?

30. Given a DataFrame df as shown below

A B C
0 21 12 69
1 45 45 84
2 23 86 70
3 17 33 78
What will be the result of the following code statements?
(i) df[‘D’] = np.NaN
(ii) df[‘D’] = [23, 41, 32]
(iii) df[‘D’] = [23, 41, 32, 9]

31. Give the output of following commands.


(i) mysql>SELECT TRUNCATE (200.91,
1);
(ii) mysql>SELECT LEFT (‘Swati’, 4);
(iii) mysql>SELECT LENGTH
(“Information”);


Continue on next page.....

Install NODIA App to See the Solutions.


Click Here To Install
Page 6 Sample Paper 02 NODIA

32. Rahul has recently shifted to a new college and hostel. He does not know many people in his new college
and hostel. But all of a sudden, someone is posting negative, demeaning comments on his social networking
profile etc.
He is also getting repeated mails from unknown people. Every time he goes online, he finds someone chasing
him online.
(i) What is this happening to Rahul?
(ii) What immediate action should he take to handle it?
(iii) Is there any law in India to handle such issues? Discuss briefly.
 o
What is software licensing ? Name two types of software licensing with an example of each.

SECTION D
33. Mr. Ankit is working in an organisation as data analyst. He uses Python Pandas and Matplotlib for the
same. He got a dataset of the passengers for the year 2010 to 2012 for January, March and December. His
manager wants certain information from him, but he is facing some problems.
Help him by answering few questions given below:

Year Month Passengers


0 2010 Jan 25
1 2010 Mar 50
2 2012 Jan 35
3 2010 Dec 55
4 2012 Dec 65
(i) What will be the output of the following statements?
(a) df.shape( )
(b) df.index=[“AirIndia”, “Indi go”, “Spicejet”, “Jet”, “Emirates”]
(ii) Write the code to get the following output:

Month Passengers
0 Jan 25
2 Jan 35
(iii) Predict the output of print (df[1 : 3])
 (Option for part (iii) only)
o
Suppose a DataFrame df contains information about student having columns rollno, name, class and
section. Write the code to transpose DataFrame.

34. Tejasvi Sethi, a car dealer has stored the details of all cars in her showroom in a table CARMARKET. The
table CARMARKET has attributes CARCODE which is a primary key, CARNAME, COMPANY COLOR,
COST (in lakh) of the car and DOM which is the Date of Manufacture of the car.

Table : CARMARKET
CARC-ODE CARNAME COMPANY COLOR COST DOM

Install NODIA App to See the Solutions.


Click Here To Install
CBSC 12th Informatics Practices Sample Paper 02 Page 7

C01 BALENO SUZUKI BLUE 5.90 2019-11-07


C02 INDIGO TATA SILVER 12.90 2020-10-15
C03 GLC MERCEDES WHITE 62.38 2020-01-20
C04 A6 AUDI RED 58.55 2018-12-29
C05 INNOVA TOYOTA BLACK 32.82 2017-11-10
C06 WAGON-R SUZUKI WHITE 12.11 2016-11-11
C07 BREZZA SUZUKI GOLDEN 9.80 2016-10-03
Help her by writing answers of the following questions based on the given table.
(i) Display the carname along with the charges rounded off to 1 digit after decimal place.
(ii) Display the carname, name of the company in lower case of all cars whose year (of dom) is 2020.
(iii) Display the number of cars manufactured each year.
(iv) Display the carname, color and position of the character ‘E’ in the color of all the cars.

SECTION E
35. Green Valley Public School has 4 buildings in its campus . Distance between the buildings and the number
of computers in each is given below

Building Number of Computers


A 150
B 10
C 25
D 3

Building Distance
A-B 10 m
A-C 1250 m
A-D 25 m
B-C 30 m
B-D 2000 m
(i) Which building is best suitable for placement of server?
(ii) If building A to D is to be connected, which device will be required for strong signals?
(iii) Which building would need a switch/hub?
(iv) Which topology would you suggest for connecting computers in each building?

Install NODIA App to See the Solutions.


Click Here To Install
Page 8 Sample Paper 02 NODIA

(v) Suggest and draw cable layout to efficiently connect various buildings within the school campus for a
wired connectivity.

36. Write down the syntax format of the following functions, with one example of each.
(i) LCASE(str) (ii) UCASE(str)
(iii) RIGHT(str,n) (iv) POWER(m,n)
(v) RTRIM(str)
 o
Consider the table DOCTOR given below. Write commands in SQL for (i) to (iv) and answer the question
for (v).

Table : DOCTOR
ID DOCName Department DOJ Gender Salary
1 Amit Kumar Orthopaedics 1993-02-12 M 35000
2 Anita Hans Paediatrics 1998-10-16 F 30000
3 Sunita Maini Gynaecology 1991-08-23 F 40000
4 Joe Thomas Surgery 1994-10-20 M 55000
5 Gurpreet Kaur Paediatrics 1999-11-24 F 52000
6 Anandini Burman Oncology 1994-03-16 F 31000
7 Siddharth Dang Surgery 1995-09-08 M 47000
8 Rama Mukherjee Oncology 2000-06-27 F 54500
(i) Display the names and salaries of doctors in descending order of salaries.
(ii) Display names of each department along with total salary being given to doctors of that department.
(iii) Display the number of doctors in each department.
(iv) To display all the female doctors from the given data.
(v) Identify the primary key from the table DOCTOR.

37. A bar graph is used to show individual figures at a specific time or to compare different items. Similarly, a
bar graph which is showing the marks of different subjects. You have to write the code that will represent
the given graph.

Write a Python code to create a line graph for the data given below based on Games apps rated by the users.
Games = [“Subway Surfer”, “Temple Run”, “CandyCrush”, “Bottle Shot”, “Runner Best”]
Rating= [4.2, 4.8, 5.0, 3.8, 4.1]
 EN

Install NODIA App to See the Solutions.


Click Here To Install

You might also like