0% found this document useful (0 votes)
81 views28 pages

Practice paper(IP)

iP QUESTION PAPER

Uploaded by

RAZER GAMING
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)
81 views28 pages

Practice paper(IP)

iP QUESTION PAPER

Uploaded by

RAZER GAMING
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/ 28
INFORMATICS PRACTICES (065) SAMPLE QUESTION PAPER - (2022 - 23) Class XII Max Marks: 70 Index SETI ‘General Instructions: ‘This question paper contains five sections, Section A to E. I 2. All questions are compulsory. 3. Section A have 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 03 Long Answer type questions carrying 05 marks each. 7. Section E has 02 questions carrying 04 marks each. One intemal choice is given in Q35 against part C only. 8. All programming questions are to be answered using Python Language onl PART A Given a Pandas series called S, the command which will display the last 4 rows is a. print(S.tail(4)) b. print(s.Tail()) + print(s.tals(4)) i. print(s.tail(4)) ‘are messages that a web server transmits to a web browser so that the web Server can keep track of the user's activity on a specific website a. text b. cookies c. email chat The trim( function in MySql is an example of a, Math function b. Text function . Date Function dd. Aggregate Function The___command can be used to insert a new Tow ina table in SOU a add() b append ¢. insert into d. alter table. ‘State whether True or False i. Copying and pasting data from internet or other digital resources is ethical ii, E-waste is very hazardous if not handled carefully. [Rohan wants to print the row labels of the dataframe. He should use the lattribute of a dataframe, 157 ‘a. column b. columns c. index d.rowname Write the output ofthe following SQL command. pow(2,-2); a4 bo4 ©, 0.25 4.0.25 What is e-waste? (@) electronic waste (b) environmental waste (c) earth waste (d) energy waste ‘What will be the output of the following cod mysql> lease (INFORMATICS PRACTICES CLASS 12TH); Which of these is not an example of unguided media? (Optical Fibre Cable (ii) Radio wave (iii) Bluetooth (iv) Satellite ‘Stealing someone's intellectual work and representing itas your own is known as a. Phishing ». Spamming «plagiarism hacking Which of the following is not the correct aggregate functions in SQL. (@)AVERAGEQ —(b)MAXQ—(@)COUNTQ.—(@) TOTALO. URL can specify the IP address of the Web ‘that houses a Web page? a) server b) client ) e-mail recipient d) None are the records and traces that are left behind while intemet is used a) Digital data b) Digital Footprint ©) Data Protection 4) Plagiarism ‘To mention conditions along with group by function clause is used. a)Where _b)having _e)distinct__ d)select JThilmalini has stolen a eredit card. She used that eredit card to purchase a laptop. What type of offence has she committed? a. online fraud b. cyber bullying ©. cyber stalking, d. All of the above, QI7 and 18 are ASSERTION AND REASONING based questions, Mark the correct choice as Both A and R are true and R is the correct explanation for A Both A and R are true and R is not the correct explanation for A Ais True but R is False iv. Ais false but R is True ‘Assertion (A): import matplotliblib pyplot as pit is used to import pyplot Reason (R) :It is python library so itis imported for using its function. ‘Assertion (A): Series store data row wise. Reasoning (R): ~ A Series is a one-dimensional labelled data structure SECTION B Consider a given Series, TT ae?) Bt 89 Write a program in Python Pandas to create the series OR Define Series. Write a python statement to create an empty statement. Rohit writes the following commands with respect to a table student having fields, Sno, name, Age, fee. Command! : Select count(*) from student; Command2: Select count(name) from employee; he gets the output as 6 for the first command but gets an output 5 for the second command, Explain the ouiput with justification, Consider the following Series object, C_amt Mouse 135 Keyboard 260 Pen drive 80 cD 155 i, Write the command which will display the name of the items having amount <100. ii, Write the command to name the series as comp_items Consider the following DataFrame, Student Rolino Name Class Section Marks Stream St 1 Sheetal_XI A 87___ Science S22 Preet XI B 89 Arts 33 Kartik XI A 92 Science 4 4 Laksh XI OA 94 Commerce Write commands to 1, Add a new column ‘Percentage’ to the Data frame, fi. Add a new row with values (5, Rohit XI, A ,98,Science) Expand the following terms related to Computer Networks a. HTTP b. POP3 c. FIP VoIP OR Differentiate between static and dynamic web pages. er the following SQL string: “Computer” ‘commands to display’ mputer” ae OR cring the same string “Computer” SQL commands to display: a. The position of the substring ‘ter’ in the string “Computer”. letters ofthe strin any two health problems related to excessive use of Technolog SECTION C Consider two objects s and ts isa list whereas t is a Series. Both have values 20, 40, 90, 110, What will be the output of the following two statements considering that the above objects, have been created already a. print (s*2) b. prinut*2) Justify your answer ‘der the Table “Infant” shown Below. Table: Infant TtemCode | Ttem DatePurchase [UnitPrice|Discount 101 Frock 2016-01-23 700 0 102 Cot 2015-09-23 5000 l25 103) Soft Toy [2016-06-17 800 10 104 Baby Sooks|2014-10-16 100 7 105, Baby Suit [2015-09-20 500 5 NOTE: Discount column stores discount %. Write SQLcommands to: a. To displays the number of items that have more than 10% as discount. b, To display the highest unit price of items. ¢. To display the names of items that has ‘Baby’ anywhere in their item names. Write a Python code to create a DataFrame with appropriate column headings from the list 160 given below: [21101 'MANJUSH’,58],[21102AKSHAY',60],[21103,ANN' 76], [21104,NITHYA’48]] ‘What are the different ways in which authentication ofa person can be performed? OR Describe measures to recycle your e-waste. Predict the output of the following queries: 1) SELECT INSTR (‘Very good’, good’); » MID(Quadratically’5,6); U1) SELECT RIGHT (Command! 3); oR Explain the following SQL functions using suitable examples. a) INSTRO b) MIDO ©) RIGHTO SECTION D Consider the following graph. Write the code to plot it Draw the following bar graph representing the uses of programming language : Je | Bee Bu. ‘A company AST Enterprises has 4 wings of buildings as shown in the diagram Center to center distances between various Buildings: T3 to Tl - 50m TI to T2- 60m 12 to T4 - 25m T4 to T3 - 170m T3 to T2- 125m. Tito T4- 90m Number of computers in each of the wing: TI-140 12-15 13-15 14-25 Computers in each Wing are HEDWOFKEM DUT WINGS ae HOT MEtWorked The company has now decided to connect the wings also. i, Suggest a most suitable cable layout for the above connections. ii, Suggest the most appropriate topology of theconnection between the wings. The company wants internet accessibility in all thewings. Suggest a suitable technology. Suggest the placement of the following devices with justification if the company wants minimized network traffic a) Repeater byHub / switeh The company is planning to link its head office situated in Pune with the offices, in hilly areas. Suggest a way to connect it economically. Write the SQL. functions which will perform the following operations: i) To display the current date il) To display the substring “earn” from the whole string ‘LearninglsFun’ i) "To round the number 76.384 up to 2 place after decimal point iv) To find the position of first occurrence of ‘R’ in string INFORMATION FORM’ v) To find out the result of 9 oR Consider a table Order with the following data: Table: Order Prderid [OrderDate _[SalesPerson OrderAmount, 101 [2015-09-12 _| Ravi Kumar 34000 102 [2015-08-15 | Rashmi Arora 50000, 103 [2015.11.01 | Ravi Kumar 55000, 104 [2015-12-09 | Nanjeet Singh 60000 0105 [2015-11-10 | Rashmi Arora 50000 Write SQL queries using SQL funetions to perform the following operations: 4) To count the number of orders booked by Salespersons with names starting with ‘R ii) Display the position of occurrence of the string “an” in SalesPetson names, iii) Display the four characters from SalesPerson name starting from second character. 162 iy) To find the average of order amount. ¥) Display the month name for the Order date. SECTION E ‘A relation Vehicles is given below: V_no | Type | Company | Price | Qty AWI25 | Wagon | Maruti | 250000 [25 30083 [Jeep | Mahindra | 4000000 [15 $9090_| SUV | Mitsubishi_[ 2500000 [18 M0892_| Mini van | Detoum | 1500000 [26 W9760_|SUV___[Maruti | 2500000 | 18 R2409__| Mini van [ Mahindra | 350000 [15 Write SQL commands to: a. Count the type of vehicles manufactured by each company. b. Display the total price of all the types of vehicles. ¢. Display the average price of each type of vehicle having quantity more than 20. OR (Option for part iii only) Write a query to display type and price * quantity with title TOTAL PRICE company wise ‘A dataframe fat stores data about passengers, Flights and Years as given below. Year__[Months | MalePassengers | FemalePassengers | 2009 | January | 90 30 | 2009 [February 100 18 2009 [March | 98 22 2009 | April 110 30 1) Write python code to create the dataframe. Perform the following operations on the DataFrame 2) Add both the male and female passengers and assign to column “Total_ passengers’ 3) Display the maximum passengers in male passengers and maximum passengers in female passengers of the Data Frame. OR (Option for part iii only) Predict the output of the following python statement: faf-loc|:,"year’:’ MalePassengers"] INFORMATICS PRACTICES (065) SAMPLE QUESTION PAPER (2022 - 23) Class XII- Marking Scheme Max. Marks: 70 ‘Time: 3 hours Qo. Section A Total print(S.tail(4)) | mark for the correct usage of tail() Cookies L mark for the correct answer Text function L mark for the correct answer Tnsert into’ 1 mark for the correct answer i. False ii, True % mark for each correct answer Index mark for the correct answer 025 1 mark for the correct answer clectronic waste I mark for the correct answer informatics practices class 12th I mark for the correct answer Optical Fibre Cable I mark for the correct answer Plagiarism L mark for the correct answer TOTALO, L mark for the correct answer server 1 mark for the correct answer digital Footprint | mark for the correct answer Having I mark for the correct answer ‘She bas committed a fraud L mark for the correct answer iBoth A and R are true and R is the correct explanation for A 164 iv. Ais false but Ris True Section B import pandas as pd ‘Tl=pd Series([45,65,24,89] index=['SUB1'/SUB2',SUB3'/SUB4’)) ¥% mark for import statement % mark for usage of Series () % mark for stating index as a list % mark for creating object T This is because the column name contains a NULL value and the aggregate functions do not take into account NULL values. Thus Command] returns the total number of records in the table whereas Command2 returns the total number of non NULL values in the column name, print(C_amt [C_amt <100)) ii, C_amt.name=' comp_items* 1_mark each for correct answer of part (i). Gi) i, classframe{ Percentage” |=[87,89,92,94] ii, classframe.loc(‘15"}-[5, ROHIT’,“XI’, ‘A’, 98, 1 mark for each correct answer a. HTTP: Hyper Text Transfer Protocol b. POP: Point to Point Protocol c. FIP: File Transfer Protocol d. VoIP: Voice over Intemet Protocol marks for each correct full form or Dillerence between Static aud Dynamic webpage Static webpage contentis constant | The page content changes in all ume according to the user, Loading time is less Loading time is more No database is used AA database is used in the server side Content changes rarely Content changes constantly a, select substr("Computer", 3): b. select substr("Computer",5,2): OR 2. a. select instr ‘Computer’, ‘ter’; 2. b, select left (Computer’5); | mark for each correct /similar answer (of part (a) .(b)) The continuous use of deviees like smartphones, computer desktop, laptops, head phones ete cause a lot of health hazards if not addressed. These are: i, Impact on bones and joints: wrong posture or long hours of sitting in an 165 ‘uncomfortable position can cause musele orbone injury. ii, Impact on hearing: using headphones ot earphones for a prolonged time and on high volume can cause hearing problems and in severe cases hearing impairments. iii, Impact on eyes: This is the most common form of health hazard as prolonged hours of sereen time can lead toextreme strain in the eyes. iv. Sleep problem: Bright light from computer devices block a hormone called melatonin which helps us sleep. Thus we can experience sleep disorders leading to short sleep cycles. 2 marks for any two correct points SECTION C a. will give the output as: 20,40,90,110,20,40,90,110] b. will give the output as 0 40 1 80 2 180 3 220 Justification: In the first statement s represents a list so when a list is, multiplied by a number, it is replicated that many number of times. ‘The second t represents a series. When a series is multiplied by a value, then each element of the series is multiplied by that number. | mark for output of list multiplication 1 mark for output of Series multiplication | mark for the justification ‘@ SELECT COUNT(tem) FROM Infant WHERE Diseount > 10; b. SELECT MAX(UnitPrice) FROM Infant; ©. SELECT Item FROM Infant WHERE Item LIKE ‘%Baby%'; 1 mark for each correct query import pandas as pd data=[[21 101, MANJUSH58],[ 21102 AKSHAY',60],[ 21103,'ANN’ 76], [21104/NITHYA’,48]] df=pd.DataFrame(data,columns=['Rno’ Name’, Marks) 1 mark for each correct python statement Diff. methods of user identification are: a. Password b. Token ©. Biometries OTP OR Following measures can be adopted to recycle the e-waste safelya. Use a certified e-waste recycler. 165 b. Visit eivie institutions, c. Explore retail options, d. Donate your electronics 3 marks for correct measures and its explaination, Vv) 6 Vv) Ratica VI and oR 1 mark for each correct explanation of functions. Section D import numpy as np import matplotlib.pyplot as plt marks=[8,9,18,16,29,28,27,26,30] pithhist(marks,bins=(0,10,20,30],edgecolor=" pltsavefig(“hist-png") pltshow0 1 mark for the import statement 1 mark for appropriate usage of hist() 1 mark for show) OR import matplotlib.pyplot as plt; import numpy as np objects = (Python’, "C4", Javal, ‘Perl, ‘Scala, ‘Lisp) 08 = np.arange(len(objects) peermanee HE plt.bar(y_pos, performance, align center’) plt.xticks(y_pos, objects) pit ylabel( Usage’ pltsitle( Programming language usage’) plt.show() ‘1 mark for the import statement 1 mark for appropriate usage of bar() 1 mark for show(). 1) Most suitable layout according to distance is | mark for an appropriate cable layout ii) Star Topology L mark for correct topology iii) Broadband, 1 mark for suggesting suitable technology iv). a. Not required. Repeaters may be skipped as per above layout (because distance is less than 100 m) In every wing ‘4 mark for placement of repeater 4 mark for placement of hub switch v) Radio Waves 1 mark for the appropriate connectivity mode between HQ and other offices @ SELECT SYSDATEO: @ SELECT MID(LeamningtsFun’,2,4); i) SELECT ROUND(76.384,2); (i) SELECTINSTR(INFORMATION FORM'!RM); SELECT POW(,3); | mark for each correct answer OR (SELECT COUNT (*) FROM Order WHERE SalesPerson LIKE“R%"; (Select instr( Salesperson, “an”) from order (i) Select mid(Salesperson,2,4) from onder; (i). Select avg(OrderAmount) from order. (Select dayname(OrderDate) from order; | mark for each correct answer SECTION E a) select Company, count(distinet Type) from Vehicle group by Company, b) Select Type, sum(Price* Qty) from Vehicle group by Type; ©) select Type, avg(Price) from Vehicle group by Type having Qty>20;, OR (Option for part iii only) Select type.price* quantity as ‘TOTAL PRICE” from vehicles group by company. 1) import pandas as pd dI=('S_NOWI23,4), "Year':|2009,2009,2009,2009,2009], "Month’:[‘January’,February’,’March’,’ April’), “MalePassengers® '-[90,100,98,1 10}, *FemalePassengers '[30,18,22,30] } fdf=pd.DataFrame(dl) print(dt) 2) dif Total_passengers"J-dl/MalePassengers > di’ FemalePassengers '] print(dt) 3) print(”Maximum Passengers are: " , max(dil! MalePassengers '}), max(f[’ FemalePassengers'))) 2. mark for import statement 2. marks for creating the dataframe | mark for creating column Total_ passengers” to hold the sum of male and female passengers. I mark for displaying maximum in male passengers & Female passengers. OR (Option for part iii only) ii fdf-loc(:,’year’:’ MalePassengers’] S_NO Year Months — MalePa 1 2009 January 90 2009 February 100 2009 March 98 2009 April no CBSE SAMPLE QUESTION PAPER CLASS XII INFORMATICS PRACTICES (065) TIME: 3 HOURS General Instructions: This question paper contains five sections, Section A to E. All questions are compulsory Section A have 18 questions carrying 01 mark each. Section B has 07 Very Short Answer type questions carrying 02 marks each Section C has 05 Short Answer type questions carrying 03 marks each. Section D has 03 Long Answer type questions carrying 05 marks each. Section E has 02 questions carrying 04 marks each. One internal choice is, given in Q35 against part c only. Alll programming questions are to be answered using Python Language only. PART A Television cable network is an example of. i, LAN ii, WAN iii, MAN iv. Internet ‘Which of the following is not a type of cyber crime? i. Data theft Installing antivirus for protection iii, Forgery iv. Cyber bullying ‘What is an example of e-waste? i. Aripened mango ji, Unused old shoes iii, _ Unused old computers iv. Empty cola cans ‘Which type of values will not be considered by SQL while executing the following statement? SELECT COUNT(column name) FROM inventory; i, Numeric value ii, text value iii, Null value iv. Date value If column “Fees” contains the data set (5000,8000,7500,5000,6000), What willbe the output after the execution of the given query? SELECT SUM (DISTINCT Fees) FROM student; i. 20500 ii, 10000 ii, — 20000 iv, 33500 "O' in FOSS stands for: i, Outsource ii, Open iii, Original iv. Outstanding Which SQL statement do we use fo find out the total number of records presentin the table ORDERS? i. SELECT * FROM ORDERS; ii, SELECT COUNT (*) FROM ORDERS: iii, SELECT FIND (*) FROM ORDERS, iv. SELECT SUM () FROM ORDERS; Which one of the following is not an aggregate function? i, ROUND() ii, SUMQ. iii, COUNT() iv. AVGO ‘Which one of the following functions is used fo find the largest value from thegiven data in MySQL? i, MAX() ii, MAXIMUM() ii, BIG() iv. LARGE() To display last five rows of a series object ‘S’, you may write: i SHead() ii, S Tail(S) iii, S.Head(s) iv. Stall Which of the following statement will import pandas library? i, Import pandas as pd ii, import Pandas as py iii. import pandas as pd iv. import panda as pd ‘Which of the following can be used to specify the data while creating a DataFrame? i Series ii, List of Dictionaries iii, Structured ndarray iv. _Alllof these ‘Which amongst the following is not an example of a browser? i. Chrome ii, Firefox iii, Avast iv. Edge Tn SQL, which function is used to display current date and time? i Date () ii, Time Q) iii, Current () iv. Now () Legal term to describe the rights ofa creator of original creative or arlistic work is: i, Copyright i, Copyleft iii, GPL iv. FOSS is the trail of data we leave behind when we visit any website (or use any online application or portal) to filin data or perform any transaction i, Offline phishing ii, Offline footprint iii, Digital footprint iv. Digital phishing ‘Qi7 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as i, Both A and R are true and R is the correct explanation for A ii, Both A and R are true and R is not the correct explanation for A iii._A.is True but R is False a. W. Ais false but Ris True ‘Assertion (A): - Intermet cookies are text files that contain small pieces, of data, like a username, password and user's preferences while surfing the internet. Reasoning (R):- To make browsing the Internet faster & easier, its required tostore certain information on the server's computer. ‘Assertion (A):- DataFrame has both a row and column index Reasoning (R): - A DataFrame is a two-dimensional labelled data structure likea table of MySQL. PARTS. Explain the terms Web page and Home Page. OR Mention any four networking goals. 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 by suggesting the possible correction (s). What is the purpose of Order By clause in SQL? Explain with the help of suitable example. 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, 18 students respectively and pandas library has been imported as pd. List any four benefits of e-waste management. OR Mention any four net etiquettes What will be the output of the following code: >>>import pandas as pd >>>Azpd Series (data=[35,45,55,40)) >>>print(A>45) Carefully observe the following code: import pandas as pd Year1=(Q1':5000,'Q2':8000,'Q3'12000,'Q4': 18000} Year2=(A' 13000,'8':14000,'C'12000} totSales={1:Year1,2:Year2} df=pd, DataFrame(totSales) print(df) Answer the following i, List the index of the DataFrame df ii, List the column names of DataFrame df. SECTION C Write outputs for SQL queries (i) to (iii) which are based on the given tablePURCHASE: TABLE: PURCHASE NO CNAME CITY QUANTITY DOP C01 GURPREET NEWDELHI 150 2022-06-11 C02. MALIKA = HYDERABAD 10. 2022-02-19 C03. NADAR DALHOUSIE —100 2021-12-04 04 SAHIB CHANDIGARH 50 2021-10-10 C05 = MEHAK —_ CHANDIGARH 15 2021-10-20 i, SELECT LENGTH(CNAME) FROM PURCHASE WHERE QUANTITY>100; SELECT CNAME FROM PURCHASE WHERE MONTH(DOP)=3; SELECT MOD (QUANTITY, DAY(DOP)) FROM PURCHASE WHERE CITY= ‘CHANDIGARH’; Write a Python code to create a DataFrame with appropriate column headingsfrom the list given below. [[101,'Gurman’,98],[102,'Rajveer’,95],[103,Samar' ,96], [104,"Yuvraj',88]] Consider the given DataFrame ‘Stock” Name Nancy Drew Hardy boys Diary of a wimpy kid Harry Potter rite suitable Python statements for the following i Adda column called Special_Price with the following data:[135, 150,200,440}. ii, Add a new book named ‘The Secret’ having price 800. iii, _ Remove the column Special_Price. Nadar has recently shifted to a new city and school. She does not know many people in her new city and school. But all of a sudden, someone is Posting negative, demeaning comments on her social networking profile ete, She is also getting repeated mails from unknown people. Every time she goes online, she finds someone chasing her online. i, Whats this happening to Nadar? ii, _ What immediate action should she take to handle it? iii, Is there any law in India to handle such issues? Discuss brief! OR ‘What do you understand by plagiarism? Why is it a punishable offence? Mentionany two ways to avoid plagiarism, Based on table STUDENT given here, write suitable SQL queries for thefollowing: RollNo Name Class Gender City Marks Abhishek XI Agra 430 Prateek xi Mumbai 440 Sneha xl ‘Agra 470 Nanoy xi Mumbai 492 Himnashu — Xil Delhi 360 Anchal xl Dubai 256 Mehar x Moscow 324 Nishant x Moscow 429 i. Display gender wise highest marks. Display city wise lowest marks. iii, Display total number of male and female students. OR Discuss the significance of Group by clause in detail with the help of suitableexample ‘SECTION D 175. Write suitable SQL query for the following i. Display 7 characters extracted from 7 left character onwards from thestring ‘INDIA SHINING’ Display the position of occurrence of string ‘COME’ in the string ‘WELCOME WORLD’ Round off the value 23.78 to one decimal place. Display the remainder of 100 divided by 9. Remove all the expected leading and trailing spaces from a column useridof the table ‘USERS’ OR Explain the following SQL functions using suitable examples. i UCASE) ii, TRIM ii, — MIDQ. iv. DAYNAME() v. POWER() Prime Computer services Lid. is an international educational organization. Its planning to set up its India campus at Mumbai with its head office in Dethi. The Mumbai office campus has four main buildings-ADMIN, ACCOUNTS, EXAMINATION and RESULT You as a network expert have to suggest the best network related solutions for their problems raised in (i) to (v), Keeping in mind the distances between the buildings and other given parameters. DELHI HEAD OFFICE EXAMINATION ‘ADMIN ACCOUNTS RESULT Shortest distances between various buildings: ADMIN TO ACCOUNTS 55m ADMIN TO EXAMINATION 90m ADMIN TO RESULT 50m ACCOUNTS TO EXAMINATION 55m ACCOUNTS TO RESULT 50m EXAMINATION TO RESULT 45m DELHI Head Office to MUMBAI CAMPUS — 2150 m Number of computers installed at various buildings are as, follows:ADMIN 410 ACCOUNTS 75 EXAMINATION 40 176 RESULT 2 DELHI HEAD OFFICE 20 () Suggest the most appropriate location of the server inside the MUMBAI campus (out of the four buildings) to get the best ‘connectivity for maximum number of computers. Justify your answer. ‘Suggest and draw cable layout to efficiently connect various buildingswithin the MUMBAI campus for a wired connectivity. ‘Which networking device will you suggest to be procured by the company to interconnect all the computers of various buildings of MUMBAI campus? 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? ‘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? a) Cable TV b) Email ©) Video conferencing ) Text chat Write Python code to plot a bar chart for India’s medal tally as shown below: Inlay Medal tally in Olympics ‘Also give suitable python statement to save this chart. OR ‘Write a python program to plot a line chart based on the given data to depict thechanging weekly average temperature in Delhi for four weeks Week=[1,2,3,4] Avg_week_temp=[40,42,38,44] ‘SECTION E Shreya, a database administrator has designed a database for a clothing shop. Help her by writing answers of the following questions based on the given| table: TABLE: CLOTH CCODE CNAME SIZE _COLOR PRICE DOP COOt JEANS _XL___BLUE 990 2022-01-21 ‘coo2z TSHIRT MRED 599 2021-12-12 ‘003 TROUSER M GREY 399 2021-11-10 004 SAREE FREE GREEN 1299 2019-11-12 ‘C005 KURTI CL WHITE 399 2021-72-07 i, Write a query to display cloth names in lower case. ii, Write a query to display the lowest price of the cloths ili, Write a query to count total number of cloths purchased of medium size. ‘OR (Option for part iii only) Write a query to count year wise total number of cloths purchased, Mr. Som, a data analyst has designed the DataFrame df that contains data about Computer Olympiad with ‘C01’, "CO2’, ‘C03’, ‘C04’, ‘COS’ as indexes shownbelow. Answer the following questions: School Tot_students | Topper First_Runnerup] COT PPS 40, 32. 3S COZ IPS 30 78 2 COS GPS 20 18 2 CO4 MPS 78 70. 3 COS BPS 28 20 3 A. Predict the output of the following python statement i df.shape ii, df[2:4] B. Write Python statement to display the data of Topper column of indexesCO2 to CO4. OR (Option for part iii only) ‘Write Python statement to compute and display the difference of data of Tot_students column and First_Runnerup column of the above given DataFrame. CBSE SAMPLE QUESTION PAPER MARKING SCHEME CLASS Xil - INFORMATICS PRACTICES (065) TIME: 3 HOURS. Ti. MAN ‘4 mark for correct answer ic Installing antivirus for protection 4 mark for correct answer ii, Unused old computers 4 mark for correct answer ii, Null value ‘mark for correct answer 7, 20800 4 mark for correct answer it Open 4 mark for correct answer ii, SELECT COUNT (") FROM ORDERS, ‘4 mark for correct answer i, ROUND() 4 mark for correct answer 7. MAX () 4 mark for correct answer iv. Stall) 4 mark for correct answer ii, import pandas as pd 4 mark for correct answer [iv. All of these “mark for correct answer ii, Avast ‘mark for correct answer iv. Now) ‘mark for correct answer 7, Copyright 1 mark for correct answer Ti, Digital footprint 1 mark for correct answer Ti Ais True but Ris False 7. Both A and R are true and Ris the correct explanation for A Web Page: A Web Page is a part of a website and is commonly writtenin HTML. It can be accessed through a web browser. Home Page: Itis the first web page you see when you visit a website. ‘mark for correct explanation of each term Or Four networking goals are: i Resource sharing ji, Reliability li, Cost effective \v. Fast data sharing % mark for each goal The problem with the given SQL query is that WHERE clause should not beused with Group By clause. To correct the error, HAVING clause should be used instead of WHERE. Corrected Query: SELECT HOUSE, COUNT(*) FROM STUDENT GROUP BY HOUSE HAVINGHOUSE= 'RED' OR HOUSE='YELLOW’; ‘1 Mark for error identification 4 Mark for writing correct query Order By clause ‘The ORDER BY command is used to sort the result set in ascending or descending order. ‘The following SQL statement displays all the customer's names in alphabeticalorder. ‘SELECT Gname FROM Customers ORDER BY Cname; 1 mark for correct purpose 1 mark for correct example ‘Si=(Beas :18, Chenab’:20, Raw 20, Salluy 18}S1=pd.Series(St) 1 mark for each correct python statement The e-waste management- ‘Saves the environment and natural resources Allows for recovery of precious metals Protects public health and water quality iv. _ Saves landfill space ¥Y mark for each benefit, or No copyright violation Share the expertise with others on the internet Avoid cyber bullying iv. Respect other's privacy and diversity % mark for each net etiquette 0 False L False 2 True 3. ‘False ‘Ysmark for each correct output 7, The index abels of df will include Q1,02,03,04,A,8,C ji, The column names of df will be: 1,2 4 mark for each correct answer iB ji, No Output i, 0 15 4 mark for each correct output import pandas as pd data=[[101,'Gurman’ 98] [102 Rajveer’, 95] [103,'Samar’,96], [104,"Yuvray’ 881] df=pd.DataFrame(data,columns=[Rno' Name’, ‘Marks')) ‘1 mark for each correct python statement 7, Stock{Special_Price]=[135, 150,200,400] ii. Stock loc('4'}=[The Secret’.800) ii, Stock=Stock drop('Special_Price’,axis=1) ark for each correct statement i. Nadar has become a victim of cyber bullying and cyber stalking, ji, She must immediately bring it into the notice of her parents and. school authorities. And she must report this cyber crime to local police with the help of her parents, Yes, The Information Technology Act, 2000 (also known as ITA-2000, or the IT Act) is the primary law in India dealing with cybercrime and electronic commerce. 4 mark for each correct answer oR ‘Ans. Plagiarism is the act of using or stealing someone else's intellectual work ideas etc. and passing it as your own work. In other words, plagiarism isa failure in giving credit to its source. Plagiarism is a fraud and violation of Intellectual Property Rights. Since IPR holds a legal entity status, violating its owners right is a legally punishable offence. ‘Any two ways to avoid plagiarism: * Be orginal ‘+ Citefacknowledge the source 4 mark for correct definition 4 mark for correct justification ‘a mark each for any two ways to avoid plagiarism T, select max(marks) from student group by gender, li select min(marks) from student group by city; i, select gender,count(gender) from student group by gender. 4 mark for each correct query oR GROUP BY clause is used in a SELECT statement in combination with aggregate functions to group the result based on distinct values in a column. For example: To display total number of male and female students from the table STUDENT, ‘we need to first group records based on the gender then we shouldcount records with the help of count() function. Considering the following table STUDENT: RolIN Name | Class | Gender | City Marks XI M ‘Agra 30) XII M Mumbai | 440 XI F Agra 470) XII E Mumbai [492 Himnashu_| XI M Delhi 360 ‘Anchal__| XI F Dubai___| 256 Mehar |X E Moscow _ | 324 Nishant__[X M Moscow | 429 SQL query for the above-mentioned task is as follows: select gender,count(gender) from student group by gender: Output: Gender Count(Gender) M 4 F 4 4 mark for correct significance2 marks for correct example i, Select mid INDIA SHINING’ 7,7), ii, Select INSTR(‘WELCOME WORLD’ COME’); ii, select round(23.78,1), iv. select mod(100,9); v. select trim(userid) from users; 4 mark for each correct query OR 1.UCASE(): It converts the string into upper case. Example: ‘SELECT UCASE( welcome world) Output: WELCOME WORLD 2. TRIM(: It removes the leading and trailing spaces from the given string Example: SELECT TRIM’ Welcome world Output: Welcome world 3.MID(): It extracts the specified number of characters from given string, Example: SELECT MID(‘ Welcome world, 4,4); Output: Come 4, DAYNAME(): It returns the weekday name for a given date Example: ‘SELECT DAYNAME( 2022-07-22") Output: Friday 5. POWER(): It returns the value of a number raised to the power of another number. Example: SELECT POW(6,2); Output: 36 Y%s mark for each correct explanation ‘4s mark for each correct example 1) Server should be installed in Admin department as i has maximum number of computers. ll) Star topology EXAMINATION ACCOUNTS RESULT Hub/Switeh Dynamic Video conferencing 4 Mark for each correct answer 193 import matploti.pyplot as pit Category=['Gold,'Silver’Bronzel] Medal=[20, 15,18] plt.bar(Category, Medal) pit ylabel( Medal) plt-xlabel(’Medal Type’) pit.titie(Indian Medal tally in Olympics’) plt.show() % mark for each correct statement Python statement to save the chart: plt.savefig("aa.jpa") ‘mark for the correct statement OR import matplotib.pyplot as pit Week=(1.2.3,4] ‘Avg_week_temp=[40,42,38,44] pltplot(Week,Avg_week temp) pltshow() 4 mark for each correct statement 7. SELECT LOWER(CNAME) FROM CLOTH: ji, SELECT MIN(PRICE) FROM CLOTH 4 mark for each correct query ii, SELECT COUNT(*) FROM CLOTH GROUP BY SIZE HAVING SIZE=M" OR SELECT YEAR(DOP),COUNT(*) FROM CLOTH GROUP BY YEAR(DOP); 2 marks for correct query A Output i 64) ji, School tot_students Topper First_Runner_up cos GPS 20 18 2 cos MPS. 18 10 8 11 mark for each correct output B. Python statement: print(df locfCO2: 'CO4’, Topper'}) OR print(af.Tot_students-of First_Runnerup) 2 marks for correct Python statement

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