This is a written description of how a code segment is intended to function, often used to help maintain a program.
what is documentation
What are instructions that a computer follows to perform a specific task?
What is a program
What is the most common form of program documentation?
commenting
What is debugging
removing errors found in your code
What color is sophia the first's signature dress?
purple
What is collaboration?
Includes communication and deliberation
Describe Program Inputs and Outputs
Inputs: Data that is sent to a computer to be processed in a program.
Program Outputs: Data sent from a program to another device.
True or False - a developer must understand constraints and determine the requirements of the program when investigating a problem
True
Name and describe the 4 types of errors (Naming = 100 points, Describing = 100 points)
1) Syntax: violate rules of the programming language 2) Logic: produces incorrect results but runs without crashing 3) Runtime: causes the program to crash/behave unexpectedly 4) overflow error: computer attempts to handle a number outside of its defined range
How long is the average bluey episode
7 minutes
Name 2 benefits of collaboration
Provides many diverse perspectives, help eliminate bias, and helps with debugging and correcting errors
What is the purpose of a program that is a child-level math game?
Engaging kids in math in such a way that it both sparks a love of math in the user as well as sharpening their skills and abilities.
Name 3 out of the 4 strategies for the investigation of a problem
Surveys, user testing, interviews, direct observations
Name 3 debugging strategies
Analyzing error messages, inserting print statements to narrow down where the error is, have someone else review your code
the flintstones
Name a scenario in which collaboration would be useful. Include why collaboration should be used in this scenario.
Multiple coders from different educational backgrounds, races, cultures, genders, and geographic locations working together to create a new app or program. This eliminates bias.
Identify the inputs and outputs in this code segment
celsius = float(input("Enter temperature in Celsius: "))
fahrenheit = (celsius * 9/5) + 32
print("Temperature in Fahrenheit:", fahrenheit)
Input: temperature in Celsius
Output: temperature in Fahrenheit
What is one benefit of using an iterative and incremental process of program development?
It helps programmers identify errors as components are added to a working program.
What lines should be switched to fix the error in this code?
def is_even(number):
if number % 2 == 0:
return "Odd"
else:
return "Even"
switch the lines return "Odd" and return "Even"
George Pig
Name a development platform that allows multiple programmers to contribute to the same project.
GitHub Gist
Identify the input and output in this code segment
width = float(input("Enter the width of the rectangle: "))
height = float(input("Enter the height of the rectangle: "))
area = width * height
print("The area of the rectangle is:", area)
Input: rectangle width and height
Output: rectangle area
Name a form of documentation and give an example of it and how it can be useful
Commenting - used by the creator and collaborators to better understand the function of a code
When running this code, a syntax error is produced - where is the error?
if a > 0
return a + b
else:
return a - b
the line if a > 0 is missing a :
if a > 0:
return a + b
Name 3 paw patrol dogs
ryder, rocky, everst, chase, sky, zuma, rubble