CS: Hwk 1
This symbol marks the beginning of a comment in Python.
#
divides one number by another and gives the remainder
%
performs multiplication
*
raises a number to a power (exponent)
**
performs addition
+
performs subtraction
-
performs division
/
performs integer division.
//
A video display is a(n) device.
Output
A(n) is a set of instructions that a computer follows to perform a task.
Programming Language
If you were to look at a machine language program, you would see .
a stream of binary numbers
A(n) is a set of well-defined logical steps that must be taken to perform a task.
algorithm
A byte is made up of eight .
bits
Short notes placed in different parts of a program explaining how those parts of the program work are called .
comments
A(n) program translates a high-level language program into a separate machine language program.
compiler
A string literal in Python must be enclosed in
either single quotes or double quotes
A is a diagram that graphically depicts the steps that take place in a program.
flowchart
A error does not prevent the program from running, but causes it to produce incorrect results.
logic
An informal language that has no syntax rules and is not meant to be compiled or executed is called .
pseudocode
The rules that must be followed when writing a program are called .
syntax