100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

AP Computer Science Principles Exam Questions with Correct Answers

Rating
-
Sold
-
Pages
15
Grade
A+
Uploaded on
29-10-2024
Written in
2024/2025

AP Computer Science Principles Exam Questions with Correct Answers Consider the following code segment, which uses the variables r, s, and t. r <-- 1 s <-- 2 t <-- 3 r <-- s s <-- t DISPLAY (r) DISPLAY (s) What is displayed as a result of running the code segment? (A) 1 1 (B) 1 2 ©EMILLECT 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER 2024 Page 2/15 (C) 2 3 (D) 3 2 - ANSWER-(C) Which of the following is a true statement about product documentation? (A) Program documentation should not be changed after it is first written. (B) Program documentation is only needed for programs in development; it is not needed after a program is completed. (C) Program documentation is useful when programmers collaborate but not when a programmer works individually on a project. (D) Program documentation is useful during initial program development and also when modifications are made to existing programs. - ANSWER-(D) Which of the following best explains what happens when a new device is connected to the Internet? (A) A device driver is assigned to the device. (B) An Internet Protocol (IP) address is assigned to the device. (C) A packet number is assigned to the device. (D) A Web site is assigned to the device. - ANSWER-(B) ©EMILLECT 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER 2024 Page 3/15 Consider the following code segment. j <-- 1 REPEAT UNTIL (<MISSING CONDITION>) (j <-- j + 2) Which of the following replacements for <MISSING CONDITION> will result in an infinite loop? (A) j = 6 (B) j ≥ 6 (C) j = 7 (D) j > 7 - ANSWER-(A) The algorithm below is used to simulate the results of flipping a coin 4 times. Consider the goal of determining whether the simulation resulted in an equal number of heads and tails. Step 1: Initialize the variables heads_counter and flip_counter to 0.

Show more Read less
Institution
AP Computer Science
Course
AP Computer Science









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
AP Computer Science
Course
AP Computer Science

Document information

Uploaded on
October 29, 2024
Number of pages
15
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

©EMILLECT 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED

FIRST PUBLISH OCTOBER 2024




AP Computer Science Principles Exam

Questions with Correct Answers


Consider the following code segment, which uses the variables r, s, and t.


r <-- 1


s <-- 2


t <-- 3


r <-- s


s <-- t


DISPLAY (r)


DISPLAY (s)


What is displayed as a result of running the code segment?


(A) 1 1


(B) 1 2


Page 1/15

, ©EMILLECT 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED

FIRST PUBLISH OCTOBER 2024




(C) 2 3


(D) 3 2 - ANSWER✔✔-(C)


Which of the following is a true statement about product documentation?


(A) Program documentation should not be changed after it is first written.


(B) Program documentation is only needed for programs in development; it is not needed after a

program is completed.


(C) Program documentation is useful when programmers collaborate but not when a programmer works

individually on a project.


(D) Program documentation is useful during initial program development and also when modifications

are made to existing programs. - ANSWER✔✔-(D)


Which of the following best explains what happens when a new device is connected to the Internet?


(A) A device driver is assigned to the device.


(B) An Internet Protocol (IP) address is assigned to the device.


(C) A packet number is assigned to the device.


(D) A Web site is assigned to the device. - ANSWER✔✔-(B)




Page 2/15

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Emillect West Virginia University
View profile
Follow You need to be logged in order to follow users or courses
Sold
28
Member since
1 year
Number of followers
2
Documents
3004
Last sold
1 month ago
GOLDEN ORCHIDS STORE.

On this page, you find all documents, package deals, and flashcards offered by seller Emillect.

3.0

4 reviews

5
1
4
0
3
2
2
0
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions