Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
43 views

12 Informatics Practices Sp 01

Uploaded by

raoshabhrishabh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

12 Informatics Practices Sp 01

Uploaded by

raoshabhrishabh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

myCBSEguide

Class 12 - Informatics Practices


Sample Paper - 01 (2024-25)

Maximum Marks: 70
Time Allowed: : 3 hours

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
1. State true or false:

CSV files are quick to create and load into memory before analysis.

a) True
b) False

2. The different kinds of plot created using

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;

a) Selecting those rows whose total emp_id>2


b) Both filter out all rows whose total emp_id below 2 and selecting those rows whose total emp_id>2

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


1 / 17
myCBSEguide
c) Filter out all rows whose total emp_id equal to 2
d) Filter out all rows whose total emp_id below 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) The sitting posture should be correct.


b) To protect the eyes the gadgets should be placed above eye level.
c) Breaks should be taken in between the online classes.
d) Wash the eyes regularly.

6. Which of the following is a web browser?


Microsoft Windows, Android, Microsoft Edge, Ubuntu

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.

11. Which clause is similar to HAVING clause in MySQL?

a) SELECT

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


2 / 17
myCBSEguide
b) WHERE
c) FROM
d) TO

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

15. Consider the following statements with reference to Line charts


Statement A: Line graphs is a tool for comparison and is created by plotting a series of several points and connecting
them with a straight line.
Statement B: You should never use line chart, when the chart is in a continuous data set.

a) Statement A is correct but statement B is incorrect.


b) Statement A is correct.
c) Statement A is incorrect but statement B is correct.
d) Statement B is correct.

16. All aggregate functions ignore NULLs except for the ________ function.

a) SAME()
b) Average()
c) Distinct
d) Count(*)

17. A category of software that spies of your computer activities is

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


3 / 17
myCBSEguide
a) Spyware
b) Freeware
c) Utilities
d) De-ware

18. Assuming the given structure, which command will give us the given output:
Output Required: (3, 4)

EmpCode Name Desig

0 1405 VINAY Clerk

1 1985 MANISH Works Manager


2 1636 SMINA Sales Manager

3 1689 RINU Clerk


a) print(df.shape())
b) print(df.size)
c) print(df.shape)
d) print(df.size())

19. Which clause is used with an aggregate functions?

a) WHERE
b) Both GROUP BY and WHERE
c) GROUP BY
d) SELECT

20. Assertion (A): Privacy of sensitive data can be implemented by Authentication.


Reason(R): Authentication is the process of giving access to the data for all the users.

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.

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.

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.
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.
Section B

22. Write the relationship between a website and a web server.

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


4 / 17
myCBSEguide
OR

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.

25. Write the output of the following SQL query.

mysql>SELECT TRUNCATE(5.3456, 1);

OR

What will be the output of the given function:


SELECT DATE('2020-04-06 01:02:03');

26. Explain the term firewall.

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

Write a suitable Python code to create an empty series.

Section C

29. Renu 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. Predict the output of the following SQL queries:

a. SELECT LENGTH("GOOD LUCK");


b. SELECT POWER(3, 3);
c. SELECT UPPER("examination");

OR

Predict the output of the following SQL queries:

i. SELECT TRIM(" ALL THEBEST ");


ii. SELECT POWER(5,2);
iii. SELECT UPPER(MID("start up india", 10));

31. Consider the following DataFrame dfn

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


5 / 17
myCBSEguide

A B C

Order 450 180 350

Purchase 330 550 610


Sell 250 410 380

Target 1050 980 1250

Write the output of the following statement.

i. dfn [['A', 'B']]


ii. dfn.loc ['Purchase', :]

32. What will be the output of the given function:

i. Select POW(2,4);
ii. SELECT POW(2,-2);
iii. SELECT POW(-2,3);

OR

Write the names of SQL functions to perform the following operations:

a. Display name of the Month from your date of birth.


b. Convert email-id to lowercase.
c. Count the number of characters in your name.
Section D
33. Read the text carefully and answer the questions:
Consider the following Data Frame df and answer questions.
Population School Hospitals
chennai 40 200 500

delhi 10 250 200


kolkatta 30 400 100
mumbai 20 350 300

i. Display the name of city whose population >=20 range of 12 to 20.

ii. Write command to set all values of df as 0.

iii. Display the df with rows in the reverse order.

iv. Display the df with only columns in the reverse order.

34. Read the text carefully and answer the questions:


Freshminds University of India is starting its first campus in Ana Nagar of South India with its centre admission office in
Kolkata. The university has three major blocks comprising of Office block, Science block and Commerce block is in 5
km area campus.
As a network expert, you need to suggest the network plan as per to the authorities keeping in mind the distance and
other given parameters.

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


6 / 17
myCBSEguide

Expected wire distance between various locations


Office Block to Science Block 90 m

Office Block to Commerce Block 80 m


Science Block to Commerce Block 15 m
Kolkata Admission Office to Ana Nagar Campus 450 km

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

Read the text carefully and answer the questions:


Elpis Education Service Ltd. is an educational organisation. It is planning to set up its India campus at Nepal with its

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


7 / 17
myCBSEguide
head office at Mumbai. The Nepal campus has 4 main buildings-
ADMIN, ENGINEERING, BUSINESS and MEDIA.
You as a network expert have to suggest the best network-related solutions for their problems raised in Questions,
keeping in mind the distance between the buildings and other given parameters.

Shortest distance between various buildings


ADMIN To ENGINEERING 50 m
ADMIN To BUSINESS 80 m
ADMIN To MEDIA 45 m

ENGINEERING To BUSINESS 60 m
ENGINEERING To MEDIA 50 m
BUSINESS To MEDIA 45 m

Mumbai Head Office To Nepal Campus 2175 m

Number of computers installed at various buildings are as follows


ADMIN 110
ENGINEERING 75

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

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


8 / 17
myCBSEguide
Section E

35. Write suitable SQL query for the following:

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:

Names Average Marks


Ruby 84

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.

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


9 / 17
myCBSEguide
city Male Female Total
Area A 20 17 37

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.

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


10 / 17
myCBSEguide

Class 12 - Informatics Practices


Sample Paper - 01 (2024-25)

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.

6. (a) Microsoft Edge


Explanation:

Microsoft Edge

7. (c) HTML documents


Explanation:

HTML documents

8. (b) False
Explanation:

False

9. (b) Home page


Explanation:

Home page

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


11 / 17
myCBSEguide
10. (a) Downloaded the images that were marked as CC and pasted in her project file.
Explanation:

Downloaded the images that were marked as CC and pasted in her project file.

11. (b) WHERE


Explanation:

WHERE

12. (b) COUNT


Explanation:

COUNT

13. (d) Copyright holder


Explanation:

Copyright holder

14. (d) Copyright infringement


Explanation:

Copyright infringement

15. (a) Statement A is correct but statement B is incorrect.


Explanation:

Statement A is correct but statement B is incorrect.

16. (c) Distinct


Explanation:

Distinct

17. (a) Spyware


Explanation:

Spyware

18. (c) print(df.shape)


Explanation:

print(df.shape)

19. (c) GROUP BY


Explanation:

GROUP BY

20. (c) A is true but R is false.


Explanation:

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


12 / 17
myCBSEguide
A is true but R is false.

21. (a) Both A and R are true and R is the correct explanation of A.
Explanation:

Both A and R are true and R is the correct explanation of A.


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.

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.

23. SELECT ROLLNO, NAME, MARKS FROM STUDENT


ORDER BY MARKS DESC, NAME;

24. SELECT department, avg(salary) from company


Group by department;

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.

27. import pandas as pd


s=pd.Series([10, 20, 30, 40, 50], index = ['a', 'b', 'c', 0, 1])
print(s.iloc[[0,2,4]])
output
a 10
c 30
1 50

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()

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


13 / 17
myCBSEguide
print(s)

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

1. SELECT TRIM(" ALL THE BEST ");


The TRIM() removes leading and trailing spaces from a string.
The output of this query is "ALL THE BEST".
2. SELECT POWER(5,2);
The POWER() calculates the value of the first argument raised to the power of the second argument.
Therefore, the output of this query is 25
3. SELECT UPPER(MID("start up india", 10));
The UPPER() converts a string to uppercase.
The MID() extracts a substring from the input string.
Applying UPPER() to "india" results in "INDIA".
Output of this query is "INDIA"

31. i. A B

Order 450 180


Purchase 330 550

Sell 250 410

Target 1050 980

ii. A 330
B 550

C 610

Name : Purchase, dtype : int64

32. i. Result:16
ii. Result: 0.25

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


14 / 17
myCBSEguide
iii. Result: -8

OR

a. Display the name of the Month from your date of birth:


SELECT DATENAME(MONTH, YourDateOfBirth) AS FullMonthName;
(Replace YourDateOfBirth with the actual date value)
b. Convert email-id to lowercase:
SELECT LOWER(YourEmailAddress) AS LowercaseEmail;
(Replace your email address with the actual email address)
c. Count the number of characters in your name:
SELECT LEN(YourName) AS NameLength;
(Replace YourName with your actual name)
Section D

33. i. print(df[df.population>=20])

ii. df[:]=0

iii. print(df.iloc[::-1)

iv. 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.

iii. (b) Switch


Explanation:

Switch is the device to be installed in each of the blocks to connect all the computers.

iv. Satellite connection

OR

i. ADMIN is the most appropriate location of the Nepal Campus because it has maximum number of computers.

ii.

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


15 / 17
myCBSEguide
iii. Firewall

iv. (a) Video Conferencing


Explanation:

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;

36. import pandas as PD

# Create the data frame from a dictionary

data = {

'': ['IT','ES', 'GR', 'FR', 'PO'],

'country': ['Italy', 'Spain', 'Greece', 'France', 'Portugal'],

'population': [61, 46, 11, 65, 10],

'per cent': ['0.83', '0.63', '0.15', '0.88', '0.14']

population = pd.DataFrame(data)

#Original data frame

print(population)

#A -- Display columns 'country' and 'population'

print(population[['country', 'population']])

#B -- Display rows where population is more than 40

print(population[population['population'] > 40])

#C -- Delete the last 2 rows

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.

import matplotlib.pyplot as plt


names = ['ruby','yugesh','Vishesh','Rakesh']

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


16 / 17
myCBSEguide
averagemarks=[84,92,45,72]
plt.bar(names,averagemarks)
plt.title("RESULT OF TERM-2 EXAM")
plt.xlabel('STUDENT NAMES')
plt.ylabel('AVERAGE MARKS SCORED')
plt.show()

OR

import matplotlib.pyplot as plt


import pandas as pd
df=pd.read_excel('population.xlsx')
plt.bar('city','Male',data=df, label='Male')
plt.bar('city','Female',data=df, label='Female', bottom='Male')
plt.legend() #display legend using label of plot
plt.grid() #display gridlines
plt.show()

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.

Copyright © myCBSEguide.com. Mass distribution in any mode is strictly prohibited.


17 / 17

You might also like