加载中...
加载中...
Assessment for Unit 1: Big Idea 1: Creative Development
Select the one best answer for each question.
1. A development team is working on a new mobile application. Which of the following best describes a benefit of using a collaborative process during the development phase?
2. A list named 'fruitList' is initialized as follows: ['apple', 'banana', 'cherry']. A programmer then executes the following commands (assuming 1-based indexing): INSERT(fruitList, 2, 'orange') REMOVE(fruitList, 4) APPEND(fruitList, 'grape') What are the contents of 'fruitList' after these operations?
3. Which of the following Boolean expressions is equivalent to the expression: NOT (A OR B)?
4. A city uses a crowdsourcing application to allow residents to report potholes and damaged street signs. Which of the following is most likely a significant advantage of using crowdsourcing for this purpose?
5. A group of students develops a mobile application that allows users to track their daily water intake and receive reminders to stay hydrated. Which of the following best describes the purpose of this computing innovation?
6. Consider the following code segment found in a larger program: `temp <- x` `x <- y` `y <- temp` What is the purpose of this specific component of the program?
7. Which of the following is an example of a computing innovation designed primarily for creative expression?
8. An engineer is reviewing a block of code within a traffic light control system. The code checks if a pedestrian has pressed a crosswalk button and, if so, triggers a sequence to change the light to red for vehicles. Which of the following statements best describes how understanding the purpose of this code helps the engineer?
9. A programmer is writing a program to calculate the average grade of a class. They include a section of code that adds all individual scores together into a variable called 'total'. What is the purpose of this specific 'total' component within the context of the program's overall goal?
10. A software development team is using an iterative and incremental development process to create a new mobile application. Which of the following is a primary advantage of this approach compared to a traditional waterfall approach?
11. A programmer is writing a procedure to calculate the average of a list of positive integers. The programmer mistakenly initializes the 'sum' variable to 1 instead of 0 before adding the numbers from the list. What type of error does this represent?
12. A sorted list of 1,000 unique song titles is stored in a database. If a binary search algorithm is used to find a specific song title, what is the maximum number of comparisons the algorithm will need to perform?
13. Which of the following statements best describes the trade-off when using lossy compression instead of lossless compression for digital images?
14. [Skill: 1.B | Topic: 1.3] A software developer is creating a fitness tracking application. During the development process, the developer first surveys potential users to identify necessary features. After creating an initial prototype, the developer conducts user testing and uses the feedback to modify the application's interface. This cycle of testing and modification is repeated several times until the application meets the users' needs. Which of the following best characterizes this development process?
15. [Skill: 1.C | Topic: 1.1] A team of software developers is designing a new health and wellness application. The team consists of individuals with various backgrounds, including nutritionists, software engineers, and elderly care specialists. During the development process, the team holds weekly meetings to discuss user feedback and the application's functionality. Which of the following best describes a primary benefit of including such a diverse group of people in the development of this computing innovation?
Questions 1 and 2 refer to the following scenario.
16. Which of the following best explains the primary benefit of including a botanist on the development team?
17. The company's decision to release a beta version to gardening club members is an example of which collaborative practice?
18. A team of software developers is working on a large-scale e-commerce website. The team is geographically distributed, with members in different cities. Which of the following is most essential for the team's success?
19. A team is creating a new educational video game. Early prototypes of the game are found to be too difficult for the target audience of young children. By incorporating feedback from child development experts and testing the game with children, the team is able to adjust the difficulty. This scenario best illustrates how collaboration...
20. A student creates a program that allows a user to input the name of a city and then displays the current time in that city. Which of the following is the most likely purpose of this computing innovation?
Questions 6 and 7 refer to the following code segment, which is intended to calculate and display the total cost of an item including sales tax.
21. Which of the following best describes the function of this code segment?
22. If the procedure calculateTotalCost is called with the values price = 100 and taxRate = 0.08, what is the output?
23. A user is interacting with a music streaming application. When the user clicks a button labeled "Next Song," the application stops the current song and begins playing the next one in the playlist. The user's click is an example of...
24. A programmer is creating a complex video game. They first develop a functional character that can walk around an empty environment. Next, they add the ability for the character to jump. After testing that jumping works correctly, they add interactive objects to the environment. This approach is best described as...
25. A team develops a simple, working version of a new mobile app and gives it to a group of users. Based on the users' feedback, the team revises the app's features and user interface. They repeat this cycle of releasing a version, gathering feedback, and revising the app multiple times. This is an example of...
26. Consider the following line of code from a program written in a language that uses // to denote comments. ``` // This procedure calculates the user's age based on their birth year. ``` What is the purpose of this line of code?
27. Before writing any code for a new program, a developer creates a detailed document that describes the program's target audience, required features, and how the user interface should look and behave. This document is known as the program's...
28. A program is designed to calculate the average of three numbers. The programmer mistakenly writes the code to add the three numbers but then divides by 2 instead of 3. The program runs without crashing but produces the wrong answer. This is an example of a...
29. A programmer is writing code and forgets to put a closing parenthesis ) in a mathematical expression. When they try to run the program, the compiler or interpreter immediately stops and displays a message indicating an error in the code's structure. This is an example of a...
30. A program attempts to open a file that does not exist on the computer's hard drive. The program stops executing and displays an error message like "File Not Found." This type of error, which occurs while the program is executing, is best described as a...
31. A program is intended to accept an integer score from 0 to 100 and output "Pass" if the score is 60 or greater and "Fail" otherwise. Which set of test cases would be most effective for verifying the correctness of this program?
Questions 17 and 18 refer to the following procedure, which is intended to determine if a number x is positive.
32. A developer wants to test the isPositive procedure. Which of the following pairs of input values would be best to test the different outcomes of the algorithm?
33. The developer modifies the procedure to determine if a number is a positive even number. ``` 01: PROCEDURE isPositiveEven(x) 02: { 03: isEven <- (x MOD 2 = 0) 04: isPositive <- (x > 0) 05: IF (isEven) 06: { 07: RETURN "Positive and Even" 08: } 09: ELSE 10: { 11: RETURN "Not Positive and Even" 12: } 13: } ``` The developer tests the procedure with an input of -4. The procedure incorrectly returns "Positive and Even". What type of error does this reveal?
34. A student is writing a program for a class project. They find a useful code segment online that was written by another programmer and incorporate it into their own program. Which of the following is the most appropriate way for the student to proceed?
35. The behavior of a program is defined by how it functions during execution, which is often described by how a user interacts with it. A program that works correctly must...