with Questions and correct/verified
Answers
Computer Program - ANSWER-consists of instructions executing one at a time
Input - ANSWER-A program gets data, perhaps from a file, keyboard, touchscreen, or network, etc.
Process - ANSWER-A program performs computations on that data, such as adding two values like x + y
Output - ANSWER-A program puts that data somewhere, such as to a file, screen, or networkq
Varaibles - ANSWER-programs use variables to refer to data....the name is due to a variable's value
"varying" as a program assigns a variable...with new values
Computational Thinking - ANSWER-creating a sequence of instructions to solve a problem = creating an
algorithm
Algorithm - ANSWER-a step-by-step procedure for solving a problem or accomplishing some end
especially by a computer
Computational Thinking Process - ANSWER-- understand the problem
- develop a strategy
- design required algorithms
- document the solution
- write the code
Pseudocode - ANSWER-a kind of structured English for describing algorithms. It allows the designer to
focus on the logic of the algorithm without being distracted by details of language syntax
The Four Pillars of Programming - ANSWER-1. Assignment
set variable to value
2. Sequence
one task performed in sequence after another
3. Selection
make a choice between two alternative courses (IF)
4. Repetition
things like (WHILE & FOR) loops
String Literal - ANSWER-Text enclosed in quotes
Interactive vs. Script - ANSWER-run code individually vs. running in batches
Expressions - ANSWER-code that return a value when evaluated
ex: "hello word.", miles * 5280
Statement - ANSWER-program instruction, contains expressions
ex: print("hello world")
Programs - ANSWER-mostly consist of a series of statements
Whitespace characters - ANSWER-space (' ') and newline ('\n')