Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Ip Sample Paper 6

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

AGARWAL VIDYA VIHAR, SURAT

ACADEMIC
KENDRIYA VIDYALAYA SESSIONJAMMU
SANGATHAN, (2023-24)
REGION
SAMPLE PAPER SET : 4 6
CLASS : XII SUBJECT: INFORMATICS PRACTICES (065)

TIME:3 HOURS M.M.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

PART A
1. In computer network, the process of converting analog signal into digital signal is known 1
as:
i. Transmission
ii. Modulation
iii. Conversion
iv. Demodulation
2. A person who deliberately sows discord on the Internet bystarting quarrels or upsetting 1
people is called as:
i. Cyber Bullying
ii. Cyber Trolling
iii. Hacking
iv. Doxing

3. Which of the following are feasible methods of e-waste management: 1


i. Reduce
ii. Reuse
iii. Recycle
iv. Allof the above

4. Which command must be written after order by command to display the detail in 1
descending order in SQL.
5. If column “Quantity” contains the data set (5,4,7,5,8,5,4), what will 1
be the output after the execution of the given query?
SELECT SUM(DISTINCT Quantity) FROM sales;
i.38
ii. 24
iii.4
iv.None
6. FLOSS stands for ________________ 1
i. Free Liable Open Source Systems
ii. Free Libre Open Source Software
iii. Free License for Open Source Software
iv. Final License for Open Systems Software
7. Which SQL statement do we use to find out the total quantity of all the items in the table 1
SALES?
i. SELECT * FROM SALES;
ii. SELECT COUNT (*) FROM SALES;
iii. SELECT COUNT (QTY) FROM SALES;
iv. SELECT SUM (QTY) FROM SALES;
8. Which one of the following is a multi-row function? 1
i. count()
ii. round()
iii. now()
iv. length()
9. Which one of the following functions is used to find the weekday name for a given date 1
in MYSQL.
i. WEEKDAY()
ii. WEEK()
iii. DAY()
iv. DAYNAME()
10. Given a Pandas series called s, the command which will display the last 5 rows is 1
______________.
i. print(s.Tail())
ii. print(s.tail(5))
iii. print(s.Tail(5))
iv. both a and c
11. Which of the following statement will be used to install Pandas? 1
i. pip install python-pandas
ii. pip install pandas
iii. python install python-pandas
iv. python install pandas
12. Which attribute is used to get total number of elements in a Series? 1
i. values
ii. shape
iii. ndim
iv. size
13. Which amongst the following is not an example of a network device? 1
i. Router
ii. Repeater
iii. Hub
iv. None
14. In SQL, which function is used to extract a substring from a string (starting at any 1
position).
i. MID()
ii.SUBSTR()
iii. SUBSTRING()
iv. All of the above
15. A document that provides legally binding guidelines for the use and distribution of 1
software.
i. Copyright
ii. Patent
iii.FOSS
iv. License
16. Soham uploaded one video in his youtube channel where he used one background music 1
downloaded from somewhere on Internet without giving credit to the source. He is violating
i.Intellectual property right
ii. Patent
iii. Copyright
iv. None of the 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) : MAC Addresss is 06 bytes long address and represented in 1
hexadecimal numbers.
Reason (R) : IP and MAC both type of addresses are used while communicating over a
network.
18. Assertion (A) : Professionals and developers are using the pandas library in data science 1
and machine learning.
Reason (R) : pandas is an open source Python library which offers high performance,
easy-to-use data structures and data analysis tools.
PART B
19. Explain the term Website and Web Server. 2
OR
What is the difference Static webpage and Dynamic webpage
20. Sam wrote the following query to display the details of parents whose age has not been 2
assigned.

SELECT * FROM PARENT WHERE AGE != NULL;

But didn’t get the desired output. Help him in identifying the reason of the error and
write the correct query by suggesting the possible correction.

21. What is the purpose of Having clause in SQL? Explain with the help of suitable example. 2
22. Write a program to create a series object States using a list that stores the Capital of each
states.
Note: Assume four States as index are Bihar, Maharashtra, Assam and Rajasthan having
values are Patna, Mumbai, Guwahati and Jaipur respectively and pandas library has been
imported as pd.
23. List any two health hazards related to excessive use of Technology. 2
OR
Ms. Kanika, in charge of Computer Lab in Hills International school, recently discovered
that the communication between her lab and the primary block of the school is extremely
slow and signals drop quite frequently. The distance between these two blocks is 150
meters.
a. What is the type of network used in the school.
b. Which device which may be used for smooth communication. Justify your answer
24. What will be the output of the following code: 2
import pandas as pd
x={'A':[50,10],'B':[80,20],'C':[12,30],'D':[18,40]}
tot_Sales={"Sales":x}
df=pd.DataFrame(tot_Sales)
print(df)
25. Carefully observe the following code: 2
import pandas as pd
x=[[100,200,300],[10,20]]
df=pd.DataFrame(x)
print(df)
Answer the following:
(i) Display the dataframe
(ii) Write the syntax for displaying size and dimension of the above dataframe.
SECTION C
26. Write outputs for SQL queries (i) to (iii) which are based on the given table Employee: 3
DEPARTM
E_ID FNAME LNAME SALARY JOINING_DATE
ENT
1 Mansa Singh 100000 2014-02-20 HR
2 Nikita Kapoor 80000 2014-07-11 Admin
3 Vaibhav Singh 300000 2014-02-21 HR
4 Atul Gupta 500000 2014-02-20 Admin
5 Jai Kumar 200000 2014-02-11 Admin

(i) SELECT INSTR(LNAME, ‘a’) FROM EMPLOYEE WHERE DEPARTMENT !=


‘HR’
(ii) SELECT POW(DAY(JOINING_DATE),MONTH(JOINING_DATE)) FROM
EMPLOYEE WHERE SALARY >=200000;
(iii) SELECT * FROM EMPLOYEE WHERE MID(LNAME,4,2)= ‘gh’;
27. Write a Python code to create a DataFrame df using List of Lists from the data given 3
below:
28. Consider the given DataFrame ‘ITEM’: 3

(i) Add a new row with values (index as 106, Iname- Pencil Box, Itype- Stationery,
Price- 180, Quantity- 210)using appropriate function.
(ii) Delete the newly added row.
(iii) Add a new column TOTAL in dataframe where the TOTAL is addition
sum of Price and
Quantity.

29. You got the below shown email regarding your netflix account. Answer the following: 3

(i) What will happen if you click on the given URL?


(ii) Is the email an example of cyber-crime? If yes, then specify which type of cyber-
crime is it.
(iii) Justify your answer.
OR
What do you understand by Phishing? How does it work? Give some examples of
phishing attack.
30. A relation EMPLOYEE is given below: 3
Write SQLcommands to:
a. Display the average salary of each Department
b. Display the total salary of each department where it’s total is more than or equal to
6500
c. Display the details of Employees in descending order of Employee name
OR
Differentiate between Group By Clause and Order By Clause with suitable examples for
each.
SECTION D
31. Write suitable SQL query for the following: 5
i. To display the name of the month for the current date.
ii. To display the weekday name for the current date.
iii. To display the position of the first occurrence of “ka” in “karnataka”.
iv. To display the string in Upper case ‘Python Program’.
v. To compute the remainder of numerator 117 and denominator 17.
OR
Explain the following SQL functions using suitable examples.
i. LEFT()
ii. INSTR()
iii. SUBSTR()
iv. MONTHNAME()
v. MOD()
32. Himalayan Medic Center has set up its new center in Dehradoon. It has four buildings 5
with the names as Research Lab, Store, Accounts and Packaging Unit
Shortest Distances between various blocks in meters:

Number of computers in each building:

i. Suggest a cable layout of connections between the buildings.


ii. Suggest the most suitable place (i.e. building) to house the server of this organization.
Justify your answer
iii. Suggest the placement of Hub/Switch/Repeater in the network.
iv. Mention an economic technology to provide internet accessibility to all the buildings.
v. Suggest a system (hardware/software) to prevent unauthorized access to or from the
network.
33. Write Python code to create a horizontal bar graph of the following data with tastiest fruit 5
based on number of people who likes it. Give appropriate title and labels on X axis and Y
axis.

Fruits No. of people


Apple 35
Orange 30
Banana 10
KiwiFruit 30
BlueBerry 40
Grapes 5

OR

Consider the following graph .Write the python program to plot line graphs showing
daily sales of “Drinks” and “Food” items for five days

Also give suitable python statement to save this chart.


SECTION E
34. Consider a table MOVIE with the following data: 1
+
1
+
2

i. Write a query to display the position of first occurrence of Movie in MovieName.


ii. Write a query to display the details of movies where the category has 6 characters.
iii. Write a query to display the total Production Cost of movies whose release month is
in April.
OR (Option for part iii only)
Write a query to display the total number of movies released in each Year.
35. Consider the following Data Frame dfrm 1
+
1
+
2

A. Predict the output of the following python statement:


i. print(dfrm.columns)
ii.dfrm.insert(1, “Age”,[16,17,17,16,18])
print(dfrm)
B. Write Python statement to add a new row(with values as – XII,80,Tarun,6, C) using
appropriate Function.
OR (Option for part iii only)
Write Python statement to compute and display the details of those students who are not
in section is A or D.

You might also like