class12-IP SAMPLE PAPER3

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

SAMPLE PAPER SET-3

CLASS XII SUB:-INFORMATICS PRACTICES(065)


Time: 3 Hours MM:70

General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 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 Q35
against part c only.
8. All programming questions are to be answered using Python Language only.

1. Mr. Chandervardhanis not able to identify the Domain Name in the given URL. 1
Identify and write it for him http://www.cbse.nic.in/aboutus.html

i. cbse.nic.in/aboutus
ii. cbse.nic.in
iii. http://www.cbse.nic.in/aboutus
iv. None of above
2. Exploring appropriate and ethical behaviors related to online environments and 1
digital media following is not a type of cyber crime?
i. Cyber law
ii. Cyber ethics
iii. Cyber bullying
iv. Cyber safety
3. The garbage of electronic gadgets such as computers, peripherals ,laptop 1
accessories ,mobile is known as _
i. Electonics waste item
ii. E-waste
iii. Waste Electronics
iv. Unused old computers
4. Which type of values will not be considered by SQL while executing the 1
following statement?

SELECT COUNT(column name) FROM student;

i. Date value
ii. text value
iii. Null value
iv. Numeric value
5. If column “Salary” contains the data set (5000,8000,2000,5500,2000), what 1
will be the output after the execution of the given query?

SELECT SUM (DISTINCT Salary) FROM Emp;

i. 22500
ii. 20500
iii. 25000
iv. 36000
6. ‘V’ in VoIP stands for: 1
i. Volume
ii. Voice
iii. Virtual
iv. Video

7. Which SQL statement do we use to find out the total number of values present 1
in the column 'price' of table SALES?

i. SELECT * FROM SALES;


ii. SELECT COUNT (price) FROM SALES;
iii. SELECT FIND (*) FROM SALES;
iv. SELECT COUNT(*) FROM SALES;

8. Which one of the following is not an NUMERIC function? 1


i. ROUND()
ii. SQRT()
iii. COUNT()
iv. MOD()
9. Which one of the following functions is used to find the minimum value from the 1
given data in MySQL?
i. MIN( )
ii. MINIMUM( )
iii. SMALL( )
iv. LESS( )
10. To display First three rows of a series object ‘M’, you may write: 1
i. M.Head()
ii. M.Tail(3)
iii. M.Head(3)
iv. M.head(3)
11. Which of the following statement will import pandas library? 1
i. Import pandas as pd
ii. import Pandas as py
iii. import pandas as ps
iv. import panda as pd
12. Consider the following series object Named ‘Ser’: 1
0 578
1 235
2 560
3 897
4 118
What will be the output of following statements?:
print(ser.index)
i. RangeIndex(start=0, stop=5, step=1)
ii. [578 235 560 897 118]
iii. 0,1,2,3,4
iv. None of Above

13. If all devices are connected in a linear way , then topology is called 1
i. Ring
ii. Bus
iii. Star
iv. Linear
14. In SQL, which function is example of scalar function? 1
i. count ()
ii. avg ()
iii. ucase()
iv. max ()
15. Linux,MySQL and Mozilla Firefox software come under which category- 1
(a) Propriety
(b) FOSS
(c) Freeware
(d) Shareware

16. Nitish received an email warning him of closure of his bank accounts if he did not 1
update his banking information as soon as possible. He clicked the link in the email
and entered his banking information. Next he got to know that he was duped. This is
an example of .
i. Phishing
ii. Identity Theft
iii. Digital footprint
iv. All of Above
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): - Cookies are plain text files. 1

Reasoning (R):- Cookies store the Profile picture on Social Media.


18. Assertion (A):-To delete a column from Pandas DataFrame,drop() method 1
is used.

Reasoning (R): - Columns are deleted by dropping columns with index


label.
SECTION B
19. Differentiate between Internet and Intranet. 2

OR
Mention any four networking goals.

20. Rakesh, a database administrator needs to display subject wise sum of marks of 2
‘CS’ and ‘IP’ subject in student table . He is encountering an error while
executing the following query:

SELECT SUBJECT, SUM( ) FROM STUDENT GROUP BY SUBJECT


WHERE SUBJECT=’CS’ OR SUBJECT= ‘IP’;

Help him in identifying the reason of the error and write the correct query by
suggesting the possible correction (s).
21. Preeti writes the following commands with respect to a table EMPLOYEE 2
having fields, empno, name, department, commission.
Command1 : Select count(*) from employee;
Command2: Select count(commission) from employee;
She gets the output as 4 for the first command but gets an output 3 for the second
command. Explain the output with justification.
22. Write a program to create a series object using a dictionary that stores the number 2
of students in each house of class 12B of your school.

Note: Assume four house names are Shivaji, Tagore, Ashoka and Raman
having 15, 5, 10, 12 students respectively and pandas library has been
imported as pd.

23. Explain passive digital footprint with example. 2


OR
What do you mean by intellectual property ?

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


>>>import pandas as pd
>>>A=pd.Series(data=[35,45,55,40])
>>>print(A[-1:])

25. Carefully observe the following code: 2


import pandas as pd
Q1={'X1':3000,'X2':4000,'X3':2000,'X4': 1600}
Q2={'A' :23000,'B':24000,'C':22000}
price={1:Q1,2:Q2}
df=pd.DataFrame(price)
print(df)

Answer the following:

i. List the index of the DataFrame df


ii. List the column names of DataFrame df.
SECTION C
26. Write outputs for SQL queries (i) to (iii) which are based on the given table 3
CUSTOMER:

TABLE: CUSTOMER
CNO CNAME CITY QUANTITY DOP
C01 GURPREET NEW DELHI 150 2022-06-11
C02 MALIKA HYDERABAD 10 2022-02-19
C03 NADAR DALHOUSIE 100 2021-12-04
C04 SAHIB CHANDIGARH 50 2021-10-10
C05 MEHAK CHANDIGARH 15 2021-10-20

i. SELECT CONCAT(CNAME,CITY) FROM CUSTOMER


WHERE QUANTITY>50;
ii. SELECT CITY FROM CUSTOMER WHERE
DOP >2021-10-10;
iii. SELECT POWER (QUANTITY,2) FROM CUSTOMER
WHERE CITY= ‘HYDERABAD’;
27. Write a Python code to create a DataFrame with appropriate column headings from 3
the Dictionary given below:

{‘A’:[‘ALOK’,’MANOJ’,’RAM’,’RAVI’],’B’:[20,30,40,50],’C’:[1000,2000,3000,4000]}

28. Consider the given DataFrame ‘Item’: 3

Name Price
0 Note Book 100
1 Project File 120
2 Pen Drive 325
3 IP Book 500

Write suitable Python statements for the following:


i. Add a column called Qty with the following data:
[15,20,30,40].
ii. Add a new Item named ‘The Parker Pen' having price 200.
iii. Remove the column Qty.
29. Rani has recently shifted to a new city and school. She does not know many people 3
in her new city and school. But all of a sudden, someone is posting negative,
demeaning comments on her social networking profile etc.

She is also getting repeated mails from unknown people. Every time she goes
online, she finds someone chasing her online.

i. What is this happening to Rani?


ii. What immediate action should she take to handle it?
iii. Is there any law in India to handle such issues? Discuss briefly.

OR
What do you understand by Cyber Bullying? Write the three common places
where cyberbullying occurs?.
30. Based on table School given here, write suitable SQL queries for the following: 3

Roll No Name Class Gender City Marks


1 Abhishek XI M Agra 430
2 Prateek XII M Mumbai 440
3 Sneha XI F Agra 470
4 Nancy XII F Mumbai 492
5 Himnashu XII M Delhi 360
6 Anchal XI F Dubai 256
7 Mehar X F Moscow 324
8 Nishant X M Moscow 429
i. Display class wise lowest marks.
ii. Display city wise total marks.
iii. Display total number of male and female students.
OR
Discuss the significance of Order by clause in detail with the help of suitable
example.
SECTION D
31. Write the SQL functions which will perform the following operations: 5
i. Display the string “chest” from the string “ Manchester United”
ii. Display the word “hello” from the string “$$$$$$$hello$$$$$$$$”.
iii. To display the name of the month eg, January or February from the
current date.
Write the Output that will be generated by the SQL commands:
iv. SELECT SYSDATE();
v. SELECT INSTR(“HELLO WORLD”, “he”)

OR
Explain the following SQL functions using suitable examples.
i. LCASE()
ii. LTRIM()
iii. SUBSTR()
iv. DAYNAME()
v. SQRT()
32. Krishna University is setting up the academic blocks at Jalandhar and is planning to 5
connect them through a network. The University has 4 blocks named BIZZ BLOCK,
TECHY BLOCK, ADMIN BLOCK and HR BLOCK. The distance
between these blocks and no. of computers in each block are as follows :-

DISTANCE
ADMIN to BIZZ 50 m
Block
ADMIN to TECHY 85 m
Block
ADMIN to HR 110
Block
BIZZ to TECHY 45 m
Block
BIZZ to HR Block 40 m
TECHY to HR 25 m
Block

No. of Computers
ADMIN 25
TECHY Block 60
HR Block 110
BIZZ Block 30
a) Suggest the most suitable place to install the server and justify the answer.
b) Suggest the placement of the Repeater in the network with justification
c) Suggest the device to be placed in each of these blocks to efficientlyconnect
all the computers with justification.
d) The university is planning to connect the ADM Block to KOLKATA, which
is more than 1500 Kms from University. Suggest an economic way toconnect
it with reasonably high speed with justification
e) Which of the following will you suggest to establish the online face to face
communication between the people the ADMIN office to another office
situated at Mumbai?
i) Cable TV ii) Email iii) Video conferencing iv) Text chat
33 Consider the following graph. Write a program in python to draw it. (Height of 5
Bars are 10,1,0,33,6,8)

OR

Write a python program to plot a line chart based on the given data to depict the
changing weekly average marks of Raman for four weeks test.

Week=[1,2,3,4]
Avg_Marks=[50,82,68,54]

SECTION E
34 Saumya, a database administrator has designed a database for a Company. 1+1+
Help her by writing answers of the following questions based on the given 2
table: TABLE: EMP

ECODE ENAME SEX DESIG SALARY DOB


E001 ROHAN M CLERK 9000 2001-01-21
E002 AMIT M MANGER 20000 2001-12-12
E003 ANITA F NURSE 10000 2001-11-10
E004 SUMIT M PEON 6000 2009-11-12
E005 KUKI F CASHIER 8000 2001-12-07
i. Write a query to display employee names in lower case.
ii. Write a query to display the highest salary of the EMP
iii. Write a query to count total number of Male Employee .
OR (Option for part iii only)
Write a query to count total number employee year wise.

35 Consider the following dataframes and write the command to perform 1+1+
following operations on the dataframes Cls1 and Cls2: 2

(i) To subtract Cls2 from Cls1


(ii) To add Cls1 and Cls2.
(iii) To rename column Hindi as Science in Cls1
OR (Option for part iii only)
To change the index label of Cls1 from 2 to two and from 3 to three.

You might also like