0% found this document useful (0 votes)
49 views15 pages

2021-22 IP TERM 1 - Orignal 20dec QPaper Full

Uploaded by

asifkhan43907
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)
49 views15 pages

2021-22 IP TERM 1 - Orignal 20dec QPaper Full

Uploaded by

asifkhan43907
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/ 15
Series: SSJ/2| ps SET-4 © Question paper Code No. ()9Q. 5 Candidates must write / fil the Question Paper| Code in the space allotted on OMR Sheet. » (@ Please check that this question paper contains 16 printed 0 (i) Please check that this questions paper contains 65,multipleschoite questions » (MCQs). (ii) QP Code given on the right hand side of. tion Paper should be written on the appropriate place of the OMR ‘candidates. Gv) 20 minutes additional time hag bi to read this question paper prior to actual time of conan ination. Rrarscs PRACTICES gl Term-I ef R » ime allowed : 90 minutes neo pe _ if Q 7 | qe iS General Instructions : (i) The paper is Into 8 Section - A, Band C. i) consists of Question 1 to 25 and student need to attempt 20 re oe a4 QZ ~ B, consists of Question number 26 to 49 and student need Sy © attempt 20 questions. a te a) Ge) Seetion = C, consists of Question number 50 to 55 and l attempt 5 questions. ’ a () _All.questions carry equal marks. Q we pe ~ Section A consists of oh 1. Which of theg@lowin| ment is wrong ? @) the index of the Series. / 4, Wig cqBigally convert tho list, tuple, and dictionary into a series. (0 eA Spr reprosents a single column in memory. .* @y We can create empty Seri © . qe 2. What type of error is returned by the following statement ? rS import pandas as pa a (@) Value Error * 2 ye B (©) Name Error 3. Which is incorrect statement for t io Numpy ? (a) Itis a general-purposs jing package. ) jore compact © @ Iti 4. The@ata i t @ M (b) Notepad (© (@p Spreadsheet (@ Allofthe above ~ qe d: Which python library is not used for data science ? dQ (@) Panda () Numpy A (© Matplotlib @ Tkintor % 6. Which method is used to Deleto row(s) f aS (a) drop method 7 nor ) mt (©) remove) method fe method i ge P.T.O. 7. Consider the following waN + dmport mumpy ‘ae"ap_> } import pandas as pa enp.array({10)201) ies( d statement 1 t - » © 1 8000 © Se, % types inte >» Cor — what is the correct statement for the above output, oh wing a 4) statement-1? Ane (@) a=L"3 () dat © 183 @ po2g" 8. Which library is imported to draw chart (@) csv © numpy 9. Which of the follow; De- ‘the same output as DF/DF1 where DF and + DFlare DataFram (@) DF.divOF), @) DFLdivDF) (© “-DivideDF,DF) ef (@)\ Diy(DF;DF)) a < fog wn of the following statement is wrong in context of DataFrame 2 qe (@) Two dimensional size is Mutable. ~ 2 S (b) Can Perform Arithmetic operations on rows and columns; Q °o (© Homogeneous tabular data structure > (@ Create DataFrame from numpy ndarray Rg 11. Which attribute is not used with DataFr (a) size ») ye" © empty ns 090 ge 4 % wr ) ab (@ _Blectrical and Electronic Equipment (EBE) £ 12. With the outset of Covidel9 ls started online classes but due to continuous online {claksés,-siudents health issues also started. Health i ‘ol the parents to follow a fow health tips. Which of the b), 3 ‘be taken in between the online classes. a! (c) tho eyes the gadgets should be placed above eye level. “ invention (@) Patent “ (©) Copyright (© Trademark (@ License be 14, Himanshi sots up her own company to sell a Oa inge of clothes on instagram. What type of intellectual propeyf7can shaetse to show that the clothes are made by his company ? (@) Patents y) © Design mark * 15. GPL stands for \ (@) Guided Public (@) General Public License “ (© Global Public (@ General Public Letter ~ 16. E-wasteg (coming one of the fastest growing environmental hazards in the 4 wor teatvia not properly treated or disposed of it can cause soto in i th the eyes regularly. © bs the following is automatically granted to the creator or “WP ,, therefore The has issued a formal set of guidelines hel ey dling and disposal of e-waste. Fatral Pollution Control Board (CPCB) Department of Information Technology (DIT) (@ Information Communication ‘Technology(CT) 17. When we create a DataFrame from a list of Dictionary are formed by the (@) Union of the keys of the dictionat (b) Intersection of the keys of the dicti (©) Union of the values of the dictignaBio (@)_ Intersection of the values of ty ies ee a 090 we 2% ° » 5° » gi 18, To change the width of Se chart, which of the following arguments with a float value (a) hwidth (b) width © b @ d Dots ‘the correct option to select first four rows and second to from a DataFrame ‘Data’ a €) (a) displayData.iloc[l : 4, 2: 4)) (@) displayata ilocfl : 5, 2: 5)) (©) print@atailoc{0 : 4, 1:4) - (@ printData.iloc[l : 4, 2:4]) 20. Which of the following commang is used to om for coding ? (@ import matplotlib.pyplot as plt ~ (@) import plt.matplotlib as plt (©) import py.matplotlib as ar (@_ import pyplot.matploflib 21, Consider the follo. ts with reference to Line charts Statement Li ‘phs is a tool for comparison and is created by plotti oe tPeeveral points and connecting them with a straight e1 You should never use line chart when the chart is in jus data set. dy ent A is correct (©) Statement B is correct Y st (© Statement A is correct but Statement B is incorrect (@ Statement A is incorrect, but Statement B is correct 22, What is not true about Data Visualization ? Ds . (@) Graphical representation of information and () Helps users in analyzing a large amounyOf data impler way. © Data data more accessible, understandable, and usable. @ - oe . Which attribute is used with A count the total number of NaN values. (a) size « “ ©) den (© count C $ (@) count total 24, Consic ing Series in Python : , 2, 3,7], index=[a, b, ‘c’ ‘e') wnt will display all odd values dg yt (data%2==0) (b) print(data(data%2!=0)) t(data mod 2!=0) (@_print(data[data%2l=0)) ~ © Baer’ js a student of class 10 and she is a very frequent user , applications. One day she got an unpleasant message 2 jnessenger. What do you think she should do ? (a) Start chatting with an unknown person. (&) talk to her parents/teacher or other trusted m know w. that she is feeling uncomfortable. ~ (© Ignore the conversation. | (@ She should delete the chat so that oy" to SEC Section B consists of 24 question (2 26, What will be the output ofthe import pandas as Pd import aumpy ee F supa. Series (datadl32 89,1223] ,dtype=numpy int) . int (s>50) i @- @ ° 31 1 True h 1 54 3 True RQ int64. 34 dtype: bool © 89 i 4 False 12 YY es 5 False 23 9 type: bool dtype: int64 AY a 27. The primary law in India dealing with cybercrime a commerce is = (a) India’s Technology (IT) Act, 2008 () India’s Digital Information Techno] , 2000 (©) India’s Information Technoloy 7 7 (@ The Technology Act, 2008 : he os ww . Consider the following sti Statement 1 : ‘a document that provides legally binding guidelines for ‘and distribution of software Statement &¢ Hacking is the act of unauthorized access to a computer digital system @), ‘True but Statement 2 is False (b) 1is False but Statement 2 is True statements are True t the statements are False d Consider a following DataFrame : import pandas as pd s=pd. Series (data=[31,54,34,89,12,23]) 6 Gfupd.DataPrane (s) Ny Which statement will be used to get the output as iy i (a) print(df.index) (e) print(df.shi (© print(dfndim) * @ a6 30. Sandhya wants to display the last Se dataframe df and she has i 4 written the following command : df.tail() But the first 5 rows are by ‘To rectify this problem, which of the following statements waltten ? (@) dfheadd () dflast(4) © dftail(d) @ dfrows(4) 31, There i left for Ravisha to submit her Science project. Therefore following activities to complete her task. Which of the ities can be considered as plagiarism ? jaded the images that were marked as CC and pasted in hy project file. pied the content from some website and pasted in her file. y )” Coy ah (©) Copied the content from the website and gave references abot in the project. (@ Downloaded and installed the open source soft AS the synopsis, 32, A contract between the creator and the o> user use his/her ‘work with some price is (@) Agreement @. (©) License Q e 00 tk! ET, af type: object |9 B 10 Y itype: object: | 11 \\ 10 L ll E dtype: object type: object 34, Nowadays for developing Machine learning proje rammers rely on CSV files rather than databases. Why ? (a) csv can be used with proprietary (b) csv files can be downloaded fro: (©) csv files need not be importes the projects (@) csv isa simple and well for data storage “ 35. Companies get their Trad ed to protect ? (@) logos, names and br - (b). word, phrase, (©) sloge 3, and colors. @ comps @) dictionaries b (@_allofthe above - S is laptop in his car and when he came back he found his ao c missing. This act is (@)” Cyber crime (>) Phishing (© Theft - (@ = Plagiarism 38. Consider the following statements Statement A : .loc( is a label based data selecting metho@hto'seleet @ specifi row(s) or column(s) which we want to select. Statement B ; .ilocQcan not be used with defe if customized indices are provided. (a) Statement A is True but Statement B i : (b) Statement A is False but Stateme: (©) Statement A and Statement B_ al (d) Statement A and Statement al ts pw P.T.O. o” ). Abhay is a student of cla: AY. aware of some concepts of python. He has created 1 ” put he is getting errors after executing the code. Help hi ine’ the correct statement that will create the DataFrame: ws b [Muskan’ , ‘Radhika’, ‘Gopar’, ‘Pibu’] Code :, 70, 63,74,901 ‘term2=[67, 70,86, 951 @ dfepd DataFrrame((Name"stuname,"marks1"xterml,"marks® dfepd dataframe((stuname term) term2],columns=[stuNs eF ) "marks2") 0° (© df-pd.DataFrame((stuname,terml,term2}) is » (@ _dfPD.dataframe({stuname,terml,term2}) fe" ‘wants to create charts 40. Ms. Kalpana is working with an IT comp n’ from the data provided to her. She generates the following graph ‘used to mark the line as given (@) pltplot(x,y,marker-# markersize=10,col ah . ye 41, Mr. Raman created a DatdRtame ftom a Numpy array : Zt ’ arr = np.arri 81, (3, 9, 271,[4,16, 64]}) r df=pa. r,index=[‘one’,’ two’ ,three’],___) PF} i a customized column labels to the above DataFrame af (Salen eabe © (b) column="‘no’, ‘sq’, ‘cube’] C Y \ © columns=['no’, ‘sq’, ‘cube'] 1 ad re) (@ columns=[['n0, ‘eq, ‘eube']} hk 42, What will be the output of the following Aw d' import pandas as pd ',"Sameep'}, 116,191) dice (/ Name’ : nor RY agg! :[56, 67,75, 76 a Pannen be 7 a %, @ % () Name Age Age Ye 56 16 0 Sapna 56 16 h g ol 67 18 1 Anmol 67 18 Q (s LY Rishul 75 16 2 Rishul 75 16 ep! , 104 Sameep 76 19 3 Sameep 76 19 Y = 2 © Name @ Name Age AO °o 0 Sapna 0 Sapna iM , 1 Anmol 1 Anmol 090 2 Rishul igtiyl 16 8 Sameep g? fep 19 a y wv 135,56], index=[‘a’,’b’,/0’ ,d’]) (2agd2,14,151, Y's 'o! , tab!) pane (S1+S2) (oR 1¢ above code will be : Q a fe ® 0 © . y> \ a NaN / a 50 Sos. > ab NaN b 36 a” b 510 © 49 . a © 49.0 a A) ew d NaN , y. NaN Q © o @ b 50 y 36 © 49 laN ab 71 AO: NaN @ NaN ‘the following code to create a DataFrame with Oo 44. Sudhanshu writ booleangi 3 Ap das as pd p taFrane (data=[[5,6,7]] , index=[true, fal: r true]) (ae) + Wilile executing the code, she is getting an error, help her to rectify theff- ¥(@) dfpd.DataFramo([True,False,True],data=[5,6,7)) (&) df&pd_DataFrame(data=(5,6,7],inde ‘rue,False,True]) AS 6,7) © d&pd.DataFrame((true false, true) da {true false,true],data= @)_dfpd.DataFrame(index=| - The rights of the owner of information to degige ho be shared/exchanged/distributed, are col : wires (2) Intelligent Portable Rights | (b) ial Property Rights ~ © Interactive Property Rights 1 ice Portability Rights oo pre , 46. Abbilasha forgot to sign her gmail id and Aditi used Abhilasha’s gmail id to send ody f Aditi is considered as a. brime EMPNAME EMP_SALARY » » 48. 49. 090 (2) Plagia (b) Identity Theft ~ © ‘| @~ Piracy YQ it is automatically created when a person uses the internet d digital devices like Laptops, smart phones, tablets ete is called (a) Cyberbullying (o) Phishing (© Digital Footprint ~ (@ Digital Activity iS operating system comes under FOSS. bs (@) Windows (&) Ubuntu © Mac @ Sushila has created a DataFrame ip of the following code ; import pandas | EMP=(EMPID’ : [ :03""04,E05'), ‘EMPNAME’ “EMP. ORI’ ,PRIYA’,DAMODAR’,REEMA’,MANOJ], }00,4000,68000,90000,43000] -ame(EMP index=['001','002',003',004,005')) of she wants to get the following output 6(0:3,:)) 001 E01 KISHORI 67000 002 E02 PRIYA 34000 003 E03 DAMODAR 68000 Help her to correct the code (a) print(df.iloc{'001"’003',:]) (© print(EMPfloc(0:3,:}}) {001'004’,:]) P.T.O. iw Section C comin ons(50-55). Attempt any 5 questions Case Study Ms Rat maintains the records of all students of her class. She w i ¢ operations on the data: % et pandas as pd t= (°Rollno’ : [101,102,103,104,108, 106,107], bh Wane’ ;[Shubsato! "Keishna’,/ Pranshu!, GUEP=S ‘ganidhya’ ,/ Aurobindo’ ], tage #135, 34,24,25,26,15, 261, ‘Marks’ :177.9,70.4,60,9,80.3,86.5, 67.7 5.0) \Grade’ :{/11B/ ,/22A",/11B!,/11C" "118" , gaa’ af = pd.DataPrame (t, indax=[10, 20,30, 40, print (df) Output of the above code: Rollno__| Name farks | Grade 10__| 101 Shubs 71.9 1B 20 | 102 a 70.4 1A. 30__| 103 14___| 60.9 1B 40_| 104 15___| 80.3 11C 50 i 16__| 86.5 11E i Sanidhya | 16 ___| 67.7 1A p Aurobindo [16 __| 85.0 11 dB the given information, answer questions No. 50-55. Bes the correct statement for the below output: © dg Name Krishna ® Age M4 \ Oo Marks 704 > Grade nA Name : 20, dtype: object (a) print(df.iloc[2)) (b) (2) ©) print(df.iloc[20}) “Ey [20) + a \ / y / 51. The i wants to kn{ AY secured by the second last student only. Which statem Ip her to get the correct answer ? (a) print(afJogi60: -ks'}) * (b) print(df.loc(60:60,Marks')) ~ farks'))/ (@) print(dff-2:-2]{Marks') ~ following statement(s) will add a new column ‘fee’ at second a ith values [3200,3400,4500,3100,3200,4000,3700] in DataFrame df ag pe en NNN 3700) df.add(2,column="fee',[3200,3400,4500,3100,3200,4000,3790)) df.append(loc=2, fee’=[3200,3400,4500,3100,3200,4001 Seen eee )) 53. Which of the following commands is used te theéolumn ‘Grade’ in the DataFrame df? (a) dfdrop(Grade’axis=I,inplace: sy (&) af.drop(Grade’,axis=0,in .) (© af.drop[ Grade’ axis=l x @ dfdelete(Gradesaxis=Linplace=True) « 54. Which of ¢] commands would rename the column ‘Marks’ to ‘Halfyes jataFrame df? @, ‘ks’, Halfyearly'],inplace=True) ) .o((Marks' Halfyearly’} inplace=True) ut sname(columns=(Marks'“Halfyearly’},inplace=True) 7 © Q (@ dfxename(('Marks'‘Halfyearly'],inplace=True) Y » , 55. Which of the following commands will display the Names at of all 0 students getting more than 80 marks ? hk > (@) print(df.loc{'Marks'>80,{'Name’‘Marks']]) * (©) print(df.loc{dfl’Marks'}<80,Name'Markgi)). * (©) print(dflocfafMarks'}<80,[Name' J

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