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

Paper 2

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

Paper 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 12
Time: Three Hours INFORMATICS PRACTICES (065) Max, Marke: 70 General Instructions : (i) This question paper contains five sections, Section A to E, (ii) All questions are compulsory, (iii) Section A have 18 questions carrying 01 mark each, (ia) Section B has 07 Very Short Answer type questions carrying 02 marks each. (v) Section C has 05 Short Answer type questions carrying 03 marks each. (wi) Section D has 03 Long Answer type questions carrying 05 marks each. to Seg co a ‘cach, One internal choice is given in Q35 oo eal ‘marks shoen (vill) Aree Wi nig yen Ln oy cei. P.128 — Move FAST WITH INFORMATICS PRACTICES ~ Xil ae 8. Which one of the following is not an aggregate function ? ; (@) ROUND() (b) SUM() (0) COUNT( ) (4) AVG() 9. Which one of the following functions is used to find the largest value from the given data in MySQL ? (@) MAX() (6) MAXIMUM() —_(c) BIG( ) (@) LARGE( ) 10. To display last five rows of a series object ‘S’, you may write : i (a) SHead( ) (b) S.Tail(5) (0) S-Head(5) @) S.tail) 11. Which of the following statement will import pandas library ? 1 (a) Import pandas as pd () import Pandas as py (0) import pandas as pd (@) import panda as pd 12. Which of the following can be used to specify the data while creating a DataFrame? 1 (@) Series (®) List of Dictionaries (0) Structured ndarray (iv) All of these 13. Which amongst the following is not an example of a browser if: 1 (a) Chrome (b) Firefox (©) Avast (@) Edge 14. In SQL, which function is used to display current date and time ? 1 (a) Date () (0) Time () (©) Current () (@) Now () 15. Legal term to describe the rights of a creator of original creative or artistic work is: 1 (@) Copyright @) Copyleft (9 GPL (d) FOSS 16. ____ is the trail of data we leave behind when we visit any website (or use any online application or portal) to fill-in data or perform any transaction. 1 (a) Offline phishing (b) Offline footprint (©) Digital footprint (@) Digital phishing Q17 and 018 are ASSERTION AND REASONING based questions. Mark the correct choice as 17. ‘Assertion (A). Internet cookies are the text files that contain small pieces of data ike ‘a username, password and user’s preferences while surfing the Internet. Reasoning (R). To make browsing the Internet faster and easier, its required f0 10% certain information on the server's computer. 18. Assertion (A). DataFrame has both a row and column index. * Reasoning (R. A DataFrame isa two-dimensional labelled data structure ikea 3b of MySQL: Aube SECTION B | 19. Explain the terms Web page and Home Page. - | 2 ‘Mention any four networking goals. 20. Rashmi, a database administrator needs to display house wise total number of records of ‘Red’ and ‘Yellow’ house. She is encountering an error while executing the following query : SELECT HOUSE, COUNT (*) FROM STUDENT GROUP BY HOUSE WHERE HOUSE = ‘RED? OR HOUSE = ‘YELLOW? ; Help her in identifying the reason of the error and write the correct query 2 suggesting the possible correction (s). 21. What is the purpose of Order By clause in SQL ? Explain with the help of suitable example. 2 22. Write a program to create a series object using a dictionary that stores the number of students in each house of class 12D of your school. Note. Assume four house names are Beas, Chenab, Ravi and Satluj having 18, 2, 20, i students respectively and pandas library has been imported as pid. 23, List any four benefits of e-waste management. 2 oe fi Or Mention any four net etiquettes. 24, What will be the output of the following code : >> import pandas as pd >>> A= pd.Senis = >>> print(A >, 2 (@) List the index of the DataFrame df 8 (a List the column names of DataFrame df. 2 ms "SECTION C 26. Wires peters dn Osea Table : PURCHASE (@ SELECT LENGTH(CNAME) FROM PURCHASE WHERE QUANTITY > 100; © (ii) SELECT CNAME FROM PURCHASE WHERE MONTH(DOP) = 35 (iii) SELECT MOD (QUANTITY, DAY(DOP) ) FROM PURCHASE WHERE CITY = ‘CHANDIGARH’ ; 3 MOVE FAST WITH INFORMATICS PRACTICES — Xil “27. Weite a Python code to create a Datarame with appropriate column headings from r i the list given below: “Gurman’ ,98],[102, "Rajveer’ 95], [103, ‘Samar’ 196),[104, "Yuvraj",a)) bs ‘< a [{1e1, SECTION D 31. Write suitable SQL query for the following : 5 (@) Display 7 characters extracted from 7th left character onwards from the string ‘INDIA SHINING’. (i) Display the position of occurrence of string ‘COME’ in the string ‘WELCOME WORLD’. (iii) Round off the value 23.78 to one decimal place. (iv) Display the remainder of 100 divided by 9. (2) Remove all the expected leading and trailing spaces from a column userid of the table ‘USERS’. Or Explain the following SQL functions using suitable examples. (@) UCASE() (i) TRIM() (ii) MID() (2) DAYNAME() (7) POWER() . 32. Prime Computer services Ltd. is an International Educational Organization. It is planning to set up its India campus at Mumbai with its head office in Delhi. The Mumbai office campus has four main buildings : ADMIN, ACCOUNTS, EXAMINATION and RESULT... 8) 5 2 as a network expert have to suggest the best network related solutions for their ‘problems raised in (i) to (0), keeping in mind the distances between the buildings and P.132 MOVE FAST WITH INFORMATICS PRACTICES ~ XI (i) Suggest the most appropriate location of the server inside the MUMBAS campus (out of the four buildings) to get the best connectivity for maximum number of computers. Justify your answer, (li) Suggest and draw cable layout to efficiently connect various buildings within the MUMBAI campus for a wired connectivity. (ii) Which networking device will you suggest to be procured by the company to interconnect all the computers of various buildings of MUMBAI campus 7 Company is planning to get its website designed which will allow students to see their results after registering themselves on its server. Out of the static or dynamic, which type of website will you suggest ? (0) Which of the following will you suggest to establish the online face to face communication between the people in the ADMIN office of Mumbai campus and Delhi head office ? (@) Cable TY (¥) Email (©) Video conferencing sg RTOS Set 38. Write Python code to plot a bar chart for India’s medal tally as shown below (iv) viod bss REAR RY VBR, statement o save this chart, fa Ore & — SECTION E 34. sa a database administrator has designed a database for a clothing shop. Help t by writing answers of the following questions based on the given table : Table : CLOTH () Write a query to display cloth names in lower case. (ii) Write a query to display the lowest price of the cloths. (iii) Write a query to count total number of cloths purchased of medium size. ‘14142 Or (Option for part (iti) only) Write a query to count year wise total number of cloths purchased. 35. Mr. Som, a data analyst has designed the DataFrame df that contains data about Computer Olympiad with ‘COT’, ‘CO2’, ‘CO3’, ‘CO4’, ‘COS’ as indexes shown below. ‘Answer the following questions : “(@) Predict the output ofthe following python statement: (i) dfshape age (ii) dff2:4] (&) Write Python to CO4. statement to display the data of Topper ‘column of indexes CO2 Or (Option for part (b) only) i the difference of data of Write Python statement to compute and display 7 column of the above given Tot_students column and First_Runnerup 442 DataFrame. SOLUTION . (MAN ; (© Installing antivirus for protection (0 Unused old computers 21. The ORDER BY clause lets arrange the result set in the order of a given column, multiple columns or on the basis of an expression. For example, a table student's records may be arranged Marks wise using ORDER BY. Table : Student jame_| Folin | Name | Marks 13 XYZ | 9250 14 Hy 80.00 oy ABC | 7625 12 DEF_| 63.50 22. St={'Beas' :18, 'Chenab' :20, ‘Ravi' :26, *Satluj' :18} S1=pd.Series(St) 23. The e-waste management : (i saves the environment and natural resources (ii) allows for recovery of precious metals (iii) protects public health and water quality (iv) saves landfill spaces. Or ( Ensure no copyright violation (ii) Share the expertise with others on the Internet (iii) Avoid cyber bullying (iv) Respect other's privacy and diversity 24. 0 False 1 False 2 True 3 False 25. (i) The index labels of df will include QU, Q2, Q3, Q4, A, B, C (ii) The column names of df will be : 1, 2 2. (i) 8 (i) No Output (i) 0 Bh} 27. import pandas as pd data = [[101, "Gurman' 98], [102, 'Rajveer",95], [1€3, ‘Samar’ ,96], [1e4, "Yuvraj", 88] ] df = pd.DataFrame(data, columns = ['Rno’, ‘Name’, 'Marks']) 28. (i Stock{’Special_Price’] = [135,150,200,400] (@) Stock loc{‘4’] = [‘The Secret’, 800] (iii) Stock = Stock.drop(‘Special_Price’, axis = 1) P.136 MOVE FAST Wied INFORMAMCS PRACTICES = XM 20. (i) This is an act of Cyber Bullying, a cyber crime. (ii) She should bring it to the notice of her parents and school authorities, and then report to the’ police: , : A (iii) Yes, there is a law to stop and counter cyber crimes. This law is known as IT Act 2000. : Or Tee Plagiarism is the act of using or stealing someone else's intellectual work, ideas ete, and passing it as your own work. In other words, plagiarismis a failure in giving credit to its source. ‘ ’ Plagiarism is a fraud and violation of Intellectual Property Rights. Since intellectual property holds a legal entity status, violating its owner's right is a legally punishable sort a 5%: offence. 62" 8S ‘dena?’ .8£: ‘2098 Two ways to avoid plagiarism are : Gejestase bg = f2 (® Using own creative work. tdremopsanm siesw~9 91 ¢ (i) Citing the source and giving the credibito the creator whervusing (their work with permission. alstem euolorg to yrovengi tol ewolls ( 30. (i) SELECT max(Marks) FROM Student GROUP BY Gender 7!” (i) SELECT min(Marks) FROM Student GROUP BY ‘City! s!27°! "v8" ©) (iii) SELECT Gender, count(Gender) FROM, student GROUP BY Gender ; or dighiyqoo ert aruentd fonrotrd oft Orersslto ctw seitregxe okt orale (i) The GROUP BY clause combines all those records;:that;have,identical values in a Particular field or a group of fields, This grouping, results.into one summary record per group if group-functions are used with SER ae HITS Given a table CommunityWork with the following fields : pela 0 Table : CommunityWork SetES ae ~~ £ : ei € > HRBYEO £0 SD 10 dBbuloni lliw th % aledsilxobal off 6) ec Amna Pravir Karan 8) — 0s Rose jugiaO oY (it) To get the total number of hours spent by male and female, we can write SOL query as: ‘SELECT Sex, SUM (HoursSpent) FROM CommunityWork 26 esbnsq troqnt XS < {ROUREN sexser} [2e,‘reSvteA* <6] .[8e, ‘nem wo" 16f]]} = s¢sb 31.) SELECT Mia@INDIA SHINING, 7, 7) ; ee Gi) SELECT inst WORLD’, “COMBS (ii) SELECT round(23.78, 1) ;1008.008.0"1, : (je) SELECT mod(100, 9) ; 008 (0) SELECT trim(userid) FROM users jl_le42))9 wh oboote ~ Arc Or wenten 1. UCASE( ). It converts the given string into upper ease, 10/7 Example: SELECT UCASE (‘hello world’ ); Output : HELLO WORLD i] 2. TRIM). Bs tag wl ing es a Example : SELECT TRIM( ‘Hello world’); (0. Output: Helo world ((y9_ Aso 97 oct Siac acne pete liste ows» POOH Example : SELECT MID( ‘Hello worddy4y;2)9) (1 0 Output: 10 {HTON9 Mona (49749 zt DAYNAMEC( ): It ‘retiittis the! Aamé’ Of the! Weekday for a inet date ae ‘SELECT DAYNAME ( ‘202209-22’) ; Output : ae CSO ANALG GORD HTOND Mo; (* cae eae ea 4442 5. POWER(). Itreturs the value ofa umber raise to the power of sitet number SELECT POW(9,2)5 ) trsensiate weirs Jpol. 4b) 20274 (iii) Hub/Switch (2) Dynan

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy