C173: Questions With Factual Solutions
What are three parts to a computer program? Correct Answer -
- Input: A program gets data, perhaps from a file, keyboard,
touchscreen, network, etc.
- Process: A program performs computations on that data, such as
adding two values like x + y.
- Output: A program puts that data somewhere, such as to a file,
screen, network, etc.
A sequence of instructions that solves a problem Correct Answer -
Algorithm
A graphical language for creating computer programs Correct
Answer - Flowchart
A sequence of statements Correct Answer - Program
A tool that runs a program's statements Correct Answer -
Interpreter
The act of carrying out each statement's action Correct Answer -
Run
A name that can hold a value Correct Answer - Variable
A specific action in a program Correct Answer - Statement
This consists of text characters within double quotes, such as
"Go#57!" Correct Answer - String Literal
, This indicates where the next output item will be placed in the
output Correct Answer - Cursor
How do you write a Newline? That is a special two-character
sequence whose appearance in an output string literal and causes
the cursor to move to the next output line. It exists invisibly in the
output; basically like hitting the "return" key while typing Correct
Answer - \n
This is text a programmer adds to a program, to be read by humans
to better understand the code, but ignored by the program when
executing. It starts with // and includes all text on the line Correct
Answer - Comment
This refers to blank spaces (space and tab characters) between
items within a statement, and to newlines. Is mostly ignored during
execution Correct Answer - Whitespace
This is a computer which resides in another device such as a TV
Correct Answer - Embedded Computer
What is text that resembles a program in a real programming
language but is simplified to aid human understanding? Correct
Answer - Pseudocode
A named item, such as x or numPeople, used to hold a value
Correct Answer - Variable
This assigns a variable with a value, such as x = 5, until x is assigned
again. Correct Answer - Assignment Statement; the left side
must be a variable and the right side an expression
What type of values can the Integer type of Variable hold? Correct
Answer - Whole numbers like 1, 0, or -25, but not 3.5 or .001