100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COSC 1436 Test 2 Review UPDATED ACTUAL Questions and CORRECT Answers $10.99   Add to cart

Exam (elaborations)

COSC 1436 Test 2 Review UPDATED ACTUAL Questions and CORRECT Answers

 3 views  0 purchase
  • Course
  • COSC 1436
  • Institution
  • COSC 1436

COSC 1436 Test 2 Review UPDATED ACTUAL Questions and CORRECT Answers 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? - CORRECT ANSWER- listdir(path) The variable data refers to the string "". Which expression w...

[Show more]

Preview 2 out of 9  pages

  • October 28, 2024
  • 9
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COSC 1436
  • COSC 1436
avatar-seller
MGRADES
COSC 1436 Test 2 Review UPDATED
ACTUAL Questions and CORRECT
Answers
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? - CORRECT ANSWER✔✔- listdir(path)


The variable data refers to the string "myprogram.exe". Which expression will have the value
of "gram"? - CORRECT ANSWER✔✔- 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. - CORRECT
ANSWER✔✔- block cypher


Which file method is used to read the entire file in a single operation? - CORRECT
ANSWER✔✔- read



The binary number 1100110 converted to Octal is? - CORRECT ANSWER✔✔- 146



The binary number 1111011 converted to hexadecimal is? - CORRECT ANSWER✔✔- 7B


Where 's' is a string the expression needed to return a True if 's' contains only letters or False
otherwise, would be? - CORRECT ANSWER✔✔- s.isalpha()


The _______ function returns the character associated with an ordinal position value from the
ASCII character set. - CORRECT ANSWER✔✔- 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?
- CORRECT ANSWER✔✔- 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? - CORRECT
ANSWER✔✔- iqivkirgc



The Hexadecimal number 7BFE8 converted to decimal is? - CORRECT ANSWER✔✔-
1111011111111101000


What number system is used for all coding schemes and is used for the design of all modern
day electronic computers? - CORRECT ANSWER✔✔- binary


The variable data refers to the string "myprogram.exe". What will be the value of the
following expression?

data[2] - CORRECT ANSWER✔✔- p


Given the variable data which refers to the string "No way!" the expression data[1] would
evaluate to? - CORRECT ANSWER✔✔- o


The _______ function return the ordinal position in the ASCII character set. - CORRECT
ANSWER✔✔- ord



The Hexadecimal number 8D converted to Octal is? - CORRECT ANSWER✔✔- 215


Operating system commands such as chdir(path), and rmdir(path) are called _________ . -
CORRECT ANSWER✔✔- module functions



The Octal number 704 converted to binary is? - CORRECT ANSWER✔✔- 111000100


Given the variable data which refers to the string "No way!", the expression data[3:6] would
evaluate to? - CORRECT ANSWER✔✔- way



The Octal number 201 converted to decimal is? - CORRECT ANSWER✔✔- 129

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller MGRADES. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $10.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

81113 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$10.99
  • (0)
  Add to cart