Logo/

Programming Concepts and Practices

Log in

Made with ScholarlyMake flashcards like these from your own notes

Programming Concepts and Practices

Questions and answers

42 cards
  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.

  31. Question:Define Data Abstraction.

    Answer:Data Abstraction is the process of reducing complexity by focusing on the main idea while hiding irrelevant details.

  32. Question:What is the difference between digital and analog signals?

    Answer:Digital signals are discrete and finite (0s and 1s), while analog signals are continuous and can take on an infinite number of values.

  33. Question:What is a roundoff error?

    Answer:A roundoff error occurs when decimals or real numbers are rounded, causing discrepancies in value between computations.

  34. Question:What are the limits of integer representation in programming languages?

    Answer:In many programming languages, integers are represented by a fixed number of bits, limiting the range of integer values and mathematical operations.

  35. Question:What could happen if a number exceeds the integer limit in Java?

    Answer:Trying to store a number bigger than the integer limits in Java results in an overflow error.

  36. Question:What does the process of cleaning data entail?

    Answer:Cleaning data makes the data uniform without changing their meaning, such as replacing equivalent abbreviations or standardizing spellings.

  37. Question:What influences trends in investment decisions?

    Answer:Investors review trends in past pricing to influence their future investment decisions.

  38. Question:What does correlation in data imply?

    Answer:A correlation found in data does not necessarily indicate a causal relationship; additional research is needed to understand the nature of the relationship.

  39. Question:What are some challenges associated with data sets?

    Answer:Challenges include the need to clean data, incomplete data, invalid data, and the need to combine data sources.

  40. Question:What is the significance of big data?

    Answer:Big data allows for analyzing large data sets computationally to reveal patterns, trends, and associations that can influence decisions and behaviors.

  41. Question:How do visualization tools aid in data analysis?

    Answer:Visualization tools communicate information about data, helping to gain insights and making complex data easier to interpret.

  42. Question:What programming library is recommended for data processing and visualization?

    Answer:Python's pandas library is recommended for exploring, processing, and visualizing data.