Exam 288 Questions with Verified Answers
Three basic instruction types - CORRECT ANSWER Input, process, output
Computational thinking - CORRECT ANSWER Creating a sequence of instructions
to solve a problem (aka algorithm)
Algorithm - CORRECT ANSWER A sequence of instructions that solves a problem
Flowchart - CORRECT ANSWER A graphical language for creating or viewing
computer programs
Coral Code Language - CORRECT ANSWER A language intended for learning to
program
Two versions: flowchart and code
Looks like pseudocode, but follows rules that allow execution
Program - CORRECT ANSWER A list of statements
Each statement is carrying out some action and executing one at a time
String literal - CORRECT ANSWER consists of text (characters) within double
quotes
,Ex: "Go #57!".
Cursor - CORRECT ANSWER Indicates where the next output item will be placed in
the next output
The system automatically moves the cursor after the previous output item
Newline - CORRECT ANSWER \n
Special sequence who appearance in an output string literal causes the cursor to
move to the next output line
Exists visibly in the output
Comment - CORRECT ANSWER // this is an example of a comment
Text a programmer adds to a program to be read by humans but ignored by a
program when executing
Use // before the comment
Includes the entire line of text.
White space - CORRECT ANSWER Refers to blank spaces between items within a
statement and to newlines
Improves readability
Ignored in execution
,Moore's Law - CORRECT ANSWER Observation that switch sizes reduce by half
every two years
Bit - CORRECT ANSWER A single unit of binary consisting of only one place whose
value can be 0 or 1.
Byte - CORRECT ANSWER 8 bits
ASCII - CORRECT ANSWER A popular code for characters
Pseudocode - CORRECT ANSWER Text that resembles a program in a real
programming language but is simplified to aid human understanding.
Variable - CORRECT ANSWER A named item used to hold a value
Assignment statement - CORRECT ANSWER Assigns a variable with a value; and
keeps that value during subsequent statement until X is assigned again.
Assignment's left side must be a variable (ex. x=5)
Variable declaration - CORRECT ANSWER Declares a new variable, specifying the
variables name and type
Integer variable type - CORRECT ANSWER Can hold whole number values
, Expression - CORRECT ANSWER A combination of items like variables, literals,
operators, and parentheses that evaluate to a value
Ex.) y=2*(x+1)
Identifier - CORRECT ANSWER A name created by a programmer for an item like a
variable or function
Must be a sequence of letters, underscores, and digits
Must start with a letter
Case sensitive
Reserve word - CORRECT ANSWER A word that is part of the language like: Integer,
Get, or Put
Cannot use as an identifier
Naming conventions - CORRECT ANSWER A set of style guidelines defined by a
company, team, teacher, etc. for naming variables
What are two common conventions for distinguishing words? - CORRECT ANSWER
Camel case (dogNumber)
Underscore (dog_number)