You are on page 1of 13
EEE Time : Three Hours a INFORMATICS PRACTICES (065) Max. Marks SECTION A 1. Which of the following topologies is very efficient and all nodes are connected to 2 central hub ? 1 (@) Star (6) Tree (9 Bus @ 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 ? 1 (a) Patents (®) Copyright (© Design (@ 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 ? 1 (@) Phishing (®) Hacking (©) Cyber bullying (@ Identity Theft 4. Which of the following is the correct output of the following SQL command ? SELECT ROUND(7876.4568, 2)3 (@) 7876.46 (b) 7876.45 (©) 7900 (@ 7900.4568 5. Aggregate functions are also known as : 1 @ Scalar functions (®) Single row functions (© Multiple row functions @ Hybrid functions 6. Primary law in India for matters related to e-commerce and cyber crime is : (@) IT Act 1995 (® IT Act 2000 (© TT Act 1998 (@ 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 order. © sort By () ALIGN BY (Q GROUP BY —(d) ORDER BY P.139) Bes Cilia P.140 MOVE FAST WITH INFORMATICS PRACTICES ~ XII 8 To remove the leading and trailing space from data values in a column of Table, we use Mysal (a) Left( ) () Right() (Q Trim() @) Ltrim( ) 9. If the substring is not present in a string, the INSTR() returns : : @-1 (1 (c) NULL @o 10. What will be the output of the following code ? : import pandas as pd myser = pd.Series([®, @, 0]) print(myser) @ oo ® o1 () 0 0 @ 0 0 00 le 10 ay 0 0 02s Daye 2s 0 2.2 11. Which of the following is a two-dimensional labelled data structure of Python? (@ Relation ~~ (b) Dataframe (c) Series (@ 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 ? ji so 2 @)line (®) area (¢) bar (i) scatter 13. Which of the following is not a web browser ? : 1 (@ Opera ————_(b) Google Chrome (¢) Linux’ @ Mozilla Firefox 14. Which of the following is not a valid aggregate function in MYSQL ? 1 ___ @ COUNT() © SUMO ©MAX() —— @ LEN() . The digital footprint that we leave online unintentionally is called 1 _ (@) Active digital footprint __ __ (&) Passive digital footprint _ (© True digital footprint _ __(@) 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. : : = 1 @) reuse | @)techeck (©) resubmit (@) regular _ Q17 and Q18 are ASSERTION (A) and REASON (R) based questions. Mark the correct choice as 17. Assertion’ Static web page does not change foreach person visiting the we? PS Reason (R). When a web server receives a request for a dynamic web page, it 02” and updates the page and sends it to the browser of the client, Ee 18. Assertion (A). The outpui of addition of two series be NaN, if one of elements or both the elements have no value(s). i Reason (R). While performing mathematical operations on a series, by default *! missing values are filled in with 0. SECTION B 19. What is a web server ? How is it different from web browser ? 2 Or ¢ What do you understand by the term cookies ? Give any two benefits of cookies. 2 20. Keshav has written the following query to find out the sum of bonus earned by ne k 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 enltsbe __ examples to support your answer. 2 ee eee ane capital of each country. t Note. Assume four countries to be used as index of the series object are India, UK, Denmark and Thailand having their capitals as New Delhi, London, Copestwgen st 5 Bangkok respectively. ; 23. Explain plagiarism with an example. 2 Or Nowadays 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. 2 = _ 24. What willbe the output ofthe following code: 2 = import pandasaspd = s1=pd.Series(data = 2*(3, 1¢)) print(s1) %. Carefully observe the following code : 2 import pandas as pd dic = { ‘pid’ :[101, 102, 103, 104, 105], ———_*pname*:[*Shyam’, "Roushan’, ‘Archit’, ‘Medha', ‘Lalit'], : “‘sports’:{'cricket‘, ‘Tennis’, ‘Football’, ‘Cricket’, "Cricket"], *points’ :[45002, 20000, 15002, 53002, 60000]} player = pd.DataFrame(dic) Sricnieb siPrint(player) +7 _ © Write Python statements for the following : “> (@ In the dataframe player created above, set the row labels as ‘Player’, ‘Player2’, _ "Players", ‘Player4’, ‘Players’. Se (@ Rename the column ‘points’ to ‘netpoint’ in the DataFrame player. SECTION C 26. Consider the table Patient given below and write SQL commands. Table : Patient Wooo: | Ritvik Garg Delhi 68476213 | 2021-12-10 | Surgery (Cont...) ——— P.142 Move FAST WITH INFORMATICS PRACTICES ~ XIL ot 2022-01-08 2022-02-02 2022-01-11 2021-03-09 ( Display the details of all patients who were admitted in January, (i) Count the total number of patients from Delhi. (ii) Display the last 2 digits of the Patientid of all patients from Surgery Department. 3 Kavyanjali, 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 Frame as shown below : 3 Help her in writing suitable Python code to complete the task. . Consider the given DataFrame ‘health’ : 3 Write suitable Python statements for the following : (@ Remove the row containing details of disease named Tuberculosis, (i) Add a new disease named ‘Malaria’ caused by ‘Protozoa’. (i) Display the last 2 rows. Manohar received an email from a company, named Makemoney Pvt. Ltd, claiming that Manohar has won €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, y Answer the following questions : (® 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, a ee 30. Write the output (i)-(iii) for the following SQL commands. 3 Table : FASHION 2100 Night Cream Day Cream ‘Shampoo Lipstick, (SELECT COUNT (Product) FROM FASHION; (ii) SELECT SUM(Price*Qty) FROM FASHION WHERE Product = "Night Crean" ; (ii) SELECT LEFT(Product, 4) FROM FASHION WHERE Price > 1500 ; Or Find the output of the following SQL queries : 3 (i) SELECT SUBSTR("CLIMATE CHANGE”, 4, 4); (ii) SELECT UCASE(RIGHT("Pollution™, 3)); (iif) SELECT LENGTH("HAPPY") + 3; SECTION D. 31. Write the SQL queries which will perform the following operations = @ To display the year from your Date of Admission which is ‘2023-05-15’. (i) To convert your email id ‘ABC@XYZ.com’ to lowercase. (iii) To remove leading spaces from a string ‘my country’. (iv) To display current date. (v) To display the value of 10°. Or Consider a table PRODUCT with the following data : Table ; PRODUCT ie 2021-12-20 ial att : 2920-02-03. Be 2022-08-19 2021-05-16 Sth i 2021-10-19 | Write SOE queries using SQL functions to perform the following operations : @ Display the first 3 characters of all Itemnames. (@ Display the names of all items whose Stockday is “Monday”. (ii) Display the total price of all the products. (ie) Display the maximum Price. te cts by the company named “LOgites*- (©) Display the average Price of all the produ a DURE Ove FAST WHE NFORMANES PRACTICES - X01 2. XEED Private Ltd, Delhi is a company that deals with educational toys, They have different divisions HR (Al), Sales (A2), Production (A3) and Marketing (A4), ‘The layout of the Delhi branch is : 5 ‘The company also has a branch in Bangalore. The management wants to connect all the divisions as well as all the computers of each division (Al, A2, A3, A4). Based on the above specifications, answer the following questions : @ Suggest the and draw the most suitable cable layout for connecting all tatnians eDUI be pith (@_ Suggest the kind of quired (out of LAN, MAN, WAN) for connecting (@)_ Which device can be used to connect the network of Delhi Branch to the Internet ? This device should be able to receive data, analyse it and then transmit it to the network. 1 G@) Suggest the placement of switchvhub with justification, (©) Many employees were finding it difficult to up with work pressure and hence were showing stress related symptom 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 internet to conduct the ~ session successfully. mr a —_ = * (@ FIP (® SMTP’ (© Vor (@ PoP — 43, Consider the following graph. Write the Python code to plot it. Also add the Title, label for X and Y axis. 5 Marks secured by students in Term-1 Student name sing the following data for plotting the areph “Ti swianks [30405 3060) 55)": f Or Bi ne w arene gay repenring the al sn er, Add the Title, Label for X-axis and Y-axis. i P.146 — MOVE FAST WITH INFORMATICS PRACTICES — Xi SECTION E 34, Consider the following table Schooldata : ae Table : Schooldata Write SQL queries for the following : (® 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 where number of students are more than 1. Or (Option for part (ii) only) (iii) Display the maximum and minimum marks secured by each gender. 2 35, Consider the following DataFrame ‘mdf. 112 @ Write Python statements for the DataFrame ‘mdf : ( To display the records of the students having roll numbers 2 and 3. (i) To increase the marks of subject Math by 4, for all students. ® Write Python statement to display the Rolino and Name of all students who secured less than 10 marks in maths. Or (Option for part (b) only) ; Write Python statement to display the total marks i, sum of marks secured in English, Hindi and maths for all students. E SOLUTIONS a ce SECTION A 1, (a) Star 2, (d) Trademark 3. (c) Cyber bullying 4. (a) 7876.46 5. (¢) Multiple row functions 6. (v) IT Act 2000 7. (@) ORDER BY 8. (0) Trim() 9. (@) 0 10. () 0 1 2 eo°o 11, (b) Dataframe 12. (¢) bar 13. (c) Linux 14, (d) LEN() 15. (b) Passive digital footprint 16, (a) reuse 17. (b) Both (A) and (R) are true and (R) is not the correct explanation for (A). 18. (c) (A) is True but (R) is False = SECTION B Ee 19. A web browser is a program/software that is used for accessing web (WWW) documents such as web pages etc. A user can request a web page from a particular website by giving its URL in the web browser and then, the web browser retrieves the asked web page from the web server and displays it on the user's device. Web Server. A web server refers to a computer on a network running a server- software to serve web-clients’ requests. A web server stores websites and processes and delivers web pages as per users’ requests. ‘When a client computer requests a web page through a URL, web server delivers the asked web page using one or more protocols such as HTTP (Hypertext Transfer Protocol) etc. Popular Web browsers are : Google Chrome, Mozilla Firefox, Bing, Edge etc. ‘Cookies are small text files stored on a user’s computer and created and used by websites to remember basic information or to record the user's browsing activity. ‘Some benefits of cookies are : storing login details of the user ; storing chosen settings such as time zone etc. (ii) SELECT Right (Patientid, 2) FRom Patient; (MOTE The above statement assumes the type of PatientId.as char/varchar) Or SELECT MOD(Patientid, 2) FROM Patient; (NOTE The above statement assumes the erie of Patientid as Integer/Long Integer type.) 77. import pandas as pd seri=pd.Series([‘H", ‘He’, 'Li', 'Be'], index = ["Hydrogen’, ‘Helium’, ; ‘Lithium’ , ‘Berylium'}) ser2 = pd.Series([1, 2, 3, 4], index = [‘Hydrogen’, ‘Helium’, ‘Lithium’ , *Berylium’]) symData = {"Symbol':ser1, ‘Atomic Number’ :ser2} symDf = pd.DataFrame (symData) print (symDF) 28, (i) health.drop(3) (ii) health loc{4] = [’Malaria’, ‘Protozoa’] (ii) health.tail(2) 29. (i)No (ii) Phishing, (iii) He should report the email and block. Or is an unauthorized act of compromising digital devices, networks and Fai aata caatodel orn to the EE, ITE Safety Measures (a) Use Firewall (b) Use strong passwords (0) Use strong, updated antivirus software «= 1's | 6 (ii) 34000 (iii) Foun Nigh pik Shaw Cle, e a ( ‘MmATE* (i)_“TON" a (i) 8 s SECTION D “SL. @ SELECT year(‘2023-05-15")5 (i) SELECT Lcase(* ABC@XYZ.com')5 Gi) SELECT Ltrim(“mycountry"); P.150 — MOVE FAST WITH INFORMATICS PRACTICES - Xil (iv) SELECT CuRDate( ); (0) SELECT POWER(10, 6); () SELECT 1trim(Itemnane) ; FROM PRODUCT; (ii) SELECT Ttemname FROM PRODUCT WHERE Day(Stockdate) = ‘Monday’ ; (iif) SELECT sum(Price) FROM PRODUCT; (iv) SELECT max(Price) FROM PRODUCT; (0) SELECT avg(Price) FROM PRODUCT; WHERE Company = ' Logitech’ ; 32, (i) Star Topology \ s/s / PRODUCTION, 5 (i) WAN (i) Router/Switch (jv) Switch/hub should be placed in every wing to connect computers in that wing. (®) (© VoIP . 33, import matplotlib.pyplot as plt smarks = [10, 40, 38, 60, 55]. ‘sname = ["Sahil", "Deepak", "Anil", “Ravi", "Riti") plt.plot(sname, smarks) plt.xlabel ("Student Name") plt.ylabel(“Marks Scored”) plt.show() Or Amport matplotlib.pyplot as plt— ~~ sales = 145, 300, 52, 650] qtr = ["QTRI", "QTR", “QTR3", “QTRA"] plt.bar(qtr, sales) plt.xlabel(“Quarter) pit.ylabel(“sales") plt.show() 34, a ee SECTION E (i) SELECT avg(Marks) FROM Schooldata GROUP By Gender; (ii) SELECT min(Marks) FROM SchoolData WHERE Grade = 10; (iii) SELECT club, Count(*) FROM Schooldata GROUP By club HAVING Count(*) > 1; Or (ii) SELECT Gender, min(Marks), max(Marks) FROM Schooldata GROUP By Gender; (4) @ — df.ocf(1, 2)) (i) dF['Math'] 424 (8) print (df[dF.maths < 1@][['Rollno', "Name" }]) Or print(mdf. English + mdf .Hindi + mdf Maths)

You might also like