Class 12 TERM-I SET-1 Series NBSE/XII/2021 Code No. 065/12/1 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 delete a row from a DataFrame, you may use __________ . (a) remove (b) del (c) drop (d) cancel 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. 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. 9. For 2D plotting using a Python library, which library interface is often used? (a) seaborn (b) plotly (c) matplotlib (d) matplotlib.pyplot 10. The plot which tells the trend between two graphed variables is the __________ . (a) scatter graph/chart (b) pie (c) bar (d) line 11. 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 NBSE 2021 2
12. Which of the following command is used to install Pandas? (a) Pip install python-pandas (b) Pip install pandas (c) Python install python (d) Pip install pandas 13. To skip NaN values in a calculation you can specify __________ attribute. (a) NaN (b) Na (c) skipna (d) All of these 14. 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 15. What will be the output of the following code? import pandas as pd s=pd.Series([1,2,3,4,5], index=[\"ajay\", \"pankaj\",\"deepti\",\"rajesh\",\"ritika\"]) print(s[\"rajesh\"]) (a) 1 (b) 2 (c) 3 (d) 4 16. The process of re-selling old electronic goods at lower prices is called __________ . (a) refurbishing (b) recycle (c) reuse (d) reduce 17. Anyone who uses digital technology along with Internet is a __________ . (a) Digital citizen (b) Netizen (c) Both (a) and (b) (d) None of these 18. __________ 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 19. 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 20. IPR stands for __________ . (b) Intellectual Property Right (a) Indian Property Right (d) Intellectual Property Resource (c) Intelligent Property Right 21. Intellectual Property is legally protected through __________ . (a) copyright (b) patent (c) registered trademark (d) All of these NBSE 2021 3 [P.T.O.
22. __________ covers all clauses of software purchase, viz., how many copies can be installed, whether source is available, whether it can be modified and redistributed and so on. (a) EULA (b) EULE (c) AULA (d) AULI 23. Debian is an example of __________ . (a) open source software (b) free and open set software (c) free and open source software (d) None of these 24. Which of the following is white hat hacker? (b) Non Ethical hacker (a) Ethical hacker (d) None of these (c) 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 systems and 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. What will be the output for the following code? import pandas as pd import numpy as np S = pd.Series (np.random.randn(2)) print (s.size) (a) 0 (b) 1 (c) 2 (d) 3 30. Which function would you use to set the limits for x-axis of the plot? (a) limits( ) (b) xlimits( ) (c) xlim() (d) lim( ) NBSE 2021 4
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( ) 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) histograme( ) (c) histo() (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 NBSE 2021 5 [P.T.O.
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 websites or applications that enable users to participate by creating and sharing content with others in the community. (a) Social media (b) Social channel (c) Social networking (d) None of these 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) Create right (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 does not mention the source or the original creator. This is an act of __________ . (a) plagiarism (b) copyright infringement (c) trademark infringement (d) license 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. Amit is working as data analyst in an organization. He need to prepare the following data: aaa bbb ccc xyz 1 2 3 mno 4 5 6 pqr 7 8 9 After preparing the data, he wants to perform certain actions. Help him to do so. NBSE 2021 6
50. Choose the correct answer if the df.loc[‘xyz’:’pqr’] command is executed in given dataframe df. (a) All three rows will be selected and printed (b) Only first and last rows will be selected and printed (c) First two rows will be selected and printed (d) None of these 51. To make the column ‘aaa’ as new index of dataframe df, correct command is __________ . (a) df.new_index('aaa', inplace=True) (b) df.setIndex(‘aaa’, inplace=True) (c) df.set_index(‘aaa’, inplace=True) (d) df.reset_index(‘aaa’, inplace=True) 52. Identify incorrect command to print column ‘aaa’ of above given df __________ . (a) print(df.aaa) (b) print(df.’aaa’) (c) print(df[‘aaa’]) (d) print(df.loc[‘xyz’: ,’aaa’]) 53. Choose correct option to print column ‘aaa’ __________ . (a) print(df[‘aaa’]) (b) print(df.loc[ ‘xyz’: , ’aaa’ ]) (c) print(df.aaa) (d) All are correct 54. To print first two columns of dataframe df is __________ . (a) df.head(2) (b) df.tail(2) (c) df.head() (d) None of these 55. Choose the correct option bases on the two given statements: Statement 1: L abeled indexing uses rows and columns title to select data in the DataFrame Statement 2: In boolean indexing, we will select rows or columns based on the actual values of the data in the DataFrame (a) Statement 1 is valid but statement 2 is invalid. (b) Statement 1 is invalid but statement 2 is valid. (c) Both statement are valid. (d) Both statements are invalid. NBSE 2021 7 [P.T.O.
ROUGH WORK NBSE 2021 8
Search
Read the Text Version
- 1 - 9
Pages: