
AI Bootcamp: 2024 Edition- Session 2
Authored by Abbas Abbasi
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
20 questions
Microprocessor
Quiz
•
University
20 questions
Mobile Apps PayKu
Quiz
•
1st Grade - Professio...
20 questions
Java Quiz 1
Quiz
•
University
20 questions
Software Processes
Quiz
•
University
20 questions
Rung chuông vàng
Quiz
•
University
20 questions
ICT Short Quiz
Quiz
•
University
20 questions
Review Quiz (Chapter 3&4)
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade