Informatics Practices Question Paper 2023
General Instructions :
- This question paper contains five sections, Sections A to E
- All questions are compulsory.
- Section A has 18 questions carrying 1 mark each.
- Section B has 7 very short answer-type questions carrying 2 marks each.
- Section C has 5 Short Answer type questions carrying 3 marks each.
- Section D has 3 Long Answer type questions carrying 5 marks each.
- Section E has 2 questions carrying 4 marks each.
- All programming questions are to be answered using Python Language only
Part-A
1. Which of the following topologies is very efficient and all nodes are connected to a central hub? |
a) Star b) Bus c) Tree d) Ring |
2. Ramandeep is a young woman with great aspirations and has a good team of like-minded people. She along with her team members started a company to sell handicrafts online and also designed a logo for their company. What type of intellectual property does this logo represent? |
a) Patents b) Design c) Copyright d) Trademark |
3. Which of the following is a type of cybercrime where objectionable and demeaning comments are posted on social media platform about a person, such that he/she is mentally harassed? |
a) Phishing b) Cyber bullying c) Hacking d) Identity Theft |
4. Which is the correct output of the following SQL command? SELECT ROUND (7876.4568, 2); |
a) 7876.46 b) 7876.45 c) 7900 d) 4568 |
5. Aggregate functions are also known as: |
a) Scalar Functions b) Single Row Function c) Multiple Row Function d) Hybrid Functions |
6. Primary law in India for matters related to e-commerce and cyber crime is: |
a) IT Act 1995 b) IT Act 1998 c) IT Act 2000 d) IT Act 2010 |
7. Ravisha has stored the records of all students of her class in a MYSQL table. Suggest a suitable SQL clause that she should use to display the names of students in alphabetical order. |
a) Sort By b) Group By c) Align By d) Order By |
8. To remove the leading and trailing space from data values in a column of MySql Table, we use |
a) Left() b) Trim() c) Right() d) LTrim() |
9. If the substring is not present in a string, the INSTR() returns: |
a) -1 b) 1 c) 0 d) NULL |
10. What will be the output of the following code? |
11. Which of the following is a two-dimensional labelled data structure of Python? |
a) Relation b) Series c) Dataframe d) Square |
12. To compare data values of commission earned by salesmen over a year, which of the following type of graph should preferably be used? |
a) scatter b) line c) area d) bar |
13. Which of the following is not a web browser? |
a) Opera b) linux c) Google Chrome d) Mozilla Firefox |
14. Which of the following is not a valid aggregate function in MYSQL? |
a) Count() b) Max() c) Sum() d) Len() |
15. The digital footprint that we leave online unintentionally is called |
a) Active digital footprint b) True digital footprint c) Passive digital footprint d) False digital footprint |
16. E-waste is responsible for the degradation of our environment if not properly treated or disposed of. Some of the feasible methods of e-waste management are reduce,_________ and recycle |
a) reuse b) resubmit c) recheck d) regular |
Q17 and 18 are ASSERTION (A) and REASONING (R) based questions. Mark the correct choice as
|
17. Assertion (A): A static webpage does not change for each person visiting the web page.
Reason (R): When a web server receives a request for a dynamic web page, it locates and updates the page and sends it to the browser of the client |
18. Assertion (A): The output of addition of two series will be NaN if one of the elements or both the elements have no value(s).
Reason (R): While performing mathematical operations on a series, by default all missing values are filled in with 0. |
Part-B
19. What is web server ? How is it different from web browser? |
or |
What do you understand by the term cookies? Give any two benefits of cookies. |
20. Keshav has written the query to find out the sum of bonus earned by the employees of WEST zone
SELECT zone,total(bonus) FROM employee Having zone=’WEST’; But he got an error. Identify the errors and rewrite the query by underlining the correction(s) done |
21. Differentiate between Count( )and count(*) functions in MYSQL.Give suitable examples to support your answer. |
22. Write a python program to create series object country using a list that stores the capital of each country |
23. Explain plagiarism with an example. |
or |
Nowdays all of us frequently use social media to connect with our friends. Give any two netiquettes that we should follow while communicating on social media. |
24. what will be the output of following code |
25. Carefully observe the following code : |
i) In the data frame player created above set the row labels as ‘player1’, ‘player2’, ‘player3’, ‘player4’, ‘player5’ |
ii) Rename the column ‘points’ to ‘netpoint’ in the DataFrame player. |
SECTION – C
- Consider the table Patient given below and write SQL commands.
Table: Patient
Patientid | Name | City | Phone | Dateofadm | Department |
1000001 | Ritvik Garg | Delhi | 68476213 | 2021-12-10 | Surgery |
1000002 | Rahil Arora | Mumbai | 36546321 | 2022-01-08 | Medicine |
1000003 | Mehak Bhatt | Delhi | 68421879 | 2022-02-02 | Cardiology |
1000004 | Soumik Rao | Delhi | 26543266 | 2022-01-11 | Medicine |
1000005 | Suresh Sood | Bangaloe | 65432442 | 2021-03-09 | Surgery |
i) Display the details of all patients who were admitted in January |
ii) Count the total number of patients from Delhi. |
iii) display the last 2 digits of the Patientid all patients from surgery department . |
27. Kavyaanjali, a chemical analyst needs to arrange data of few elements in the form of two series containing symbols and their atomic numbers respectively . Thereafter, the data of these two series has to be arranged and displayed in the form of data as shown below:
Symbol | Atomic Number | |
Hydrogen | H | 1 |
Helium | He | 2 |
Lithium | Li | 3 |
Beryllium | Be | 4 |
Help her in writing suitable Python code to complete the task.
28. Consider the given DataFrame ’health’.
Disease name | Agent | |
0 | Common cold | Virus |
1 | Chickenpox | Virus |
2 | Cholera | Bacteria |
3 | Tuberculosis | Bacteria |
Write suitable Python statements for the following :
i) Remove the row containing details of disease named Tuberculosis. |
ii) Add a new disease named malaria caused by ‘Protozoa’. |
iii) Display the last 2 rows. |
29. Manohar received an email from a company, named Makemoney Pvt. Ltd., claiming that Manohar has won Rupees 20 lakhs in a survey done online. In order to claim the prize money, he was required to answer few security questions such as his Name, Account number, PAN card details , Phone number and OTP for verification purposes. For this he had to click on the link provided in the email.
(i) Should Manohar give the required details to the company?
(ii) What is the activity depicted above?
(iii) what should he do with this email?
OR
What do you understand by the term Hacking? Write any two measures that one should take to avoid being the victim of hacking.
30. Write the output(i-iii) for the following SQL commands.
Table: FASHION
ID | PRODUCT | Price | Qty |
F01 | Kajal | 970 | 10 |
F02 | Foundation | 2100 | 15 |
F03 | Night Cream | 1700 | 20 |
F04 | Day Cream | 1400 | 10 |
F05 | Shampoo | 1200 | 25 |
F06 | Lipstick | 850 | 32 |
i) Select count(product) From Fashion; |
ii) Select sum (price*qty) From Fashion Where product =”night Cream”; |
iii) Select left(product 4) from Fashion where price>1500; |
OR |
i) SELECT SUBSTR (“CLIMATE CHANGE”,4,4); |
ii) SELECT UCASE (RIGHT(“POLLUTION”,3)); |
iii) SELECT LENGTH (“HAPPY”)+3; |
SECTION-D
31. Write the SQl commands which will perform the following operations: |
(i) To display the year from your Date of Admission which is 2023-05-15. |
(ii) To convert your email id’ABC@XYZ.com’ to lowercase. |
(iii) To remove leading spaces from a string “my country’. |
(iv) To display the current date |
(v) To display the value of 106 |
OR
SNO | Itemname | Company | Stockdate | Price | Discount |
1 | Monitor | HP | 2021-12-20 | 15499.739 | 15 |
2 | Webcam | Logitech | 2020-02-03 | 4890.90 | 5 |
3 | Keyboard | Logitech | 2022-08-19 | 1878.985 | 30 |
4 | Mouse | HCL | 2021-05-16 | 1200.00 | 7 |
5 | Speakers | iBall | 2021-10-19 | Null | 25 |
(i) Display the first 3 characters of all Itemnames. |
(ii) Display the names of all items whose Stockday is “Monday”. |
(iii) Display the total price of all the products. |
(iv) Display the maximum price. |
(v) Display the average price of all the products by the company named ‘Logitech’. |
32. XEED Private Ltd., Delhi is a company that deals with educational toys. They have Different divisions HR (A1) , Sales (A2).Production (A3) and Marketing(A4).
The layout of the Delhi branch is :
IMAGE
The company also has branch in Bangalore .The management wants to connect all the divisions as well as all the computers of each division (A1,A2,A3,A4).
The distance between the wings is as follows:
A3 to A1 | 25m |
A1 to A2 | 40m |
A2 to A4 | 25m |
A4 to A3 | 20m |
A3 to A2 | 30m |
A1 to A4 | 170m |
Delhi head Office to Bangalore Office | 2154km |
Number of computers in each of the wing :
A1 | 50 |
A2 | 40 |
A3 | 110 |
A4 | 60 |
Based on the above specifications, answer the following questions:
(i) Suggest the topology and draw the most suitable cable layout for connecting all the divisions of Delhi branch. |
(ii) Suggest the kind of network required (out of LAN, MAN, WAN) for connecting production (A3) with the Bangalore Branch. |
(iii) Which device can be used to connect the network of DelhiBranch to the Internet? This device should be able to receive data, analyze it, and then transmit it to the network. |
(iv) Suggest placement of switch/hub with justification |
(v) Many employees were finding it difficult to cope up with work pressure and hence were showing stress-related symptoms. In order to improve the mental health of its employees, HR planned to conduct an online session with a mental health expert from Mumbai. Out of the options given below, suggest the protocol that will help to send the voice signals over the internet to conduct the session successfully.
(a) FTP (b)SMTP (C) VOIP (d) POP |
33. Consider the following graph. Write the Python code to plot it . Also add the Title, label of the X and Y axis.
Use the following data for plotting the graph
Smarks=[10,40,30,60,55]
Sname=[“sahil”,”Depak”,”Anil”,”Ravi”,”Riti”]
OR
Write Python code to draw the following bar graph representing the total sales in each quarter. Add the Title, label for X-axis and Y-axis.
Use the following data for plotting for graph:
Sales= [450,300,500,650]
Qtr = [“QTR1”,”QTR2”,”QTR3”,”QTR4”]
Section –E
34. Consider the following table Schooldata:
Admno | Name | Grade | Club | Marks | Gender |
20150001 | Sargram Singh | 12 | STEM | 86 | M |
20140212 | Alok Kumar | 10 | SPACE | 75 | M |
20090234 | Mohit Gaur | 11 | SPACE | 84 | M |
20130216 | Romil Malik | 10 | READER | 91 | M |
20190227 | Tanvi Batra | 11 | STEM | 70 | F |
20120200 | Nomita Ranjan | 12 | STEM | 64 | F |
Write SQL queries for the following:
i) Display the average marks secured by each Gender. |
ii) Display the minimum marks secured by the students of grade 10. |
iii) Display the total number of students in each club number students are more than 1. |
OR (Option for Part(iii) only) |
iii) Display the maximum and minimum marks secured by each gender. |
35. Consider the following DataFrame ‘mdf’.
Roll no | Name | English | Hindi | Maths | |
0 | 1 | Aditya | 23 | 20 | 28 |
1 | 2 | Balwant | 18 | 1 | 25 |
2 | 3 | Chirag | 27 | 23 | 30 |
3 | 4 | Deepak | 11 | 3 | 7 |
4 | 5 | Eva | 17 | 21 | 4 |
(A) Write a Python statement for the following for the above DataFrame ‘mdf’: |
(i)To display the records of the students having roll numbers 2 and 3 |
(ii) To increase the marks of the subject Math by 4 all students. |
(B) Write a Python statement to display the Rollno and Name of all students who secured less than 10 marks in Maths |
OR (Option for Part B only) |
Write a Python statement to display the total marks i.e., the sum of marks secures in English, Hindi, and Maths for all students. |