Python Programming Final Exam Questions With Verified Answers
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
Escuela, estudio y materia
- Institución
- Python Programming
- Grado
- Python Programming
Información del documento
- Subido en
- 7 de febrero de 2024
- Número de páginas
- 30
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
python programming stuvia
-
python programming final exam questions with verif
-
an program translates a high level la
-
the rules that must be followed when writing a pro