Log in
Sign up for FREE
arrow_back
Library

AP CSP Creative Development

star
star
star
star
star
Last updated 8 months ago
25 questions
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Question 1
1.

Question 2
2.

Question 3
3.

Question 4
4.

Question 5
5.

Question 6
6.

Question 7
7.

Question 8
8.

Question 9
9.

Question 10
10.

Assume below uses python syntax

num1 = 22;
print(num1 + num2)

the two lines of code will cause a specific kind of error, what is it called?

Question 11
11.

Question 12
12.

Describe the difference between syntax and reference/Name error

Question 13
13.

Question 14
14.

Grammatical error is to ENGLISH LANGUAGE as ________________ is to PROGRAMMING LANGUAGE

Question 15
15.

Question 16
16.

Question 17
17.

Question 18
18.

Question 19
19.

Question 20
20.

Question 21
21.

Question 22
22.

Question 23
23.

Question 24
24.

Question 25
25.

Whats a synonym for the word iterative

Collaboration can provide which of the following?
Several points of failure
Clean data
Duplication of efforts
Better products resulting from different perspectives
What is the benefit of using a software development design process?
By following the process, the code will work the first time
Using the process, the code will be efficient regardless of a programmers experience.
The code will be developed in 50% less time using a development / design process
The process is iterative, resulting in a better program
Which of the following is not a common step in many software development process?
Designing
Investigating
Identifying patterns
Testing
What do using surveys, interviews, and observations identify
Device specification
Program errors
User requirements
Valid program input
Which of the following is an example of event-driven programming?
A) A program that calculates the sum of two numbers when it starts.
B) A weather app displaying the current temperature.
C) A video game character jumping when the player presses a key.
D) A loop that prints numbers from 1 to 100.
Which of the following best explains the role of an event handler in a program?
A) It performs mathematical calculations in the background.
B) It waits for a specific event and executes code when the event occurs.
C) It stores large amounts of data for future use.
D) It ensures the program runs in a specific sequence.
Which scenario best illustrates event-driven programming in a mobile app?
A) A stopwatch app that updates the time every second.
B) An app that changes background color when the user shakes the phone.
C) A calendar app that displays the current date at startup.
D) A text editor that auto-saves a document every minute.
Which of the following scenarios does NOT represent event-driven programming?
A) A webpage updating when a user clicks a button.
B) A music app playing the next song when the current one ends.
C) A program that prints "Hello" as soon as it starts.
D) A fitness tracker alerting the user after 10,000 steps.
A smart home system automatically turns on the lights when it detects motion. What triggers the event in this system?
A) The lights turning on.
B) The user manually switching the lights.
C) The motion sensor detecting movement.
D) The brightness of the lights.
I created a program that calculates the number of leap years between two possible years, the code runs perfectly but I am certain the result is inaccurate. What is this kind of error called?
Runtime error
Logic error
Syntax error
Overflow error
Which method of finding errors is most useful to identify logic error?
Creating new test cases
Running a simulation
Hand tracing
A student writes a program that calculates the average of test scores (no error message), but the output is always incorrect. What is the best way to debug this issue?
A) Add print statements to check the values of variables at different steps.
B) Rewrite the entire program from scratch.
C) Ask a friend to run the program without explaining the issue.
D) Keep running the program until it produces the correct answer.
E) Nothing, just push the code into production codebase
Variable names should have logical meaning that others can easily understand eg firstName instead of fn
True
False
A program accepts an integer between 1 and 100 (inclusive) as input. Which of the following are invalid test cases?
A) 1
B) 100
C) -5
D) 50
"A"
"?"
"@"
"a"
A program accepts an integer between 1 and 100 (inclusive) as input. Which of the following are valid test cases?
A) 1
B) 100
C) -5
D) 50
"A"
"?"
"@"
"a"
A system allows users to set a password between 8 and 16 characters long. Which of the following are boundary test case?
15
17
8
A form field only accepts letters (A-Z, a-z). Which of these is a robust invalid test case? pick 2
A) "Hello"
B) "12345"
C) "OpenAI"
D) "GPT-4"
What is the primary goal of the investigation phase in software development?
A) Writing a rough draft of the code.
B) Identifying project requirements, constraints, and user needs.
C) Designing the final user interface.
D) Deploying the software to real users.
A development team receives user feedback after testing a prototype. What should they do next?
A) Ignore the feedback and release the software as planned.
B) Stop development entirely and restart from scratch.
C) Move directly to deployment without adjustments.
D) Make necessary changes, test again, and refine the design.
Which statement best describes the role of prototyping in the design phase?
A) A prototype is a final version of the software.
B) Prototypes replace the need for actual coding.
C) Prototypes allow testing ideas early and refining designs based on feedback.
D) The first prototype should include all features planned for the final product.
Why is documentation important in your program?
To explain a program's purpose and functionality
To make it easier to understand and modify the code later
To be useful for training people on how to use the program
All of the above