Exam 4: Strings and Text Files
Exam 1: Introduction50 Questions
Exam 2: Software Development Data Types and Expressions50 Questions
Exam 3: Loops and Selection Statements50 Questions
Exam 4: Strings and Text Files50 Questions
Exam 5: Lists and Dictionaries50 Questions
Exam 6: Design With Functions50 Questions
Exam 7: Simple Graphics and Image Processing50 Questions
Exam 8: Graphical User Interrfaces50 Questions
Exam 9: Design With Classes50 Questions
Exam 10: Multithreading Networks and Client Server Programming50 Questions
Exam 11: Searching Sorting and Complexity Analysis51 Questions
Select questions type
A data structure is a compound unit that consists of several smaller pieces of data.
Free
(True/False)
4.9/5
(39)
Correct Answer:
True
In the binary number system, each digit or bit has a positional value that is a power of what?
Free
(Multiple Choice)
4.8/5
(42)
Correct Answer:
B
What file access method can be used to read a single line of input and return the line as a string, including the newline character?
Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
B
Many applications now use data mangling to protect information transmitted on networks.
(True/False)
4.8/5
(37)
What does a block cipher utilize in order to change plaintext characters into two or more encrypted characters?
(Multiple Choice)
4.8/5
(32)
The absolute value of a digit is determined by raising the base of the system to the power specified by the position (baseposition).
(True/False)
4.9/5
(39)
Your script is parsing filenames and is creating a count of how many files per file extension type exist within a directory. What slice could you use to extract the file extension substring, assuming the extensions are three letters only?
(Multiple Choice)
4.9/5
(31)
The string method isalphabetic returns True if the string contains only letters or False otherwise.
(True/False)
4.8/5
(29)
A module behaves like a function, but has a slightly different syntax.
(True/False)
4.9/5
(42)
The remove file system function is included in the os.path module.
(True/False)
4.9/5
(40)
The encryption method that replaces a character in a text with another character some given distance away in the alphabet from the original is known as what type of cipher?
(Multiple Choice)
4.9/5
(33)
What specific Python module can you use to determine the file size in bytes of a given file?
(Multiple Choice)
4.9/5
(31)
What does a mode string of 'r' indicate when opening a file in Python?
(Multiple Choice)
4.8/5
(28)
When you launch Python, what file system path does it start with?
(Multiple Choice)
4.7/5
(30)
You are running a Python script that is supposed to write data to an open file, but discover that the file contents are being erased each time the script runs. What is most likely the issue?
(Multiple Choice)
4.9/5
(35)
A method is always called with a given data value called an object, which is placed before the method name in the call.
(True/False)
4.8/5
(36)
The decimal number system is also called the base ten number system.
(True/False)
4.7/5
(46)
The decimal number system, which utilizes the numbers 0-9, is also known as what number system?
(Multiple Choice)
4.8/5
(47)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)