Font size
WorksheetsAP CSP Unit 3
Total questions: 21
Worksheet time: 19mins
Which of the following is a true statement about program documentation?
Program documentation should not be changed after it is first written.
Program documentation is only needed for programs in development; it is not needed after a program is completed.
Program documentation is useful when programmers collaborate but not when a programmer works individually on a project.
Program documentation is useful during initial program development and also when modifications are made to existing programs.
Which of the following actions are generally helpful in program development?
I - Consulting potential users of the program to identify their concerns
II- Writing and testing small code segments before adding them to the program
III - Collaborating with other individuals when developing a large program
I and II
I and III
II and III
I, II and III
A mobile game tracks players’ locations using GPS. The game offers special in-game items to players when they visit real-world points of interest. Which of the following best explains how bias could occur in the game?
Points of interest may be more densely located in cities, favoring players in urban areas over players in rural areas.
Some players may engage in trespassing, favoring players in urban areas over players in rural areas.
Special items may not be useful to all players, favoring players in urban areas over players in rural areas.
Weather conditions may be unpredictable, favoring players in urban areas over players in rural areas.
The inputs and outputs that allow a user to interact with a piece of software which can include a variety of forms such as buttons, menus, images, text, and graphics.
User Experience
User Interface
App Documentation
App Design
What are the benefits of collaborating with your peers?
Effective communication suppresses consensus building, conflict resolution and negotiation skills.
Effective communication produces a computing innovation that reflects the diversity of talents and perspectives of those who designed it.
Collaboration gives an individual the chance to be the alpha and lets your classmates marvel at your skills.
Collaboration that includes diverse perspectives promotes bias in the development of computing innovations.
These types of program segments Programs run differently each time depending on user interactions.
Sequential Programming
Event-Driven Programming
Input-Driven Programming
User-Driven Programming
This type error will occur when you use a multiplication symbol instead of an addition symbol.
Syntax
Logic
Run-Time
Console
What is wrong with this segment of code and what type of error will it produce?
This type of error will likely occur when you divide by 0.
Syntax
Logic
Run-Time
Event-Driven
A written description of how a command or piece of code works or was developed.
Documentation
Comment
Project Guide
Wireframes
What are the four things common to all computers?
Any data that are sent from a program to a device. Can come in a variety of forms, such as tactile interaction, audio, visuals, or text.
Input
Output
Console
Display
Which of the following is NOT a reason to include comments in programs?
Comments help the computer decide whether certain components of a program are important.
Comments help programmers debug issues in their own code
Comments help document how code was written for other programmers to use
Comments enable programmers to track their work throughout the development process
This type of program runs differently based the targeted user selecting an option.
Sequential Programming
Event-Driven Programming
Run-Time Error Programming
Program-Inclusive Programming
The inputs and outputs that allow someone to interact with a piece of software.
A Program
A Program Statement
User Interface
User Experience
What type of error would a missing parenthesis cause?
Run-Time
Logic
Syntax
Overflow
A written description of how a command or piece of code works or was developed.
Documentation
Comment
Program
Program Statement
A program that is written for a digital assistant (like Alexa) that lacks accuracy due to the users accent creates what type of issue?
Computer Bias
Logic Error
Run-Time Error
Syntax Error
A company that develops mobile applications wants to involve users in the software development process. Which of the following best explains the benefit in having users participate?
Users can identify and correct errors they encounter when using released versions of the software.
Users can review the algorithms used in the software to help improve their efficiency.
Users can provide documentation for program code at the end of the software development process.
Users can provide feedback that can be used to incorporate a variety of perspectives into the software.
Which of the following BEST describes the differences between sequential and event-driven programming?
In sequential programming commands run one at a time. In event-driven programming all commands run at the same time.
In sequential programming commands run faster than in event-driven programming.
In sequential programming each command is run many times in sequence. In event-driven programming all commands are run a single time as an event.
In sequential programming commands run in the order they are written. In event-driven programming some commands run in response to user interactions or other events.
Debug the Code
