
AI Bootcamp: 2024 Edition- Session 2

Quiz
•
Computers
•
University
•
Medium
Abbas Abbasi
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How do you create a 1D NumPy array with the values 1, 2, 3, and 4?
np.array([1, 2, 3, 4])
np.create([1, 2, 3, 4])
np.new_array([1, 2, 3, 4])
np.make_array([1, 2, 3, 4])
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code: arr = np.array([1, 2, 3, 4]); arr[1]
?
1
2
3
4
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the correct way to slice the first three elements of a NumPy array arr = np.array([10, 20, 30, 40, 50])
?
arr[0:3]
arr[1:4]
arr[:3]
arr[3:5]
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How can you create a 2D NumPy array with the values [[1, 2], [3, 4]]?
np.array([[1, 2], [3, 4]])
np.create([[1, 2], [3, 4]])
np.new_array([[1, 2], [3, 4]])
np.make_array([[1, 2], [3, 4]])
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code: arr = np.array([5, 6, 7, 8]); arr[-1]
?
5
6
7
8
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which method is used to read a CSV file into a Pandas DataFrame?
pd.read_csv()
pd.load_csv()
pd.import_csv()
pd.open_csv()
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code: df.head()
if df
is a DataFrame?
Displays the first 5 rows of the DataFrame
Displays the last 5 rows of the DataFrame
Displays all rows of the DataFrame
Displays the column names of the DataFrame
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Parcial 3 - Fundamentos de Programacion

Quiz
•
University
20 questions
Data Analysis using Python

Quiz
•
University
21 questions
РМП 3 курс 6 семестр

Quiz
•
11th Grade - University
20 questions
Commands Linux

Quiz
•
University
25 questions
C PROGRAMMING

Quiz
•
University
20 questions
Code-A-Vita

Quiz
•
University
20 questions
Cuestionario de Inteligencia Artificial

Quiz
•
University
20 questions
R. 6. Перетворення даних

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University