What is the purpose of Universal Functions (ufuncs) in NumPy?
Microsoft Technical Round - MCQ Round

Quiz
•
Computers
•
University
•
Medium
Microsoft INC Pvt Ltd
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
They are functions that can be applied universally to any Python object.
They are vectorized wrappers around C functions that perform element-wise operations on NumPy arrays.
They provide a generic interface for integrating with other scientific computing libraries.
They are functions designed for processing string data within NumPy arrays.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the fundamental difference in data structure between a Pandas Series and a Pandas DataFrame?
A Series is immutable, while a DataFrame is mutable.
A Series is a 1-dimensional labeled array, whereas a DataFrame is a 2-dimensional labeled data structure with columns of potentially different types.
A Series can only hold numerical data, while a DataFrame can hold any data type.
A Series is built on top of Python lists, while a DataFrame is built on top of NumPy arrays.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How does Pandas primarily handle missing data (NaN values) during most arithmetic operations or aggregations (e.g., sum(), mean())?
It raises an error if any NaN values are present.
It automatically replaces NaN values with 0 before calculation.
It typically skips or excludes NaN values from the calculation by default.
It converts the entire column to a string type if NaN values exist.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the advantage of using vectorized operations (e.g., df['col'] + 5) in Pandas compared to iterating row by row with a for loop?
Vectorized operations use less memory.
Vectorized operations are usually implemented in highly optimized C or Cython, making them significantly faster.
for loops are explicitly discouraged in Pandas and will always raise a warning.
Vectorized operations provide more control over the iteration process.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
You are training a neural network and observe that the training loss is decreasing, but the validation loss starts increasing after a certain number of epochs.
Increase the learning rate significantly.
Add more layers to the neural network.
Implement early stopping or add regularization (e.g., L1/L2, dropout).
Increase the size of the training dataset.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When is a "Bagging" ensemble method generally more effective than a "Boosting" ensemble method?
When the base learners are inherently strong and prone to high variance.
When the base learners are weak and prone to high bias.
When the dataset is very small and prone to noise.
When the goal is to interpret the contribution of individual base learners.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following scenarios would typically benefit most from using a kernel trick (e.g., in SVMs)?
When the data is linearly separable in its original feature space.
When the number of features is extremely high, and you need dimensionality reduction.
When the data is non-linearly separable in its original feature space but potentially separable in a higher-dimensional space.
When you need a highly interpretable model.
Create a free account and access millions of resources
Similar Resources on Quizizz
30 questions
JavaScript

Quiz
•
University
25 questions
POP QUIZ SAD TOPIC 1

Quiz
•
University
30 questions
Computer Networking Lesson 1

Quiz
•
University
25 questions
Cloud Computing

Quiz
•
University
25 questions
Algoritma dan Pemrograman

Quiz
•
12th Grade - University
25 questions
Quiz No. 1 - Functions in JavaScript

Quiz
•
University
30 questions
Quiz PBD 21 Sept 2023

Quiz
•
University
25 questions
Layering Models

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade