/
Programming Concepts and Practices
Save to my account
Sign up
Programming Concepts and Practices
Programming Concepts and Practices
Study
1
Question
What does Moore's Law predict about the size and cost of transistors?
Answer
Moore's Law predicts that the size of transistors halves every two years while the cost also halves every two years.
2
Question
Describe the function of a program.
Answer
The function of a program is how a program behaves during execution, usually described by how the user interacts with it.
3
Question
What is the purpose of a program?
Answer
The purpose of a program is the goal or motivation for writing a program, such as solving problems, pursuing interests through creative expression, or providing entertainment.
4
Question
How does understanding the purpose of a computing innovation benefit developers?
Answer
An understanding of the purpose of a computing innovation provides developers with an improved ability to develop that program or computing innovation.
5
Question
What is a program's specification?
Answer
A program's specification defines the requirements for the program.
6
Question
What do program requirements describe?
Answer
Program requirements describe how a program functions and may include a description of user interactions that a program must provide.
7
Question
What is the role of collaboration in programming?
Answer
Collaboration helps people learn from each other and includes diverse perspectives to avoid bias in the development of computing innovations.
8
Question
Give an example of how bias can occur in game development.
Answer
If females play video games at the same percentage as males, a game company might not avoid bias if it employed males to write the code for the games; bringing in female coders could provide additional perspectives.
9
Question
What interpersonal skills are important for programming companies?
Answer
Programming companies often hire people who have interpersonal skills needed to collaborate effectively.
10
Question
What are some learned skills involved in collaboration?
Answer
Collaboration skills include communication, consensus building, conflict resolution, and negotiation.
11
Question
How can group programming enhance the product?
Answer
Group programming can match up weaknesses with others' strengths, resulting in a better product and insights not obtainable when working alone.
12
Question
What are online collaboration tools mentioned for programmers?
Answer
Online collaboration tools include Google Docs, Zoom, Slack, and Yammer.
13
Question
What is a program?
Answer
A program is a collection of program statements that performs a specific task when run by a computer.
14
Question
What is a code segment?
Answer
A code segment refers to a collection of program statements that are part of a program.
15
Question
What is an incremental development process?
Answer
An incremental development process is one that breaks the problem into smaller pieces and ensures each piece works before adding it to the whole.
16
Question
What is an iterative development process?
Answer
An iterative development process requires refinement and revision based on feedback, testing, or reflection throughout the process.
17
Question
What must the design of a program incorporate?
Answer
The design of a program incorporates investigations to determine its requirements.
18
Question
Why must investigations be conducted in program design?
Answer
Investigations must identify the program constraints and the concerns and interests of people who will use the program.
19
Question
What are some ways to perform investigations in program design?
Answer
Ways to perform investigations include collecting data through surveys, user testing, interviews, and direct observations.
20
Question
List some activities included in the design phase of a program.
Answer
Activities in the design phase of a program may include brainstorming, planning, storyboarding, organizing the program into modules, and developing a testing strategy.
21
Question
What is program documentation?
Answer
Program documentation is a written description of the function of a code segment, event, procedure, or program and how it was developed.
22
Question
Why is documenting a program throughout its development important?
Answer
Documentation helps the programmer remember thoughts and decisions made during programming, as well as assist collaborative partners.
23
Question
What are comments in programming?
Answer
Comments are a form of program documentation written into the program that do not affect how the program runs.
24
Question
What are the three types of program errors?
Answer
The three types of program errors are: 1) Logic Error - a mistake in the algorithm that causes incorrect behavior, 2) Syntax Error - a mistake in the program where the rules are not followed, and 3) Runtime Error - a mistake that occurs during the execution of a program.
25
Question
What is a logic error?
Answer
A logic error is a mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly.
26
Question
What is the purpose of test cases in programming?
Answer
Test cases are effective ways to find and correct errors in a program.
27
Question
What is program input?
Answer
Program input is data sent to a computer for processing by a program and can come in various forms, such as tactile, audio, visual, or text.
28
Question
What is an event in programming?
Answer
An event is the action that supplies input data to a program, such as a keypress, mouse click, or program start.
29
Question
What is program output?
Answer
Program output is any data sent from a program to a device and can also come in various forms, such as tactile, audio, visual, or text.
30
Question
What is the significance of binary in computing?
Answer
Computing devices represent data digitally, and binary sequences (0s and 1s) are the lowest-level components of any digital value.