Question bank

Filter questions by subject, topic and difficulty. Open any question to answer it and see the explanation.

Clear
255 questions found · practise this subject as a set Show 20 · 50 per page
#QuestionSubject and topicDifficulty
181 What does a firewall do? Computer Science/Informatics Practices
Network security
Easy
182 Which symbol in a browser's address bar usually indicates an HTTPS connection? Computer Science/Informatics Practices
Network security
Easy
183 A company hires an expert to break into its own systems with permission and report weaknesses. This person is Computer Science/Informatics Practices
Network security
Medium
184 Why should antivirus software be updated regularly? Computer Science/Informatics Practices
Network security
Medium
185 Why is HTTPS preferred over HTTP when entering a password on a website? Computer Science/Informatics Practices
Network security
Hard
186 Which Python library is mainly used for plotting graphs and charts? Computer Science/Informatics Practices
Python libraries for data
Easy
187 What is the output of print(np.array([1, 2, 3]) * 2) after import numpy as np? Computer Science/Informatics Practices
Python libraries for data
Easy
188 What is the shape of np.array([[1, 2, 3], [4, 5, 6]])? Computer Science/Informatics Practices
Python libraries for data
Medium
189 What does np.arange(1, 10, 3) produce? Computer Science/Informatics Practices
Python libraries for data
Medium
190 Which statement correctly contrasts a NumPy array with a Pandas DataFrame? Computer Science/Informatics Practices
Python libraries for data
Hard
191 What are the index labels of pd.Series([3, 6, 9]) when no index is given? Computer Science/Informatics Practices
Series
Easy
192 For s = pd.Series([10, 20, 30, 40], index=['a', 'b', 'c', 'd']), what is s['b']? Computer Science/Informatics Practices
Series
Easy
193 For the same Series s with labels a to d, how many elements does s['a':'c'] contain? Computer Science/Informatics Practices
Series
Medium
194 What does pd.Series([4, 8, 12, 16, 20]).tail(2) return? Computer Science/Informatics Practices
Series
Medium
195 s1 = pd.Series([1, 2, 3], index=['a', 'b', 'c']) and s2 = pd.Series([10, 20], index=['b', 'c']). What is the … Computer Science/Informatics Practices
Series
Hard
196 df = pd.DataFrame({'Name': ['A', 'B', 'C'], 'Marks': [70, 85, 60]}). What is df.shape? Computer Science/Informatics Practices
DataFrames
Easy
197 Which statement adds a new column named City to an existing DataFrame df with three rows? Computer Science/Informatics Practices
DataFrames
Easy
198 Which statement removes the column Grade from df and returns the result? Computer Science/Informatics Practices
DataFrames
Medium
199 A DataFrame has 4 rows and 3 columns. What is the shape of its transpose df.T? Computer Science/Informatics Practices
DataFrames
Medium
200 df has shape (3, 3). The statement df2 = df.drop('Grade', axis=1) is run. What are the shapes of df and df2? Computer Science/Informatics Practices
DataFrames
Hard