Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

AP Computer Science Principles Final/AP UPDATED ACTUAL Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
24
Grade
A+
Uploaded on
26-03-2025
Written in
2024/2025

AP Computer Science Principles Final/AP UPDATED ACTUAL Exam Questions and CORRECT Answers What is a special data type that has one of two values? - CORRECT ANSWER What are the two values a boolean can have? - CORRECT ANSWER What are the three ways a boolean can be returned? - CORRECT ANSWER evaluating a condition as a result of comparing two values when evaluating one or more Boolean conditions 10 MOD 2 - CORRECT ANSWER 20 MOD 0 - CORRECT ANSWER 20 MOD 4 - CORRECT ANSWER 4 MOD 20 - CORRECT ANSWER 0 MOD 4 - CORRECT ANSWER - 0 - error - 0 - 4 - 0 How can you determine if a number is even or odd? - CORRECT ANSWER MOD 2, if the answer is 1, it is odd, if the answer is 0, it is even What are the two main reasons modulus is used in programming? - CORRECT ANSWER - to determine if a number is odd or even - a boolean - true or false - as a re

Show more Read less
Institution
APCSP
Course
APCSP

Content preview

AP Computer Science Principles Final/AP
UPDATED ACTUAL Exam Questions and
CORRECT Answers
What is a special data type that has one of two values? - CORRECT ANSWER - a boolean



What are the two values a boolean can have? - CORRECT ANSWER - true or false



What are the three ways a boolean can be returned? - CORRECT ANSWER - as a result of
evaluating a condition
as a result of comparing two values
when evaluating one or more Boolean conditions


10 MOD 2 - CORRECT ANSWER -0



20 MOD 0 - CORRECT ANSWER - error



20 MOD 4 - CORRECT ANSWER -0



4 MOD 20 - CORRECT ANSWER -4



0 MOD 4 - CORRECT ANSWER -0



How can you determine if a number is even or odd? - CORRECT ANSWER - by using x
MOD 2, if the answer is 1, it is odd, if the answer is 0, it is even


What are the two main reasons modulus is used in programming? - CORRECT
ANSWER - to determine if a number is odd or even

,to convert between number systems


What is the opposite of less than? - CORRECT ANSWER - greater than or equal to



What is the opposite of greater than? - CORRECT ANSWER - less than or equal to



What is the opposite of is equal to? - CORRECT ANSWER - is not equal to



What is the opposite of is not equal to? - CORRECT ANSWER - is equal to



What is the opposite of greater than or equal to? - CORRECT ANSWER - less than



What is the opposite of less than or equal to? - CORRECT ANSWER - greater than



What is NOT (a AND b) equal to? - CORRECT ANSWER - NOT a OR NOT b



What is NOT ( a OR b) equal to? - CORRECT ANSWER - NOT a AND NOT b


If the word between two conditions is or and the first condition is true, what will the result
always be? - CORRECT ANSWER - true


If the word between the conditions is and and the first condition is false, what will the result
always be? - CORRECT ANSWER - false



What is a logic gate a part of? - CORRECT ANSWER - a circuit



What are the parts of a logic gate? - CORRECT ANSWER - two boolean inputs and one
boolean output

, What are the three major components of any algorithm? - CORRECT ANSWER -
selection, sequencing, iteration


When is iteration used in an algorithm? - CORRECT ANSWER - when you want to repeat
something


Give three examples of a time when you would use iteration in an algorithm. - CORRECT
ANSWER - you want to do something a certain number of times
you want to do something until a condition is true
you have a collection of data and you need to see each element in the collection


What is a collection of items of the same type? - CORRECT ANSWER - a list



What is an index in a list? - CORRECT ANSWER - the location in the list where an item
can be found


What is an item in a list? - CORRECT ANSWER - one element of the list


What happens if you try to access and element that is outside of the list? - CORRECT
ANSWER - an error is returned



What is the smallest list index? - CORRECT ANSWER -1



What is the largest list index? - CORRECT ANSWER - the length of the list



What are the three ways you can add elements to a list? - CORRECT ANSWER - initialize
from a list of values, add one element at a time to the end of the list (append item), add one
element at a time to a specific location in the list (insert item)

Written for

Institution
APCSP
Course
APCSP

Document information

Uploaded on
March 26, 2025
Number of pages
24
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • ap computer science
$11.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
MGRADES Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1433
Member since
2 year
Number of followers
106
Documents
95223
Last sold
1 day ago
MGRADES

Welcome to MGRADES ,Based at Stanford University in California. I guarantee success and you may end up coming back again and again. We do this for you . We offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

232 reviews

5
95
4
50
3
53
2
14
1
20

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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions