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

Xii Ip QP Second Set-1

Uploaded by

ck9827211
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views

Xii Ip QP Second Set-1

Uploaded by

ck9827211
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

SAMPLE PAPER 1

CLASS - XII SET 1


INFORMATICS PRACTICES (IP) (065)
TIME: 03 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 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. Which of the following is not done by cyber criminals? (1)
a) Unauthorized account access b) Mass attack using Trojans as botnets
c) Email spoofing and spamming d) Report vulnerability

2. Digital footprints are also known as (1)


a) Digital Data b) Plagiarism c) Digital Tattoos d) Digital Print
3. Which amongst the following is an example of a browser? (1)
a) Mandriva b) GIMP c) Epic d) Azure
4. In SQL, the equivalent of UCASE() is (1)
a) UPPERCASE () b) CAPITALCASE() c) UPPER() d) TITLE ()

5. Which one of the following is not an aggregate function? (1)


a) Min b) Sum c) With d) Avg

6. Which of the following is not feasible method of e-waste management? (1)


a) Reuse b) Throwing in Sea c) Recycle d) Reduce

7. In Pandas series called HEAD, the command which will display the first 3 rows is . (1)
a) print(HEAD.head(3)) b) print(HEAD.Heads(3))
c) print(HEAD.heads(3)) d) print(head.HEAD(3))
8. In SQL, What will be output of (1)
SELECT INSTR (‘wednesday’, 'e');
a) 1 b) 5 c) 2 d) 4
9. Which is correct SQL Query to find the temperature in increasing order of all cities. (1)
a) SELECT city FROM weather order by temperature ;
b) SELECT city, temperature FROM weather ;
c) SELECT city, temperature FROM weather ORDER BY temperature ;
d) SELECT city, temperature FROM weather ORDER BY city ;
10. A series by default have numeric data labels starting from (1)
a) 1 b) 0 c) ‘1’ d) ‘a’In
11. In SQL, which function returns the time: (1)
a) SYSDATE b) NOW c) CURRENT d) TIME
12. To delete a column from a dataframe method can be used. (1)
a) delete() b) remove() c) erase() d) drop()

13. URLs are of two types: (1)


a) Absolute & Relative b) Static & Dynamic
c) Absolute and Dynamic d) None of the above
14. If column “Salary” contains the data set {10000, 15000, 25000, 10000, 15000}, what will (1)
be the output after the execution of the given query?
SELECT SUM(DISTINCT SALARY) FROM EMPLOYEE;
a)75000 b) 25000 c) 50000 d) 10000
15. ‘V’ in ‘VISA’ stands for: (1)
a) Virtual b) VISA c) Vital d) None of these
16. Malini sets up her own company to sell her own range of clothes on Instagram. What type of (1)
intellectual property can she use to show that the clothes are made by his company.
a) Patents b) Copyright c) Trademark d) Design
17. Assertion (A): DataFrame has both a row and column index. (1)
Reasoning (R): .loc() is a label based data selecting method to select a specific row(s) or
column(s) which we want to select.
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 but R is True
18. Assertion (A) : Each website has a unique address called URL. (1)
Reasoning (R) : It is Unified Resource Locator and a correct example is-
http://mypage.htm/google.com
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 but R is True
Section -B
19. Give two differences between Hub and Switch. (2)
OR
Explain Static and Dynamic Webpage.
20. Manan, A Database Administrator needs to display Class wise total number of students of (2)
‘XI’ and ‘XII’ house. He is encountering an error while executing the following query:
SELECT CLASS, COUNT (*) FROM STUDENT ORDER BY CLASS HAVING CLASS=’XI’ OR
CLASS= ‘XII’;
Help him in identifying the reason of the error and write the correct query by suggesting the
possible correction (s).
21. Considering the string “Preoccupied” (2)
Write SQL commands to display:
a) the position of the substring ‘cup’ in the string “Preoccupied”
b) the first 4 letters of the string
22. What will be the output of the following code: (2)
>>> import pandas as pd
>>> mydata=pd.Series( [‘rajesh’, ‘amit’, ‘tarun’, ‘Radhika’] )
>>> print(mydata < ‘rajesh’ )
23. Mention any four net etiquettes. (2)
OR
List any four benefits of e-waste management
24. Write a program to create a series object using a dictionary that stores the number of (2)
Kendriya Vidyalayas in each city of cities of your state.
Note: Assume some cities like AGRA, JHANSI, MATHURA, NOIDA having 4, 3, 5, 4 KVs
respectively and pandas library has been imported as mypandas.
25. Carefully observe the following code: (2)
>>> import pandas as pd
>>> xiic = {‘amit’:34, ‘kajal’:27, ‘ramesh’:37}
>>> xiid = {‘kajal’:34, ‘lalta’:33, ‘prakash’:38}
>>> result = {‘PT1’:xiic, ‘PT2’:xiid}
>>> df = pd.DataFrame(result)
>>> print(df)
Answer the following:
i) List the index of the dataframe df
ii) Find the output of the following code : print(df.loc[‘kajal’:’ramesh’])
Section -C
26. Based on table STOCK given here, write suitable SQL queries for the following: (3)
i) Display company wise highest Quantity available
ii) Display year wise lowest Quantity available
iii) Display total number of Software and Hardware type stock
OR
Explain the difference between WHERE CLAUSE and HAVING CLAUSE in detail with the help
of suitable example.
27. Write python statements to create a data frame for the following data. (3)
Name Age Designation
RAJIV 20 CLERK
SAMEER 35 MANAGER
KAPIL 45 ACCOUNTANT
28. Write MySQL statements for the following: (3)
i. To create a database named AUTOMOBILE.
ii. To create a table named VEHICLE based on the following specification:
Column Name DataType Constraints
VehicleNumber INT Primary Key
VehicleName Char(40)
VehicleModel Char(50) UNIQUE
29. Sumit got good marks in all the subjects. His father gifted him a laptop. He would like to (3)
make Sumit aware of health hazards associated with inappropriate and excessive use of
laptop. Help his father to list the points which he should discus with Sumit.
OR
How would you recognise if one of your friends is being cyber bullied? Cite the online
activities which would help you detect that your friend is being cyber bullied?
30. Consider the given DataFrame ‘Items’: (3)
Name Price Quantity
0 CPU 7750 15
1 Watch 475 50
2 Key Board 225 25
3 Mouse 150 20
Write suitable Python statements for the following:
i) Add a column called Sale_Price which is 10% decreased value of Price
ii) Add a new item named “Printer” having price 8000 and Quantity as 10.
iii) Remove the column Quantity
Section - D

31. Mr. Ravi, a data analyst has designed the DataFrame df that contains data about Car (4)
Sales with ‘T1’, ‘T2’, ‘T3’, ‘T4’, ‘T5’ as indexes shown below. Answer the following
questions:
Col1 Col2 Col3 Res
T1 62.893165 100.0 60.00 True
T2 94.734483 100.0 59.22 True
T3 49.090140 100.0 46.04 False
T4 38.487265 85.4 58.60 False

a) Predict the output of the following python statement:


i. df.shape
ii. df[1:3]
iii) Write Python statement to display the data of Col3 column of indexes T2 to T4.

OR (Option for part (iii) only)


Write Python statement to compute and display the difference of data of Col2 column and
Col3 column of the above given Data Frame.
32. Harsh, a movie information collector has designed a database for Indian movies. Help him (4)
by writing answers of the following questions based on the given table MOVIE:

i) Write a query to display movie name and production – both in upper case
ii) Write a query to display all details of movies released in year 1989
iii) Write a query to count production wise total number of movies
OR (Option for part iii only)
Write a query to count rating wise total number of movies
Section – E
33. Knowledge Supplement Organisation has set up its new centre at Mangalore for its (5)
office and web based activities. It has 4 blocks of buildings as shown in the diagram
below:

a) Suggest a cable layout of connections between the blocks.


b) Suggest the most suitable place (i.e. block) to house the server of this organization with a
suitable reason.
c) Suggest the placement of the following devices with justification
(i) Repeater
(ii) Hub/Switch
d) The organization is planning to link its front office situated in the city in a hilly region
where cable connection is not feasible, suggest an economic way to connect it with
reasonably high speed?
e) VoIP technology is to be used which allows one to make voice calls using a broadband
internet connection. Expand the term VoIP.
34. Write suitable SQL query for the following: (5)
i) Display 4 characters extracted from 3rd character onwards from string ‘IMPOSSIBLE’. ii)
Display the position of occurrence of string ‘GO’ in the string “LET’s GO to GOA”. iii)
Round off the value 257.75 to nearest ten rupees. iv)
Display the remainder of 18 divided by 5.
v) Remove all the leading and trailing spaces from a column passwd of the table ‘USER’.
OR
Explain the following SQL functions using suitable examples.
i) MONTHNAME() ii) SUBSTRING() iii) LTRIM() iv) ROUND() v) RIGHT()
35. Write Python programming to display a bar chart of the popularity of programming (5)
Languages.
Sample data:
Programming languages: Python, Java, PHP, JavaScript
Popularity: 8.6, 8, 7.8, 6.4
OR

Write Python code to plot a bar chart for India’s medal tally as shown below:

You might also like