
Programming II - Python Basics
Quiz
•
Computers
•
University
•
Practice Problem
•
Easy
Wayground Content
Used 3+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between a list and a NumPy array?
NumPy arrays are slower and use more memory than lists.
NumPy arrays are faster, use less memory, and support mathematical operations directly.
Lists can only store one data type, while NumPy arrays can store multiple types.
NumPy arrays are only used for 1-dimensional data, while lists can be multi-dimensional.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'map()' function do?
It applies a function to all items in an iterable.
It creates a new list from an existing list.
It filters items from an iterable based on a condition.
It sorts the items in an iterable.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the two main platforms to write Python code?
Jupyter Notebook and Google Colab
Visual Studio Code and PyCharm
Eclipse and NetBeans
Atom and Sublime Text
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'not' operator do?
It flips True to False and vice versa.
It converts a string to an integer.
It checks if a value is null.
It returns the absolute value of a number.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in Python?
Use the syntax: def function_name(parameters):
Use the syntax: function_name(parameters) = def
Define a function by writing function_name(parameters) in the main body
Use the syntax: define function_name(parameters) as:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the pandas library?
Data visualization and reporting.
Data manipulation and analysis.
Machine learning model training.
Web development and design.
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What is the purpose of the 'filter()' function?
It constructs an iterator from elements of an iterable for which a function returns true.
It sorts the elements of an iterable in ascending order.
It maps a function to all elements of an iterable.
It reduces an iterable to a single cumulative value.
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
15 questions
GIS Unit III
Quiz
•
University
15 questions
ADB Quiz #1
Quiz
•
University
20 questions
Quiz Harian Gdevelop MPK
Quiz
•
University
15 questions
Computer and Other Human Inventions
Quiz
•
University
15 questions
Robotics Prelim
Quiz
•
University
20 questions
Algoritma Pemrograman
Quiz
•
University
16 questions
Meet ACM
Quiz
•
University
20 questions
Digital and Analog transmission
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
10 questions
14.2 Independent/Dependent Variables
Quiz
•
KG - University
18 questions
Great Lakes States
Quiz
•
KG - University
7 questions
DNA, Chromosomes, Genes, and Traits: An Intro to Heredity
Interactive video
•
11th Grade - University
7 questions
Reflexive Verbs in Spanish
Lesson
•
9th Grade - University
7 questions
Narrative Writing 1
Interactive video
•
4th Grade - University
