Python Final Exam questions and
answers rated A+ (29)
A(n) __________ program translates a high-level language program into a separate machine language
program.
translator
assembler
compiler
utility - correct answer ✔✔compiler
The rules that must be followed when writing a program are called __________.
operators
punctuation
syntax
key words - correct answer ✔✔syntax
The __________ translates an assembly language program to a machine language program.
assembler
translator
compiler
interpreter - correct answer ✔✔assembler
Computers can only execute programs that are written in __________.
assembly language
,Java
Python
machine language - correct answer ✔✔machine language
In the __________ numbering system, all numeric values are written as sequences of 0s and 1s.
octal
hexadecimal
decimal
binary - correct answer ✔✔binary
A byte is made up of __________ bits.
2
8
16
4 - correct answer ✔✔8
A byte is enough memory to store a(n) __________ value.
character
exponential
integer
floating point - correct answer ✔✔character
A type of memory that can hold data for long periods of time, even when there is no power to the
computer, is called __________.
RAM
, CPU registers
secondary storage
main memory - correct answer ✔✔secondary storage
This is a volatile type of memory that is used only for temporary storage while a program is running.
secondary storage
RAM
the USB drive
the disk drive - correct answer ✔✔RAM
The part of a computer that runs programs is called __________.
CPU
secondary storage
RAM
main memory - correct answer ✔✔CPU
Which command is used to print the path to the current working directory?
path
chmod
cat
pwd - correct answer ✔✔pwd
What does mv my_file.py my_file2.py do?
renames my_file2.py to my_file.py
renames my_file.py to my_file2.py
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 Sakayobako30. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $20.49. You're not tied to anything after your purchase.