
Python GUI and Data Visualisation Quiz
Authored by Roger Holden
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of the `Tkinter` library in Python?
To perform numerical computations
To create graphical user interfaces
To plot graphs and charts
To manage file input and output
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the convention to import the `NumPy` library in Python?
`import numpy as np`
`import numpy as npy`
`import numpy as num`
`import numpy as nmp`
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a Python script, what is the purpose of the `if __name__ == "__main__":` statement?
To define a function
To execute code only when the script is run directly
To import modules
To declare global variables
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following commands is used to create a 2D plot in `Matplotlib`?
`plt.plot()`
`plt.scatter()`
`plt.bar()`
`plt.hist()`
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default geometry manager in `Tkinter`?
`grid`
`pack`
`place`
`canvas`
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to display a plot in `Matplotlib`?
`plt.show()`
`plt.display()`
`plt.render()`
`plt.exhibit()`
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In `Tkinter`, which widget is used to create a button?
`Label`
`Entry`
`Button`
`Text`
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
17 questions
ReactNativeQuiz
Quiz
•
University
15 questions
Data Analytics using Python - Quiz 2
Quiz
•
University
15 questions
Trắc nghiệm kiến thức Java Core - Phần I
Quiz
•
University
15 questions
Video Editing (Hari-1)
Quiz
•
University
10 questions
Basic Robotic Part1
Quiz
•
University
12 questions
Introduction to DTP
Quiz
•
University
10 questions
Intro to ML: Unsupervised Learning
Quiz
•
University
12 questions
Python Quiz
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade