• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 30 pages
Exam (elaborations)

Python Programming Final Exam Questions With Verified Answers

Document preview thumbnail
Preview 3 out of 30 pages

A(n) __________ program translates a high-level language program into a separate machine language program. translator assembler compiler utility - Answer compiler The rules that must be followed when writing a program are called __________. operators punctuation syntax key words - Answer syntax The __________ translates an assembly language program to a machine language program. assembler translator compiler interpreter - Answer assembler Computers can only execute programs that are written in __________. assembly language Java Python machine language - Answer machine language In the __________ numbering system, all numeric values are written as sequences of 0s and 1s. octal hexadecimal decimal binary - Answer binary A byte is made up of __________ bits. 2 8 16 4 - Answer 8 A byte is enough memory to store a(n) __________ value. character exponential integer floating point - 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 - 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 - Answer RAM The part of a computer that runs programs is called __________. CPU secondary storage RAM main memory - Answer CPU Which command is used to print the path to the current working directory? path chmod cat pwd - Answer pwd What does mv my_ my_ do? renames my_ to my_ renames my_ to my_ moves my_ to the directory my_ moves my_ to the directory my_ - Answer renames my_ to my_ Which command allows you to view the contents of a file without opening a text editor? ls -l pwd less cat - Answer cat Which command allows you to get help on the command ls? help ls help list man list man ls - Answer man ls To save a file in the vi/vim editor which mode must you be operating in? undo mode command mode edit mode insert mode - Answer command mode What is the command to save a file in the vi/vim editor? :w :q :s :set nu - Answer :w If you are in a directory and would like to move to the parent directory which command would you use? ./filename cd usr/local/bin/filename .. cd .. - Answer cd .. What is the command to create a directory? rmdir cdir mkdir cd - Answer mkdir To remove a directory mydirectory as well as the corresponding files that directory contains, which command do we use? rmdir mydirectory rm -r mydirectory delete -r mydirectory delete mydirectory - Answer rm -r mydirectory In the vi/vim editor what key must be pressed to go to command mode? shift-f4 cntrl esc i - Answer esc A __________ is a sequence of characters. text block string character collection char sequence - Answer string A __________ is a name that references a value in the computer's memory. variable register RAM slot byte - Answer variable A string literal in Python must be enclosed in either single-quotes or double-quotes. double quotes. single quotes. parentheses. - Answer either single-quotes or double-quotes. A(n) __________ makes a variable reference a value in the computer's memory. assignment statement variable declaration string literal math expression - Answer assignment statement


Document information

Uploaded on
February 7, 2024
Number of pages
30
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Grademasters
3.8
(46)
Sold
118
Followers
69
Items
2591
Last sold
1 month ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.