2
Scripting and Programming Foundations - || || || || ||
D278 exam with correct 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
|| || || || || || || || || || || ||
, 2
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. || || || || ||
, 2
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) || || || || || || || ||
Scripting and Programming Foundations - || || || || ||
D278 exam with correct 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
|| || || || || || || || || || || ||
, 2
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. || || || || ||
, 2
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) || || || || || || || ||