Exam 8: Cryptanalysis: Advanced Dictionaries and Lists, Regular Expressions
Exam 1: Introduction to Python: Introduction to Numeric Types, Turtle Graphics, Simple for Loops and Functions34 Questions
Exam 2: Pthon: Estimating PI: Math and Random Methods, Selection and Boolean Expressions, the Print Function33 Questions
Exam 3: Codes and Other Secrets: String Operators and Methods, the Len Built-In Function, Keyword Parameters, User Input33 Questions
Exam 4: Introducing the Python Collections: Lists, Dictionaries, Tuples, and Statistics33 Questions
Exam 5: Bigger Data: File Io: the While Loop, String Formatting, Reading Online Data in CSV and Json Formats33 Questions
Exam 6: Image Processing: Nested for Loops, Functions As Parameters, Namespaces, Lists of Lists33 Questions
Exam 7: Data Mining: Cluster Analysis: More on the While Loop; Parrallel Lists31 Questions
Exam 8: Cryptanalysis: Advanced Dictionaries and Lists, Regular Expressions32 Questions
Exam 9: Fractals: the Geometry of Nature: Recursion, Grammars and Production Rules33 Questions
Exam 10: Astronomy: Creating Classes, Writing Constructors, Accessors, Mutators and Special Methods33 Questions
Exam 11: Simulation:computer Simulation Using Objects34 Questions
Exam 12: Father Was a Rectangle: Inheritance and Object-Oriented Design32 Questions
Exam 13: Video Games: Multithreading, Event Handlers, Static Variables33 Questions
Select questions type
In a regular expression, a part of the expression surrounded by () is called a(n):
(Multiple Choice)
4.8/5
(41)
Match each definition with its term.
-Refers to the field of code breaking.
(Multiple Choice)
4.8/5
(35)
What is the difference between row major order and column major order?
(Essay)
4.8/5
(35)
Case Study 2:
1. def maybeAdd(ch, toList):
2. if ch in 'abcdefghijklmnopqrstuvwxyz'
and ch not in toList:
3. toList.append (ch)
-Refer to the session in the accompanying Case Study 2. What is the value of myList after the following code is executed?
>>> myList = []
>>> maybeAdd('a', myList)
(Multiple Choice)
4.8/5
(47)
Manually trying every possible combination of letters to decode a message is called:
(Multiple Choice)
4.8/5
(37)
What method sorts a list of values from largest to smallest?
(Multiple Choice)
4.8/5
(41)
The rail-fence cipher with a rail size of ___ breaks the plaintext into strings consisting of characters with odd and even numbered indexes.
(Multiple Choice)
4.9/5
(44)
Match each definition with its term.
-Allows us to match strings using patterns.
(Multiple Choice)
4.9/5
(38)
One effective way to ignore non-letter characters is to add them to the string before we start counting.
(True/False)
4.8/5
(32)
What is the value of myList after the following statement?
MyList = myList.sort().
(Multiple Choice)
4.8/5
(34)
When decrypting using the rail fence cipher, one can easily see how many rails were used and encrypt the message by simply examining the encoded message.
(True/False)
4.9/5
(37)
In Python, regular expressions are available through the ____ module.
(Multiple Choice)
4.9/5
(41)
Showing 21 - 32 of 32
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)