APCSP Creating Computational Artifacts 1 — Questions and Answers
Question 1: Which of the following is the primary purpose of creating a computational artifact in computer science?
- To organize and store data
- To share and communicate information effectively (Correct answer)
- To test the functionality of code
- To hide the complexity of a system
Correct answer: To share and communicate information effectively
A computational artifact is anything created using a computational process, such as a program, app, visualization, or simulation. Its primary purpose is to communicate an idea, solve a problem, or express creativity in a way that can be shared and understood by others. This allows for the effective dissemination of information, solutions, or artistic expressions derived from computational thinking.
Question 2: When developing a website, which of the following programming languages is primarily used to design the structure of the page?
- Java
- HTML (Correct answer)
- Python
- JavaScript
Correct answer: HTML
HTML (HyperText Markup Language) is the fundamental language used to create the structure and content of web pages. It defines elements like headings, paragraphs, images, and links, organizing them into a coherent layout. While CSS handles styling and JavaScript adds interactivity, HTML provides the essential framework upon which a website is built.
Question 3: Which of the following is the best description of a “user interface” (UI)?
- A part of the code that controls database access
- The layout and design elements that allow users to interact with a software program (Correct answer)
- The server that hosts a web application
- The backend logic that processes data
Correct answer: The layout and design elements that allow users to interact with a software program
A user interface (UI) refers to the visual and interactive components of a software program or website that allow users to interact with it. This includes all the design elements like buttons, menus, text fields, and the overall layout. The UI's design is critical for ensuring a positive user experience and enabling intuitive interaction with the software.
Question 4: Which of the following is an example of creating a computational artifact in the context of mobile app development?
- Writing an algorithm to solve a problem
- Creating a wireframe to design the user interface (Correct answer)
- Testing the app on different devices
- Debugging the app to find and fix errors
Correct answer: Creating a wireframe to design the user interface
A computational artifact is a digital creation resulting from a computational process, intended to communicate an idea or solve a problem. In mobile app development, a wireframe is a visual guide representing the skeletal framework of the app's user interface, outlining its structure and layout. It serves as a tangible output of the design phase, communicating the app's intended functionality and user experience to stakeholders.
Question 5: What is the primary role of version control systems like Git when creating a computational artifact?
- To test the app’s performance
- To track changes in the code and collaborate with other developers (Correct answer)
- To create a user-friendly interface
- To optimize the app’s algorithm for faster execution
Correct answer: To track changes in the code and collaborate with other developers
Version control systems like Git are essential tools for managing changes to source code and other project files over time. They allow multiple developers to collaborate on a project simultaneously by tracking every modification, who made it, and when. This prevents conflicts, enables easy rollback to previous versions, and ensures seamless teamwork.
Which of the following is the primary purpose of creating a computational artifact in computer science?