Exam 4: Strings and Text Files

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A data structure is a compound unit that consists of several smaller pieces of data.

Free
(True/False)
4.9/5
(39)
Correct Answer:
Verified

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:
Verified

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:
Verified

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)

The two digits in the base two number system are 0 and 1.

(True/False)
4.9/5
(32)

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)

Data can be output to a text file using a(n) output object.

(True/False)
4.8/5
(34)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)