03/07/2026
QUESTIONS AND VERIFIED ANSWERS
COSC 1436 Test 2 Review Latest 2026 UPDATED Exam
Questions and Verified Answers, Exams of Nursing
If you need to know all of the names of the files in a specific directory for which you know the path you
could use the function?
listdir(path)
The variable data refers to the string "myprogram.exe". Which expression will have the value of "gram"?
data[5:9]
A ________ uses a plaintext character to compute two or more encrypted characters and each
encrypted character is computed using two or more plaintext characters.
block cypher
Which file method is used to read the entire file in a single operation?
read
The binary number 1100110 converted to Octal is?
146
The binary number 1111011 converted to hexadecimal is?
3/7/2026
7B
1
, COSC 1436 TEST 2 REVIEW LATEST 2026 UPDATED EXAM
03/07/2026
QUESTIONS AND VERIFIED ANSWERS
Where 's' is a string the expression needed to return a True if 's' contains only letters or False otherwise,
would be?
s.isalpha()
The _______ function returns the character associated with an ordinal position value from the ASCII
character set.
chr
While 's' is a string, to return a list of words in 's' using 'sep' as the delimiter and if no 'sep' is specified
then any white space will act as the separator, you would use which string method?
s.split([sep])
Encoding techniques have been used for centuries. Using the Caesar cypher technique with n offset of 4,
what would the encoded version of the word "emergency" be?
iqivkirgc
The Hexadecimal number 7BFE8 converted to decimal is?
1111011111111101000
What number system is used for all coding schemes and is used for the design of all modern day
electronic computers?
binary
3/7/2026
2