Fundamentals of Computer Programming, Exams of Advanced Education

The basic concepts and terminology related to computer programming, including the definition of a program, the components of a computer system, different types of memory, input/output devices, programming languages, compilers, interpreters, and common programming constructs such as variables, operators, conditional statements, and loops. A solid foundation for understanding the fundamental principles of computer programming and can be useful for students at the high school or university level who are interested in learning about the core concepts of programming and computer science.

Typology: Exams

2023/2024

Available from 08/03/2024

Qualityexam
Qualityexam 🇰🇪

2.5

(4)

6.4K documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Python Exam Test 1 Practice With 100%
Correct And Verified Answers 2024
A(n) __________ is a set of instructions that a computer follows to perform a task.
1. compiler
2. program
3. interpreter
4. programming language - Correct Answer-program
The physical devices that a computer is made of are referred to as .
1. hardware
2. software
3. the operating system
4. tools - Correct Answer-hardware
The part of a computer that runs programs is called .
1. RAM
2. secondary storage
3. main memory
4. the CPU - Correct Answer-the CPU
Today, CPUs are small chips known as __________.
a. ENIACs
b. microprocessors
c. memory chips
d. operating systems - Correct Answer-microprocessors
The computer stores a program while the program is running, as well as the data that
the program is working with, in __________.
a. secondary storage
b. the CPU
c. main memory
d. the microprocessor - Correct Answer-main memory
This is a volatile type of memory that is used only for temporary storage while a
program is
running.
1. RAM
2. secondary storage
3. the disk drive
4. the USB drive - Correct Answer-RAM
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Fundamentals of Computer Programming and more Exams Advanced Education in PDF only on Docsity!

Python Exam Test 1 Practice With 100%

Correct And Verified Answers 2024

A(n) __________ is a set of instructions that a computer follows to perform a task.

  1. compiler
  2. program
  3. interpreter
  4. programming language - Correct Answer-program The physical devices that a computer is made of are referred to as.
  5. hardware
  6. software
  7. the operating system
  8. tools - Correct Answer-hardware The part of a computer that runs programs is called.
  9. RAM
  10. secondary storage
  11. main memory
  12. the CPU - Correct Answer-the CPU Today, CPUs are small chips known as __________. a. ENIACs b. microprocessors c. memory chips d. operating systems - Correct Answer-microprocessors The computer stores a program while the program is running, as well as the data that the program is working with, in __________. a. secondary storage b. the CPU c. main memory d. the microprocessor - Correct Answer-main memory This is a volatile type of memory that is used only for temporary storage while a program is running.
  13. RAM
  14. secondary storage
  15. the disk drive
  16. the USB drive - Correct Answer-RAM

A type of memory that can hold data for long periods of time, even when there is no power to the computer, is called


. a. RAM b. main memory c. secondary storage d. CPU storage - Correct Answer-secondary storage devices A component that collects data from people or other devices and sends it to the computer is called.

  1. an output device
  2. an input device
  3. a secondary storage device
  4. main memory - Correct Answer-input device A video display is a(n) ______ device.
  5. output
  6. input
  7. secondary storage
  8. main memory - Correct Answer-ouput A __________ is enough memory to store a letter of the alphabet or a small number. a. byte b. bit c. switch d. transistor - Correct Answer-byte A byte is made up of eight

. a. CPUs b. instructions c. variables d. bits - Correct Answer-bits In a(n) __________ numbering system, all numeric values are written as sequences of 0s and 1s. a. hexadecimal b. binary c. octal d. decimal - Correct Answer-binary A bit that is turned off represents the following value:


b. a stream of binary numbers c. English words d. circuits - Correct Answer-a stream of binary numbers In the __________ part of the fetch-decode-execute cycle, the CPU determines which operation it should perform. a. fetch b. decode c. execute d. immediately after the instruction is executed - Correct Answer-decode Computers can only execute programs that are written in __________. a. Java b. assembly language c. machine language d. Python - Correct Answer-machine language The __________ translates an assembly language program to a machine language program. a. assembler b. compiler c. translator d. interpreter - Correct Answer-assembler The words that make up a high-level programming language are called __________. a. binary instructions b. mnemonics c. commands c. key words - Correct Answer-key words The rules that must be followed when writing a program are called __________. a. syntax b. punctuation c. key words d. operators - Correct Answer-syntax A(n) __________ program translates a high-level language program into a separate machine language program. a. assembler b. compiler c. translator

d. utility - Correct Answer-compiler A ________ error does not prevent the program from running, but causes it to produce incorrect results. a. syntax b. hardware c. logic d. fatal - Correct Answer-logic A(n) ___ is a set of well-defined logical steps that must be taken to perform a task. a. logarithm b. plan of action c. logic schedule d. algorithm - Correct Answer-algorithm An informational language that has no syntax rules and is not meant to be compiled or executed is called _______. a. faux code b. pseudocode c. C# d. a flowchart - Correct Answer-pseudocode A _________ is diagram that graphically depicts the steps that take place in a program. a. flowchart b. step chart c. code graph d. program graph - Correct Answer-flowchart A _____ is a sequence of characters.

  1. char sequence
  2. character collection
  3. string
  4. text block - Correct Answer-string A _____ is a name that references a value in the computer's memory.
  5. variable
  6. register
  7. RAM slot
  8. byte - Correct Answer-variable A _____ is any hypothetical person using a program and providing input for it.
  9. designer
  1. / - Correct Answer-// This is an operator that raises a number to a power.
  2. %
  3. **
  4. / - Correct Answer-** This operator performs division, but instead of returning the quotient it returns the remainder.
  5. %
  6. **
  7. / - Correct Answer-% Suppose the following statement is in a program: price = 99.0. After this statement executes, the price variable will reference a value of which data type?
  8. int
  9. float
  10. currency
  11. str - Correct Answer-float Which built-in function can be used to read input that has been typed on the keyboard?
  12. input()
  13. get_input()
  14. read_input()
  15. keyboard() - Correct Answer-input() Which built-in function can be used to convert an int value to a float?
  16. int_to_float()
  17. float()
  18. convert()
  19. int() - Correct Answer-float() A magic number is.
  20. a number that is mathematically undefined
  21. an unexplained value that appears in a program's code
  22. a number that cannot be divided by 1
  23. a number that causes computers to crash - Correct Answer-a number that is mathematically undefined A ______ is a name that represents a value that does not change during the program's execution.
  1. named literal
  2. named constant
  3. variable signature
  4. key term - Correct Answer-named constant A ________ structure can execute a set of statements only under certain circumstances.
  5. sequence
  6. circumstantial
  7. decision
  8. Boolean - Correct Answer-decision A _______ structure provides one alternative path of execution - Correct Answer-single alternative decision A(n) _______ expression has a value of either True or False.
  9. binary
  10. decision
  11. unconditional
  12. Boolean - Correct Answer-Boolean The symbols >, <, and == are all operators.
  13. relational
  14. logical
  15. conditional
  16. ternary - Correct Answer-logical A(n) _______ structure tests a condition and then takes one path if the condition is true, or another path if the condition is false
  17. if statement
  18. single alternative decision
  19. dual alternative decision
  20. sequence - Correct Answer-dual alternative decision You use a(n) statement to write a single alternative decision structure.
  21. test-jump
  22. if
  23. if-else
  24. if-call - Correct Answer-if You use a(n) _______ statement to write a dual alternative decision structure.
  25. test-jump
  26. if
  27. if-else
  28. if-call - Correct Answer-if-else
  1. decision
  2. count - Correct Answer-count-controlled Each repetition of a loop is known as a(n).
  3. cycle
  4. revolution
  5. orbit
  6. iteration - Correct Answer-iteration The while loop is a _____ type of loop.
  7. pretest
  8. no-test
  9. prequalified
  10. post-iterative - Correct Answer-pretest A(n) ______ loop has no way of ending and repeats until the program is interrupted.
  11. indeterminate
  12. interminable
  13. infinite
  14. timeless - Correct Answer-infinite The -= operator is an example of a(n) ______ operator.
  15. relational
  16. augmented assignment
  17. complex assignment
  18. reverse assignment - Correct Answer-augmented assignment A(n) ________ variable keeps a running total.
  19. sentinel
  20. sum
  21. total
  22. accumulator - Correct Answer-accumulator A(n) _______ is a special value that signals when there are no more items from a list of items to be processed. This value cannot be mistaken as an item from the list.
  23. sentinel
  24. flag
  25. signal
  26. accumulator - Correct Answer-sentinel GIGO stands for ______
  27. great input, great output
  28. garbage in, garbage out
  29. GIGahertz Output
  30. GIGabyte Operation - Correct Answer-garbage in, garbage out

The integrity of a program's output is only as good as the integrity of the program's


  1. compiler
  2. programming language
  3. input
  4. debugger - Correct Answer-input The input operation that appears just before a validation loop is known as the _______.
  5. prevalidation read
  6. primordial read
  7. initialization read
  8. priming read - Correct Answer-priming read Validation loops are also known as ________
  9. error traps
  10. doomsday loops
  11. error avoidance loops
  12. defensive loops - Correct Answer-error traps