ap comp sci final

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Which of the following program functionalities will most likely require string concatenation?

A program combines four random words into a secure password

Which of the following most accuratley describes what the test procedure does?

returns the smallest odd number larger than x

Which of the following correctly describes the form of input used by elevators?

tactile

Which of the following best describes the result of running the code?

the # 11 is displayed

Which of the following is not an example of collaboration?

Seth and Alex decide they want to create a piece of music using a coding software. Seth and Alex discuss what genre of music they want to make, but they cannot agree. They decide to create their own music

Which of the following will best help the programmer understand what the software is supposed to do?

The intended outcome of several specific inputs

Which of the following code segments will correctly swap the values of x and y?

b, d

which of the following changes will not affect the results when the code is run?

change line 3 to y <- -4

Knowing that meaningful variable names aid in program development, which of the following variable names should the student use?

d

Which of the following are the most appropriate changes the students should make to their collaborative process to make it more effective?

-The students should develop the survey questions together and each should ask the same questions to their classmates -The data should be combined before it is cleaned so that it is cleaned in a consistent manner

Of the following, which is closest to the number being displayed as a result of executing this code segment?

17

How many times will the display statement execute in the following loop?

5

What will be the value of z at the end of this code segment, given that a is 4 and b is 5?

9

Which of the following is an example of abstraction?

A parent is teaching their child how to drive a car. Instead of explaining how the engine works, they explain that turning the key will start the car.E

Of the following situations, which are most conducive for using collaborative spreadsheet software instead of using standalone spreadsheet software?

A team of engineers records their individual rest results, which are monitored by a supervisor every hour -Each day, students in AP Computer Science Principles class record how many hours of sleep they received the previous night, and the average is reported to the class

Of the following, which would be the most logical extension of this software for another purpose?

To allow an officer's entry into a military facility

Which of the following flow charts is the best representation of abstraction hierarchy?

b

Line 3 is best described as

iteration

In the short program, which is best thought of as a constant?

pi

Which of the following would be the best explanation of the functionality og a program?

The user calculates their bill by entering the price of each item they plan to purchase. The user then clicks "calculate" to determine the total cost

Determine if this code is an example of abstraction and state why or why not

This code is an example of abstraction. The details of how the integer is determined as even or odd are not displayed when using the program

Which of the following is the most significant reason it is important to understand the purpose of a computing innovation?

Understanding the purpose improves the probability of success in developing the computing innovation

Which of the following statements correctly assigns the blue color

a

Assume that the user will not input a time after midnight or before 1:00pm. Which of the following equations would find the correct number of minutes?

a (hour-1)*60 + minute

Why will this info help the partner debug the programmer's code?

knowing what the program is supposed to do will help them determine which test cases can be used to find errors in the code

If start button clicked is false and score = 1000 what is displayed after the code is run

press start

The expected result is a complete sentence such as "The bird flew" which of the following is a potential output as the code is currently written?

the cat meowed

Which of the following code segments would successfully concatenate the next letter with the word so far?

y <- y +x

Collaboration is an important way of working in the modern world. OF the following statements, which more accurately describe advantages of teams working together collaboratively?

-Brainstorming among team members encourages creativity -Work being shared among team members helps get the job done faster

Which of the following strategies will make their code easier to maintain once the program is finished?

-Using procedures for repeated code -Writing documentation for all procedures and variables in the program

which of the following expressions would have the value of 2 given these variables?

a,c

Which of the following algorithims correctly displays everyone's name in the list except for "John"

c

what will be the values of x,y, and z after the following code executes?

c

which of the following replacements for <missing conditions> will not result in an infinte loop?

c


Set pelajaran terkait

Mass Media and Society Final study guide

View Set

State Exam Simulator - Practice Exam (missed questions)

View Set

Marieb Anatomy + Physiology Chapter 2: Chemistry

View Set

Drugs Affecting the Autonomic Nervous System

View Set

Chapter 41 - Listening Guide Quiz 32: Berlioz: Symphonie fantastique, V

View Set

Med Surg: Chapter 53: Nursing Management: Patients With Burn Injury: PREPU

View Set

Tension pneumothorax- medical emergency

View Set

Chapter 46: Management of Patients with Gastric and Duodenal Disorders

View Set