100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Ap computer science Exam review all questions from unit 1-3 with correct answers $11.99   Add to cart

Exam (elaborations)

Ap computer science Exam review all questions from unit 1-3 with correct answers

 7 views  0 purchase
  • Course
  • AP Computer Science
  • Institution
  • AP Computer Science

Ap computer science Exam review all questions from unit 1-3

Preview 2 out of 9  pages

  • July 30, 2024
  • 9
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
  • AP Computer Science
  • AP Computer Science
avatar-seller
millyphilip
Ap computer science Exam review all questions from unit 1-3
Which of the following is an important step to take before beginning to write the code for
a program? - Answer -Plan the logic and anticipated input/output of the code
Which of the following could be considered part of the beginning "state" of a Scratch program? - Answer -All of the options listed
As part of the lifecycle of a program, after a computer programmer writes the code, it is then compiled and usually used to create an executable file to be run on the CPU. The code that is run through the compiler is known as what? - Answer -Source Code
Subana is writing a program which will calculate the mean average of a set of numbers by adding the numbers and dividing the result by the amount of numbers. She will use a
variable, avg, to store this average. Which variable type would be most suitable for avg?
- Answer -Floating point (float)
Tom created the following code segments in Scratch, which are intended to create a short piece of music between them.When the green flag is clicked, each of the three scripts is intended to run in turn, however, due to a mistake in the code, this does not happen. Which of the following changes could Tom make to ensure that all three of the scripts run as intended? - Answer -Replace the block broadcast sound 3 with the block broadcast sound 2
Many tasks, large and small, can be solved by performing a specific set of actions and making a particular set of decisions in very precise ways. These sets of actions and decisions are known as what? - Answer -Algorithms
Which of the following could be represented by a boolean variable? - Answer -Whether a guest at a wedding is allergic to peanuts
Peter wrote the following code in scratch to make a sprite perform a series of coordinated moves, forming a "dance routine." The code will be used for a competition, and Peter does not want to reveal the moves performed by the sprite in his program. Currently the path taken by the sprite is traced on the screen. Which of the following changes to the code will change this and allow Peter to keep the path taken by his sprite hidden? - Answer -Removing the pen down block Which of the following types of languages is optimized for machine processing and may be written and expressed as a series of binary digits (e.g., ones and zeros), making it difficult for humans to read and write? - Answer -Low-level programming language
Consider constructing an algorithm for a robot that can only perform the following three predefined operations. Which of the following algorithms will successfully cause the robot to trace out a square-shaped path, with the robot ending up in its original position and facing in its original direction? - Answer -Step 1: move forward ( ) step 2: rotate left ( )
step 3: move forward ( )
step 4: rotate left ( )
step 5: move forward ( )
step 6: rotate left ( )
step 7: move forward ( )
Step 8: rotate left ( )
The code segments for making a Scratch program which simulates a conversation between the user and a sprite on-screen are given below. Which of the following orders is most suitable if the program is to run without errors and produce the most realistic appearing conversation? - Answer -5-3-1-4-2
Which of the following statements about high-level programming languages when compared to low-level programming languages is true? - Answer -High-level programming languages provide programmers with more abstractions and are easier for
people to read
Joanna wishes to create a variable in her Scratch game which records the number of seconds until the game ends. Which of the following would be the most appropriate name for this variable? - Answer -Time_left
A group of high school students is participating in a mobile application development contest. They have a limited time frame and would like to add many features. Which of the following strategies will allow them to create the best app they can in the time allotted?
Strategy I:The students outline all goals. They make a program with all procedure names. They use software to simultaneously work on different parts of the code, frequently compiling and testing all code together. As each individual student completes
one procedure, that student moves onto the next procedure.
Strategy II:The students outline all goals. They work together on some shared code, and students work with their own copies of the code on specific parts. They check in regularly and completed, correct code is added to a master program. - Answer -Strategy
II only

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller millyphilip. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $11.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67096 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$11.99
  • (0)
  Add to cart