You are on page 1of 6
VIDYALAYA SANGATHAN::HYDERABAD REGION 2023-24 ih KENDRIVA VIDYSUOREBOARD EXAMINATION sonaaa CLASS: XII SUBJECT: INFORMATICS PRACTICES (065) MAXIMUM MARKS:70 ‘TIME ALLOWED: 3 Hrs. General Instructions. ; 1, This question paper contains five sections, Section A to E. 2. All questions are compulsory. 4 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 [has 03 questions carrying 0S marks each. All programming questions are to be answered using Python Language only. _ (No ___SECTION-A 1 | Predict the output of the following query SELECT POW(S,2) a) 10 b) 25. 32 a) 10.0 | 2 | Whicivof the following SQL functions works on multiple records of a table 1 | —— fa) LENGTH ‘bJMOD __c)SUM )SUBSTR 3° | Which of the following string functions will search for a string in another 1 string |_| a) SUBSTR b) INSTR. cJLENGTH MID 4) URL stands for a) Uniform Resource Locator ) Unified Resource Locator | \ __|___b)_Unique Resource Location d) Unknown Resource Locator Rajini has written the following python code to convert a csv file data intoa | 1 dataframe . Fill in the blank with suitable command, import pandas as pd df=pd.__(“D:\\Myfiles\\sample.csv”) | print(dl) | a) to_esv. b) read_esv ¢) read.csv d)to.csv _| i 6 | Any unlawful activity of sending fraudulent messages or emails that looks |1 original , appears to come from an authentic source to collect sensitive information is called, a) Phishing b) Cyber stalking c)Cyber Bullying d)Ransomware 7 zl 7 Which of the following is not a source of e-waste a) Medical devices c) Non functional Computer parts | b) Telecom equipment d) Kitchen waste 7 | 8 ‘The digital footprint can be saved in which of the following locations? 1 | a)Download folder b) User account | ¢) Browser settings and web server) Google Drive 9 Which of the following properties of series to be used to extract data from 1 Series ‘S' _| a) S.size _bjS.shape _¢)S.dtype _d)S.data = vis used for 2D plots in Python. 1 \ a)_pandas___bjukinter cjmath d)matplotlib Which of the following is an example of FOSS (Free and Open source software) | 1 | WINDOWS _b)MS OFFICE c)PYTHON __d)QUICKHEAL AntiVirus | | Which of the following queries will display all the employee records as per in | xeniority based on Date of joining ( Seniormost employee ,the one who joined | firat in the organisation, is displayed first) | a) SELECT * FROM EMPLOYEE ORDER BY DOJ desc; | b) SELECT * FROM EMPLOYEE WHERE DOJ Desc; | ¢) SELRCT* FROM EMPLOYEE GROUP BY DOJ | | d) SELECT * FROM EMPLOYEE ORDER BY DOJ ; 3 14 —} a) Client ___b) Server" “oygori i$ Hub i Consider the following string “Preoceupied”. Which of the following commands | ‘The main computer in any network ip called a will display “cup” 2) SELECT SUBSTR(Preoccupied",6,3) 6) SELECT MID(‘Preoccupied”, 6,3) S] SELECT INSTR(‘Preoccupied”"cu's} dj Both a and b 15 ae eal that is automatically created when a person uses The THGGAeT On any digital devices like laptops, smart Phone, tablets etc is called ___ 16 a) cyber Bullying __b) Phishin, ©) Digital foot print _d) Cyber crime What is the output produced by the following SQL statement SELECT ROUND(6745.2458,-2) a) 6745.24 b) 6745.26) 6800.00 'd) 6700.00 17 Assertion ( A] : To make the histogram with Matplotlib, we can use the matplotlib.pyplot. hist() function : Reasoning (R ) : The bin parameter is used to distribute the histogram into different sectors i Both A and R are true and R is the correct explanation for A il Both A and R are true and R is not the correct explanation for A iii, A is True but Ris False iv. Ais false but R is True 18 Reasoning (R ) : they may change only if the actual HTML nes is manually edited. i) Both A and R are true and Ris the correct explanation for A il. Both A and R are true and Ris not the correct explanation for A iii, A is True but R is False iv. Ais false but Ris True Assertion ( A) = A static webpage contents that do not change. 1 SECTION-B What is the difference between Hub, Switch and Router? OR Explain the difference between website and webpage? 20 The python code below has syntactical errors.Rewrite the correct code and] underline the corrections made. Import pandas as pd Productname”:|"monitor”,"Keyboard”],"Price”:|4500,500}} df=pd.dataframe(df) i PRINT(df) 21. Given a string str= "All is Well following statements Y i) SELECT MoD(len(str),3) ii) SELECT UCASE(SUBSTR(str,5,4)) . What will be the output produced by the 2 2 Write program to create a series which stores marks of S subjects (index 2 should be the names of the subjects) 23 What are Intellectual property rights? Suggest any two ways of protecting IPR. | 2 ig of Prices of different vegetables write statement faa Series cons | for the following. |) ‘To display all the vegetables whose Price is less than 30, | {1)To Increase the price of all vegetables by 3/- | Price ‘Onion’ 45 Cabbage _| 42 Potato | 35. | | can Carrot | 28, al | | What do you mean by aggregate () function? Expik y two in short ice) ___SECTION-¢ \ ra Connider the following SQL table PLAYERS and answer the qui | | [Mayer _| Hundreds | Fifties Avgruns 1 | Rohit 31 84 49.18 | F[atarma | 1) Vira koh 11s 57.56 | Tendatiar 145, 44.83, i | M8 Dhoni 82 50.23 5 Dhawan 56 44.11 | | j | | Write an SQL query to display | 4) Maximum and Minimum Hundreds of the players table | i) Display the names of the players according the average runs highest to least ili) Display the first 5 letter of the players’ name OR | Bind the output of the following queries ¥) SELECT count(*) FROM PLAYERS WHERE Hundreds>40; 4) SELECT RIGHT(player,3) FROM PLAYERS WHERE Fifties> 100; 27 | Kind the output of the following cod i import pandas as pd | 1» f* Science"|30,34,40,25), “Commerce”:|20,21,19, 18], “Humanities":(12,14,16,19] } df+pd.DataFrame(D) df-df.rename(index=(0;"11A", 1:"11B”,2:"12A",3:"12B"}) print(d A print(dfioc[0:1,0:1)) print(df.T) i) SELECT Player, ROUND(Avgruns,1) FROM PLAYERS WHERE avgruns>=50; 3 st” Consider the following two table Cus! jomer and Salesman SA AN TABLES HEEEEEEEeEEeeeeee SALESMAN 1D San MAN Cay COMMISSION S001 James Hoog New York O1S $002 Natl Kite Paris os [it Mey [onan ol Me Lyon Paris O14 Paul Adan Rome 013 CUSTOMER TABLE: CUSTOMER ID |_CUST NAME, CITy RADE, SALESMAN ID 3002 Nick Rimando [New York | 100 5001 3007 Brad Davis w York | 200 3001 3005. Graham Zust California 200 S002 S008 Julian Green London 300) 3002 Ez 3004 Fabian Johnson | Paris 300 “S006 3009) Geoff Cameron | Berlin 100. 5003 3003, Jozy Altidor Moscow 200. $007 a. Write a SQL query to display Salesman, above table where the salesperson and customer belongs to same city. b. Write a SQL query to display or those orders where order amount c. Write a SQL query to display Customer Name, city, Commission the all salesperson(s) and their respective the customer(s). cust_name and city from d_no, purch_amt, cust_name, city of exists between 500 and 2000. Salesman, 29 ) What are Digital footprints? ii) While trying to trace out few files from his system, few files are not being opened and few files opened with data in unreadable format. What could be the reasons? What are the steps to prevent this situation and how protect remaining files in the system? OR i) __ What are Netiquettes? Mention any 2 Netiquettes. Rakshit noticed 30 ‘Write a Python program to create a Event, Gold | Silver _| Bronze 0 Shooting [7 9 6 1 Athletics [6 14 9 25 Archery [5 [2 2 dataframe MEDAL_TALLY SECTION-D 31 Shradha is leaning MYSQL co commands suitable to particu! mmands. She is confused in selecting ar contexts. Fill the blanks in the following table Context Command i) ‘Add a new record to the table ii) Add new column to the table | iii) Changing the value in a particular record iv) Removing the table from database completely 32 | Asian Games medal tally of India in different @ | him by writing suitable python statements for the s created a datalrame "MEDAL ‘ALL LY" by name M representing, Vents as shown below, Help tasks i) to iv) Event__|Gold__|Silver_| Bi 0 [Shooting [7 9 o 1_| Athletics [6 14 9 2 [Archery [5 2 2 i) Add new event data “Squash” with Gold-2, Silver. Fe "i -1, Bi = ii) Display the events and respective Gold medals data rome? iii) as a new column “total” to store Total number of medals of each event. i : (Option for part iii only) Write statement to export the DataFrame to a csv file named data,csv stored in E:Drive | SECTION-E 33) ABC courier service is tracking the information of few orders. Write suitable | 5 SQL statements to extract the information mentioned below. TABLE: ORDER | ORDERID | Item_desc Price Toty | OrderDate 127 Story Book 230 [3 [12-10-2023 165 Shirt 980 [2 11-09-2023 209 Flower bouquet | 252 [3 02-10-2023 189 Electronic 1362 I (07-08-2023 gadget 278 Plastic tins 56 (a2 (03-10-2023 i) Write an SQL statement to display the items which were ordered in October month i) Write an SQL query to display the items as per ascending order of Price iii) Write an SQL query to extract Day on which shirt has been ordered iv) Write an SQL query to update the price of story Book to 210/- ¥) Query to Delete the record of order no.165 from the above table OR what will be the output of the following queries i) SELECT AVG(Price) FROM ORDER WHERE OrderID>200; ii) SELECT INSTR(Item_desc,”st") FROM ORDER ; iii) SELECT LENGTH(Item_desc) FROM ORDER where Qty> 10; ix) SELECT Orderid MOD (price, Qty) FROM ORDER WHERE Quy | Y)— SELECT Item_dese, MONTH(OrderDate) FROM ORDER WHERE PRICE>500; Sa} ABO & fem In Mumbai. Tis planning to set up @ network with 4 different 5 sections -Admin, Accounts, production, Sales located at different places. As @ wecwork expert suggest the best network related solutions for their problems raised in i) to V), Keeping in mind the distance between the sections and other given parameters. Shortest distance between the four sections + ‘Admin to Accounts ~_ 60 mt ‘Admin to Production 120mt ‘Admin to Sales 35 mt Production to Sales Tao mt | [Accounts to Production 76 mt | | [Accounts to Sales 6 1 ection are Number of compu 54 s follows d in each 8 40 12 25 i) Suggest the most suitable layout of the connection between sections ii) Suggest the placement of following devices with justification a) SWITCH b) MODEM iii) Name the device that will be required to protect the network from Unwanted and unauthorised access from outsiders iv) Suggest a device that shall be needed to provide wireless Internet access in all the devices of different sections v) _ Firm wants to link its another office situated in hilly region. Suggest a way to connect it economically 35 The following table shows the scores of India and Australia in first 5 overs in | 5 world cup 2023. Country 1 2 3 4 5 over India Ss 8 3 {2 6 Australi [4 6 5 13 2 a | Write python code to draw the bargraph “SCORES” comparing the scores mentioned above. OR Write a python program to draw the line chart depicting the data mentioned in the above table. Write statements to add suitable Title, legend and labels for x,y axes. u ‘ ‘ 1

You might also like