
Secure Scripting: Exam 1 Review: Modules 1 - 4
Authored by Iwin Ross
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
38 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data structure in Python allows us to associate values with keys?
List
Dictionary
Tuple
Set
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement about Python dictionaries is NOT true?
They are unordered collections of items.
Keys in a dictionary must be immutable.
Dictionaries can have duplicate keys.
Values in a dictionary can be any data type.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the Python class from which all exceptions inherit?
Error
Exception
BaseError
Throwable
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When debugging variables in a Python development environment, which tool or method is most commonly used to inspect their values during runtime?
The debug module
The breakpoint() function
The inspect library
Manual print() statements
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method returns an alphabetically sorted list containing all entities' names that are available in a specific module?
dir()
help()
sort()
sorted()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The dir() method in Python provides a sorted list of names in the current module. What does this include?
Only variables defined in the module
Only functions and classes defined in the module
All variables, functions, and classes defined in the module
Both built-in and user-defined entities
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which class does Python provide from the optparse module for managing command-line arguments?
OptionGroup
OptionParser
ArgumentParser
CommandLineManager
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
43 questions
Year 10 J277 Networks up to Topologies
Quiz
•
9th Grade - University
42 questions
5. Kubernetes Concepts - Pods, ReplicaSets, Deployments
Quiz
•
University
36 questions
Repaso Examen Parcial #1: TESI 2213
Quiz
•
University
35 questions
MLQMB school quizz
Quiz
•
University
40 questions
Quiz 1 (BIT CT 1-C)
Quiz
•
University
35 questions
OVERVIEW OF COMPUTER SYSTEM
Quiz
•
University
40 questions
SIA: Quiz 1 (Lesson 1-2)
Quiz
•
University
38 questions
Network Fundamentals
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
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
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University