Unit 3 Computer Programming Study Guide

REFER TO CODE.ORG FOR PUZZLES
REFER TO BRAINPOP; UNDER FUNCTIONS, COMPUTER PROGRAMMING,
VARIABLES

PART ONE: DEFINE.

ALGORITHM- A list of steps to finish a task
BINARY- A way to represent information using 1 and 0
BUG- Part of a program that does not work correctly
CODE- 1 or more commands to be carried out by a computer
FUNCTION
DEBUG
SEQUENCING
LOOP
REPEAT
CONDITIONALS
VARIABLE

PART TWO: ANSWER ACCORDINGLY.

A PROGRAMMER IS TO A COMPUTER AS A TEACHER IS TO:
A GOOD ALGORITHM MUST BE:
IMAGINE WRITING A PROGRAM THAT INSTRUCTS A BIRD HOW TO TAKE OFF, FLY AND LAND. WHAT FUNCTION IS LIKELY TO BE LOOPED?

WHICH OF THE FOLLOWING IS MOST SIMILAR TO A FUNCTION?

WHAT DO VARIABLES AND FUNCTIONS HAVE IN COMMON?


8. THE MAIN CAUSE OF BUGS IN CODING IS:
9. LIST THE FOLLOWING IN ORDER FROM THE SIMPLEST TO MOST COMPLEX:
FUNCTION
PROGRAM
STEP

10. IF A PROGRAM HAS GONE THROUGH MANY ITERATIONS, WHAT MUST BE TRUE?




11. What is a benefit of DRYing up code?
a. It makes it less likely to break
b. It makes the code compatible with different software
c. It saves programmers time
d. It makes it less vulnerable to hackers

12. A statement in a function can be most closely compared to:
a. A step in a recipe
b. A line of a poem
c. A brushstroke in a painting
d. A piece of assembled furniture

T/F: ARE THE SOLUTIONS PROVIDED TRUE?

T/F:



T/F:





T/F:


Respuesta :

FUNCTION- a group of instructions that is often repeated

DEBUG- to analyse a piece of code and ensure there is no errors

SEQUENCING- placing code in a specific order(/sequence)

LOOP- doing something over and over again until a requirement is met

REPEAT- performing the same tasks again and again

CONDITIONALS- certain requirements

VARIABLE- something that is defined in a piece of code


A PROGRAMMER IS TO A COMPUTER AS A TEACHER IS TO: A student

A GOOD ALGORITHM MUST BE: Efficient and easy to understand

IMAGINE WRITING A PROGRAM THAT INSTRUCTS A BIRD HOW TO TAKE OFF, FLY AND LAND. WHAT FUNCTION IS LIKELY TO BE LOOPED? The fly function as a bird flies a longer period of time

WHICH OF THE FOLLOWING IS MOST SIMILAR TO A FUNCTION? *no choices so unable to answer*

WHAT DO VARIABLES AND FUNCTIONS HAVE IN COMMON? They both have to be defined


8. THE MAIN CAUSE OF BUGS IN CODING IS: Human error

9. LIST THE FOLLOWING IN ORDER FROM THE SIMPLEST TO MOST COMPLEX:

  1. PROGRAM
  2. FUNCTION
  3. STEP

10. IF A PROGRAM HAS GONE THROUGH MANY ITERATIONS, WHAT MUST BE TRUE? A condition(?)

11. What is a benefit of DRYing up code? c. It saves programmers time

12. A statement in a function can be most closely compared to: a. A step in a recipe

T/F: ARE THE SOLUTIONS PROVIDED TRUE? *no choices so unable to answer*


Hopefully this helped and I'm sorry I was unable to answer some questions :)