AP CSP CH 7 Big Idea: Creative Development

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

1. Collaboration can provide which of the following?

a. Several points of failure
b. Clean data
c. Duplication of effort
d. Better products resulting from different backgrounds and perspectives

D. Collaboration can provide the possibility of insights we may never get otherwise by having team members with different backgrounds and perspective create, design, and evaluate data, documents, products, and so on

2
New cards

What is a benefit of using a software development design process?

a. By following the process, the code will work the first time
b. Using the process, the code will be efficient regardless of a programmer's experience
c. the code will be developed in 50% less time using a development/design process
d. The process is iterative, resulting in a better program

D. The steps in the software development design process are iterative, causing the developer to re-evaluate after testing to fix and improve the program. No process can ensure the code will be correct the first time, nor be efficient, nor decrease the development time by 50%

3
New cards

Which of the following is not a common step in many software development processes?

a. Designing
b. Investigating
c. Identifying patterns
d. Testing

C. Finding patterns in not a common step in software development processes. The other options are key steps in developing a well-designed and working program

4
New cards

What do using surveys, interviews, and observations identify?

a. Device specifications
b. Program errors
c. User requirements
d. Valid program input

C. These are investigative tools used to determine user requirements for the application

5
New cards

Why is documentation important?

a. To explain a program's purpose and functionality
b. To make it easier to understand and modify the code later
c. To be useful for training people on how to use the program
d. All of the above

D. Documentation is important to:
-explain a program's purpose and functionality
-Make it easier to understand and modify the code later
-Train people on how to use the program

6
New cards

Why should boundary values be tested?

a. Testing the boundary values is not necessary
b. To ensure they are identified as errors
c. To ensure warning messages are sent about the boundaries
d. To ensure the program does not include too few or too many elements

D. Boundary values should be tested to ensure the program does not include too few or too many elements. These are common errors in programs

7
New cards

What is a crucial step in an iterative development process?

a. Feedback
b. Preparing prototypes
c. Meeting deadlines
d. Meeting budget constraints

A. Feedback from users on the proposed design and programs a key aspect of an iterative development process

8
New cards

What is a benefit of understanding a problem before coding?

a. A better designed program is created to handle all the needed functionality
b. Less testing is required
c. Little of no documentation is then needed
d. User will not need training to use the program

A. One benefit of understanding a problem before coding is creating a better designed program to handle all the needed functionality

9
New cards

Which phase in the development process determines how to meet application requirements?

a. Analysis
b. Design
c. Programming
d. Testing

B. The design phase determines how the application requirements will be achieved

10
New cards

How do event-driven programs progress?

a. They run in a linear fashion from start to end
b. The code executes sequentially
c. The code executes when an action occurs that it is a programmed to recognize
d. The code runs iteratively

C. An event-driven program is one that waits for an event, such as a swipe or mouse click, to trigger the code to run

11
New cards

What is one way to debug a program?

a) Add temporary print messages to determine program values
b) Test with different data values each time
c) Document the error in the user guide and online help text
d) Override the error with correct value

A - One way to debug a program is to add temporary print messages to determine the program values

12
New cards

Which development process breaks the requirements down into small modules and adds the code, one working, to the project as a whole?

A) Additive
B) Incremental
C) Iterative
D) Spiral

B - The incremental development process breaks the requirements down into small modules. Once coded and tested, the module is added to the overall application

13
New cards

What is one way to ensure testing is thorough?

A) Create expected results prior to testing
B) Create a diagram of the program's processing
C) Execute the code to ensure it runs
D) Add temporary DISPLAY statements to see intermediate results in the program

A - Creating expected results for the data you are testing prior to testing allows you to compare the actual results to the expected ones to ensure the program is functioning correctly

14
New cards

What type of error breaks the rules of the programming language, like a grammatical error?

A) Logic error
B) Overflow error
C) Runtime error
D) Syntax error

D - A syntax error keeps the code from executing until it is corrected. These errors include things like missing punctuation, unmatched parenthesis, and typos.

15
New cards

If your program executes without errors, but the results are incorrect, what type of error do you likely have?

A) Logic error
B) Overflow error
C) Runtime error
D) Syntax error

A - A logic error is likely the culprit. These can occur if you use the wrong variable name for a calculation or use the wrong operation, such as subtraction rather than addition.

16
New cards

Which method of finding errors is most useful to identify logic errors?

A) Creating new test cases
B) Handtracing
C) Rerunning the program with different inputs to see the impact on outputs
D) Running a simulation

B - Handtracing the code can help identify where a logic error occurs (There are other debugging tools that are also useful for finding logic errors)

17
New cards

Attempting to access an invalid index in a list results in what type of error?

A) Logic error
B) Overflow error
C) Runtime error
D) Syntax error

C - This will result in a runtime error. The program may run accurately many times or through most of the program until the index position becomes too large or too small for the list you are using. The program will end with an error

18
New cards

What is an example of event-driven programming?

A) Prompting a user to type in a response
B) Using constants for data values in place of variables
C) A mobile device that orients to a new position
D) A microphone transmitting audio data to a program

C - A mobile device that orients a new position is an event that a gyroscope in the device will recognize. The gyroscope recognizes orientation so code will be initialized to redisplay the information on your screen with the new orientation.