Programming - Final Exam Questions
and Actual Answers.
The \t escape character causes the output to skip over to the next horizontal tab. - Answer
True
Since a named constant is just a variable, it can change any time during a program's execution. -
Answer False
A software developer is the person with the training to design, create, and test computer
programs. - Answer True
A computer is a single device that performs different types of tasks for its users. - Answer False
All programs are normally stored in ROM and are loaded into RAM as needed for processing. -
Answer False
The instruction set for a microprocessor is unique and is typically understood only by the
microprocessors of the same brand. - Answer True
The CPU understands instructions written in a binary machine language. - Answer True
A bit that is turned off is represented by the value -1. - Answer False
The main reason to use secondary storage is to hold data for long periods of time, even when
the power supply to the computer is turned off. - Answer True
RAM is a volatile memory used for temporary storage while a program is running. - Answer
True
The Python language uses a compiler which is a program that both translates and executes the
instructions in a high-level language. - Answer False
,The __________ coding scheme contains a set of 128 numeric codes that are used to represent
characters in the computer's memory. - Answer ASCII
Which of the following is considered to be the world's first programmable electronic computer?
- Answer ENIAC
Where does a computer store a program and the data that the program is working with while
the program is running? - Answer in main memory
What type of volatile memory is usually used only for temporary storage while running a
program? - Answer RAM
The encoding technique used to store negative numbers in the computer's memory is called -
Answer two's complement
Which computer language uses short words known as mnemonics for writing programs? -
Answer Assembly
The process known as the __________ cycle is used by the CPU to execute instructions in a
program. - Answer fetch-decode-execute
What is the largest value that can be stored in one byte? - Answer 255
Which type of error prevents the program from running? - Answer syntax
What is the decimal value of the following binary number?
10011101 - Answer 157
A(n) _____ is a set of instructions that a computer follows to perform a task. - Answer
program
The term _______ refers to all the physical devices that make up a computer. - Answer
hardware
, A disk drive stores data by_____ encoding it onto a circular disk. - Answer magnetically
____are small central processing unit chips. - Answer microprocessors
_____is a type of memory that can hold data for long periods of time, even when there is no
power to the computer. - Answer secondary storage
Main memory is commonly known as____ - Answer RAM
USB drives store data using____ memory. - Answer Flash
The Python___ is a program that can read Python programming statements and execute them. -
Answer interpreter
an_____mode the interpreter reads the contents of a file that contains Python statements and
executes each statement. - Answer script
Comments in Python begin with the # character. - Answer True
When using the camelCase naming convention, the first word of the variable name is written in
lowercase and the first characters of all subsequent words are written in uppercase. - Answer
True
According to the behavior of integer division, when an integer is divided by an integer, the result
will be a float. - Answer False
Python allows programmers to break a statement into multiple lines. - Answer True
Python formats all floating-point numbers to two decimal places when outputting with the print
statement. - Answer False
In Python, math expressions are always evaluated from left to right, no matter what the
operators are. - Answer False