0% found this document useful (0 votes)
50 views7 pages

12th IP

Ip
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)
50 views7 pages

12th IP

Ip
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/ 7

MID TERM EXAMINATION [2024-25]

Grade: XII Roll no.:


Subject: COMPUTER Max. Marks: 70

Date: 20/09/2024 Time: 3 HOURS

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 02 questions carrying 04 marks each.
7. Section E has 03 questions carrying 05 marks each.
8. All programming questions are to be answered using Python Language only.
Section – A

1. To create an empty Series object, you can use :


a. pd.Series(empty) b. pd.Series(np.NaN) c. pd.Series( ) d. all of these
2. To get the number of dimensions of a Series object, ............... attribute is displayed.
a. index b. size c. itemsize d. ndim
3.To display third element of a Series object S, you will write ............... .
a. S[:3] b. S[2] c. S[3] d. S[:2]
4. When we create a DataFrame from a list of Dictionaries the columns labels are formed by the :
a. Union of the keys of the dictionaries
b. Intersection of the keys of the dictionaries
c. Union of the values of the dictionaries
d. Intersection of the values of the dictionaries
5. To get the transpose of a dataframe D1, you can write ............... .
a. D1.T b. D1.Transpose c. D1.Swap d. All of these
6. Identify the correct option to select first four rows and second to fourth columns from a DataFrame 'Data':
a. display(Data.iloc[1 : 4, 2 : 4])
b. display(Data.iloc[1 : 5, 2 ; 5])
c. print(Data.iloc[0 : 4, 1 : 4])
d. print(Data.iloc[1 : 4, 2 : 4])
7. Assertion. A series object stores values of homogeneous types.
Reason. Even if values appear to be of different types, internally they are stored in a common datatype.
a. Both A and R are true and R is the correct explanation of A.

MID TERM EXAMINATION /AY 2024-25 IP -XII Page 1 of 7


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.
8. Which of the following topologies needs least cable lengths ?
a. Star b. Tree c. Bus d. None of these
9. The device that can operate in place of a hub is a :
a. Switch b. Bridge c. Router d. Gateway
10. When you visit a website, it will open the page set as ............... of the website.
a. Web Site b. Home page c. Email d. ISP
11. IP stands for
a. Internet Protocol b. Intranet Protocol c. Internet Provider d. Internet Package
12. URLs are of two types :
a. Absolute & Relative b. Static & Dynamic
c. Absolute & Dynamic d. None of these
13. In an email address, the characters following '@' character represent
a. User name b. E-mail Recipient c. Domain name d. None of these
14............... operating system comes under FOSS.
a. Windows b. Ubuntu c. Mac d. Oracle
15. Which of the following is an advantage of 'open source' software ?
a. You can edit the source code to customize it.
b. You need to be an expert to edit code.
c. You have to pay.
d. Can sometimes be too generic for specialist purposes.
16. Which of the following would be a creative work protected by copyright ?
a. A list of all Indian President names
b. A portrait of your family
c. A song you wrote
d. The name of your pet dog
17. Primary law in India for matters related to e-commerce and cyber crime is :
a. IT Act 1995 b.IT Act 2000
c. IT Act 1998 d. IT Act 2010
18. Which of the following is a type of cyber crime where objectionable and demeaning comments are posted
on social media platform about a person, such that he/she is mentally harassed ?
a. Phishing b. Hacking c. Cyber bullying d. Identity Theft

MID TERM EXAMINATION /AY 2024-25 IP -XII Page 2 of 7


Section – B

19. What is IPR?


Or
What is difference between STAR and BUS topologies?

20. The python code written below has


syntactical errors. Rewrite the correct code and underline the corrections made.
Import pandas as Pd
data = ('A': [1, 2, 3], 'B’: [4, 5, 6]}
df = Pd.DataFrame(data)
result = df[A] + df[B]
21. Give an example to create a DataFrame from the list of dictionary. Also, display its output.
22. For avoiding the plagiarism, what guidelines should we follow?
23. Given a DataFrame gradedf:
import pandas as pd
gradedf=pd.DataFrame({‘Name’:[‘Rashmi ’, ‘Ani’, ‘Sunil’, ‘Becker’], ‘Grade’ : [‘A’, 'B‘, 'C’, ‘D’]
print (gradedf.iloc[0 : 2])
Find the output.
24 What do you mean by spyware?
25. Complete the given Python code: Create a pandas Series from a scalar value ‘10’ and display the last 3
elements of the Series.
import ____ as pd
series_data = pd.Series(____)
print(series___data.(____))
Section – C

26. Write a Python code to create a DataFrame with appropriate column headings from the list given below:
[[P01 ,‘Sachin Tendulkar’, ‘lndia’],[P02 , ‘Brian Lara’, ‘West Indies’], [P03, ‘Wasim Akram’,
‘Pakistan’],[P04,’Adam Gilchrist’, ‘Australia’]]
27. What are the psychological problems related to the usage of technology?
28. Abhishek uses computer and mobile for his personal use. Study the following cases and answer the
questions given below.

MID TERM EXAMINATION /AY 2024-25 IP -XII Page 3 of 7


(a) Once he got the message in Whatsapp that CBSE is announcing the result of class XII tomorrow at 12:00
pm. He forwarded the message to his few friends. But later, he came to know that no such announcement was
there in CBSE official website. In this case, he violated ………….
(b) He is getting abuse messages from an unknown number due to which he is thinking of quarreling with that
person. The unknown person can be called as …………..
(c) He registered himself in one website by giving his email id and phone number he is leaving ………..
Or
Write some symptoms of a malware attack.
29. Given a DataFrame ‘df ’ created as :

Index Roll Name Marks


0 1 Ravi 56

1 2 Sheeta 77

2 3 Paromita 89

3 4 Debarati 98

Write the Python statements to :


(i) Get the output as ” 2 Paromita”.
(ii) Change the index order to 2,1,0.
(iii) See the data type of the ‘Marks’ column.

30. Give two advantages and two disadvantages of Star topology.

Section – D
31. Ekam, a Data Analyst with a multinational brand has designed the DataFrame df that contains
the four quarter’s sales data of different stores as shown below [4]

Store Qtr1 Qtr2 Qtr3 Qtr4

0 Store1 300 240 450 230


1 Store2 350 340 403 210
2 Store3 250 180 145 160

MID TERM EXAMINATION /AY 2024-25 IP -XII Page 4 of 7


Answer the following questions
(i) Predict the output of the following python statement
(a) print(df.size)
(b) print(df[1 : 3])
(ii) Delete the last row from the DataFrame.
(iii) Write Python statement to add a new column Total Sales which is the addition of all the 4
quarter sales.

32. Mr. Krishnamurthy, who is a new user of Python Pandas, has created the following Series
“Electrical” carrying names of electrical appliances as values and their wattage as the index. He
wants to perform certain operations on the Series. You are supposed to help him in writing the
commands:
Electrical

Index Name

12W LED
200W Fan
1000W Electric Iron

1200W Rice Cooker

(i) He wants to change the index of Electrical series “LED” element to “A”.
(ii) To display the record of ‘Fan”.
(iii) Display the last rows of the dataset.

Section – E

34. Granuda consultants are setting up a secured network for their office campus at Faridabad for
their day-to-day office and web based activities. They are planning to have connectivity between 3
buildings and the head office situated in Kolkata.

Answer the questions (i) to (v) after going through the building positions in the campus and other
details, which are given below.

MID TERM EXAMINATION /AY 2024-25 IP -XII Page 5 of 7


Distance between various buildings
Building RAVI to Building JAMUNA 120 m

Building RAVI to Building GANGA 50 m

Building GANGA to Building JAMUNA 65 m

Faridabad Campus to Head Office 1460 km

Number of computers

Building RAVI 25
Building JAMUNA 150
Building GANGA 51
Head Office 10
(i) Suggest the most suitable place (i.e. Building) to house the server of this organisation. Also, give
a reason to justify your suggested location.
(ii) Suggest a cable layout of connections between the building inside the campus.
(iii) Suggest the placement of the following devices with justification
(a) Switch
(b) Repeater
(iv) Consultancy is planning to connect its office in Faridabad which is more than 10 km from head
office. Which type of network will be formed?
(v) State the use of HUB?
33. Mr. Som, a data analyst has designed the DataFrame df that contains data about Computer
Olympiad with ‘CO1’, ‘CO2’, ‘CO3’, ‘CO4’, ‘CO5’ as indexes shown below. Answer the following
questions:

SCHOOL TOT_STUDENT TOPPER FIRST_RUNNERUP

CO1 PPS 40 32 8
CO2 JPS 30 18 12
CO3 GPS 20 18 2
CO4 MPS 18 10 8
CO5 BPS 28 20 8

MID TERM EXAMINATION /AY 2024-25 IP -XII Page 6 of 7


A. Predict the output of the following python statement:

i. df.shape

ii. df[2:4]

B. Write Python statement to display the data of Topper column of indexes CO2 to CO4.

C. Write Python statement to compute and display the difference of data of Tot_students column
and First_Runnerup column of the above given DataFrame.

35. (a) What is netiquette? Write any two rules of netiquettes. (2 marks)
(b) What is Intellectual Property Rights? (3 marks)

MID TERM EXAMINATION /AY 2024-25 IP -XII Page 7 of 7

You might also like