Class 12 TERM-I SET-2 Series NBSE/XII/2021 Code No. 065/12/2 Roll No. Candidates must write the Code No. on the title page of the OMR Sheet. l Please check that this question paper contains 8 pages. l Code number given on the right hand side of the question paper should be written on the title page of the OMR sheet. l Please check that this question paper contains 55 questions. l 15 minutes time has been allotted to read this question paper. INFORMATICS PRACTICES Time Allowed : 90 Minutes Maximum Marks : 35 General Instructions: 1. The paper is divided into 3 Sections- A, B and C. 2. Section A consists of Question 1 to 25 and student need to attempt 20 questions. 3. Section B consists of Question number 26 to 49 and student need to attempt 20 questions. 4. Section C consists of Question number 50 to 55 and student need to attempt 5 questions. 5. All questions carry equal marks. NBSE 2021 1 [P.T.O.
SECTION–A Section-A consists of 25 questions, attempt any 20 questions. 1. Which of the following is/ are libraries in Python? (a) NumPy (b) Pandas (c) Matplotlib (d) All of these 2. Which of the following libraries allow(s) to manipulate, transform and visualize data easily and efficiently? (a) Pandas (b) NumPy (c) Matplotlib (d) All of these 3. Minimum number of arguments, we require to pass in Pandas series, is__________ . (a) 0 (b) 1 (c) 2 (d) 3 4. PANDAS stands for __________ . (b) Panel Data analyst (a) Panel Data Analysis (d) Panel Dashboard (c) Panel Data 5. __________ is an important library used for analysing data. (a) Math (b) Random (c) Pandas (d) None of these 6. To display the 3rd, 4th and 5th columns from the 6th to 9th rows of a dataframe DF; you can write __________ . (a) DF.loc[6:9, 3:5] (b) DF.loc[6:10, 3:6] (c) DF.iloc[6:10, 3:6] (d) DF.iloc[6:9, 3:5] 7. Which of the following can be used to specify data for creating a DataFrame? (a) Series (b) Python dict (c) Structured ndarray (d) All of these 8. To delete a row from a DataFrame, you may use __________ . (a) remove (b) del (c) drop (d) cancel 9. What is the purpose of using ndim attribute? (a) It returns the number of elements in the given data structure. (b) It returns the Series object in the form of an ndarray. (c) It returns a list of the indexes/labels. (d) It returns the number of dimensions of the given data structure. 10. For 2D plotting using a Python library, which library interface is often used? (a) seaborn (b) plotly (c) matplotlib (d) matplotlib.pyplot 11. The plot which tells the trend between two graphed variables is the __________ . (a) scatter graph/chart (b) pie (c) bar (d) line NBSE 2021 2
12. In order to work with CSV files from Pandas, you need to import Pandas, other than __________ . (a) csv (b) pandas.io (c) no extra package required (d) newcsv 13. To subtract the values of two dataframes, __________ functions may be used. (a) sub (b) rsub (c) minus (d) both (a) and (b) 14. To skip NaN values in a calculation you can specify __________ attribute. (a) NaN (b) Na (c) skipna (d) All of these 15. In given code dataframe ‘D1’ has __________ rows and __________ columns. import pandas as pd LoD = [{‘a’:10, ‘b’:20}, {‘a’:5, ‘b’:10, ‘c’:20}, {‘a’:7, ‘d’:10, ‘e’:20}] D1 = pd.DataFrame(LoD) (a) 3, 3 (b) 3, 4 (c) 3, 5 (d) None of these 16. Whenever we surf the Internet using smartphones we leave a trail of data reflecting the activities performed by us online, which is our __________ . (a) digital footprint (b) digital activities (c) online handprint (d) internet activities 17. The digital data trail we leave online unintentionally is called __________ . (a) active digital footprints (b) passive digital footprints (c) current digital footprints (d) None of these 18. Anyone who uses digital technology along with Internet is a __________ . (a) Digital citizen (b) Netizen (c) Both (a) and (b) (d) None of these 19. __________ is a person who deliberately sows discord on the Internet by starting quarrels or upsetting people, by posting inflammatory or off topic messages in an online community. (a) Netizen (b) Digital citizen (c) Internet troll (d) None of these 20. Data that can cause substantial harm, embarrassment, inconvenience and unfairness to an individual, if breached or compromised, is called __________ . (a) sensitive data (b) important data (c) security data (d) None of these 21. IPR stands for __________ . (b) Intellectual Property Right (a) Indian Property Right (d) Intellectual Property Resource (c) Intelligent Property Right 22. Intellectual Property is legally protected through __________ . (a) copyright (b) patent (c) registered trademark (d) All of these NBSE 2021 3 [P.T.O.
23. Debian is an example of __________ . (b) free and open set software (a) open source software (c) free and open source software (d) None of these 24. Which of the following two functions will produce the same result? (a) add (b) radd (c) sub (d) both (a) and (b) 25. When was Copyright Act enacted in India? (a) 1955 (b) 1957 (c) 1959 (d) 1966 SECTION B Section-B consists of 24 Questions (26 to 49). Attempt any 20 questions. 26. Gaining unauthorised access to a network or computer aur digital files with malicious intentions, is called __________ . (a) Cracking (b) Hacking (c) Banging (d) Phishing 27. The full form of IT Act, 2000 is __________ . (a) Information and Technology Act, 2000 (b) India’s Digital information technology DIT Act, 2000 (c) India’s Information Technology IT Act, 2000 (d) The Technology Act, 2008 28. A two-dimension labelled array that is an ordered collection of columns to store heterogeneous data type is __________ . (a) Series (b) NumPy array (c) Dataframe (d) Panel 29. Which function is used to rename an existing column or index? (a) std() (b) hist() (c) groupby() (d) rename() 30. Which function would you use to set the limits for x-axis of the plot? (a) limits( ) (b) xlimits( ) (c) xlim() (d) lim( ) 31. The correct statement to read from a CSV file in a dataframe is __________ . (a) <DF>.read_csv() (b) <FILE>. read_csv( )() (c) <DF> = pandas.read() (d) <DF>= pandas.read_csv() 32. To change the 5th column’s value at 3rd row as 35 in dataframe DF, you can write __________ . (a) DF[4, 6] = 35 (b) DF.iat[4, 6] = 35 (c) DF[3, 5] = 35 (d) DF.iat[3, 5] = 35 33. To iterate over horizontal subsets of dataframe, __________ function may be used. (a) iterate( ) (b) iterrows( ) (c) itercols( ) (d) iteritems( ) NBSE 2021 4
34. Which of the following statements will import Pandas library? (a) import pandas as pd (b) import pandas as py (c) import panda as py (d) All of these 35. What will be the output for the following code? import pandas as pd S = pd. Series([1,2,3,4,5],index = [‘a’, ‘b’, ‘c’, ‘d’, ‘e’]) print ( s[ ‘a’] ) (a) 2 (b) 1 (c) 3 (d) 4 36. Which argument is used to change the colour of plotted data? (a) Datacolor (b) Color (c) Plotcolour (d) None of these 37. Which function is used to create a histogram? (a) histogram( ) (b) histo( ) (c) hist() (d) histtype() 38. The function to create histograms for all numeric columns of a dataframe is __________ . (a) histogram() (b) hist(numeric_only=True) (c) hist() (d) All of these 39. D1[ : ] = 77 , will set __________ values of a DataFrame ‘D1’ to 77. (a) only first row (b) only first column (c) all (d) None of these 40. The following statement will __________ . df = df.drop([‘Name’, ‘Class’, ‘Rollno’], axis = 1) #df is a DataFrame object (a) delete three columns having labels ‘Name’, ‘Class’ and ‘Rollno’ (b) delete three rows having labels ‘Name’, ‘Class’ and ‘Rollno’ (c) delete any three columns (d) return error 41. Our digital footprint can be created by __________ . (a) visiting any website (b) sending email (c) posting online (d) All of these 42. Online posting of rumours, giving threats online, posting the victim’s personal information, comments aimed to publicly ridicule a victim is termed as __________ . (a) Cyber bullying (b) Cyber crime (c) Cyber insult (d) All of these 43. __________ are the records and traces that we left behind as we use Internet. (a) Digital footprints (b) Data protection (c) Plagiarism (d) Digital data NBSE 2021 5 [P.T.O.
44. The __________ and logo of the software will be protected by copyright. (a) name (b) patent (c) registered trademark (d) None of these 45. The __________ include right to copy (reproduce) a work, right to distribute copies of the work to the public, and right to publicly display or perform the work. (a) Copyright (b) Patent (c) Createright (d) None of these 46. A patent protects an invention for _____________ years, after which it can be freely used. (a) 10 (b) 20 (c) 30 (d) 40 47. Our digital footprints are stored in local web browser in the form of __________ . (a) browsing history (b) cookies (c) passwords (d) All of these 48. Ravi copy some contents from Internet, but do not mention the source or the original creator. This is an act of __________ . (a) plagiarism (b) copyright infringement (c) trademark infringement (d) licence infringement 49. Which of the following is cybercrime? (a) Hacking (b) Phishing (c) Spamming (d) All of these SECTION – C Section-C consists of 6 Questions (50 to 55). Attempt any 5 questions. CASE STUDY Mr. Aniket has given a chart and he need to write the code to create the chart. entry b 60 50 40 10 20 30 40 50 30 entry a 20 10 6 0 –10 0 NBSE 2021
Help him to fill in the blanks to complete the code: import numpy as np import __________________ # Statement 1 data = {'a': np.arange(50), 'c': np.random.__________________ (0, 50, 50), # Statement 2 'd': np.random.__________________ (50)} # Statement 3 data['b'] = data['a'] + 10 * np.random.randn(50) data['d'] = np.abs(data['d']) * 100 plt.__________________ ('a', 'b', c='c', s='d', data=data) # Statement 4 plt.__________________ ('entry a') plt.ylabel('entry b') plt.__________________ () 50. Choose the right code from the following for statement 1. (a) matplotlib as plt (b) pyplot as plt (c) matplotlib.pyplot as plt (d) matplotlib.plt as pyplot 51. Identify the name of the function that should be used in statement 2 to plot the above graph. (a) randint () (b) int() (c) hist() (d) float() 52. Choose the correct option for the statement 3. (a) randn () (b) random() (c) rand() (d) None of these 53. Choose the correct option for the statement 4. (a) graph() (b) bar() (c) scatter() (d) col() 54. Choose the right function/method from the following for the statement 5. (a) xlabel () (b) ylabel () (c) label() (d) xylabel() 55. Choose the correct function for statement 6 to display the graph. (a) disp() (b) isplay() (c) show() (d) visible() NBSE 2021 7 [P.T.O.
ROUGH WORK NBSE 2021 8
Search
Read the Text Version
- 1 - 9
Pages: