Butler AP CSP Midterm Review

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

25 questions
Show all answers
1.
FLASHCARD QUESTION
Front
According to ASCII character encoding, which letter is represented by the binary (base 2) number 1010100?
Back
T
2.
FLASHCARD QUESTION
Front
Which decimal (base-10) value is equivalent to the binary (base-2) value 101001?
Back
41
3.
FLASHCARD QUESTION
Front
What value does the above code segment display?
Back
53
4.
FLASHCARD QUESTION
Front
Consider the above code segment that is designed to print all numbers from a list of integer values, called grades, that are between 90 and 100, inclusive. Which modifications can be made to the code to allow it to also print numbers from a variety of different ranges of values (e.g., 70 to 80, 85 to 95, 1 to 50, etc.)?
Back
userPassword = "swordfish"
5.
FLASHCARD QUESTION
Front
Consider the above code segments designed to find the area of a triangle (A = 1/2 bh). Which of the following statements about the above programs is true? Options: Both programs will work as intended, but Program B is more readable. Program A will work as intended, but Program B will not work as intended. Program B will work as intended, but Program A will not work as intended. Neither program will work as intended.
Back
Both programs will work as intended, but Program B is more readable.
6.
FLASHCARD QUESTION
Front
Assuming that before this code is run, x = 1. What would be displayed at the end? Options: 210, 16, 8, 1
Back
16
7.
FLASHCARD QUESTION
Front
What condition will make the above an infinite loop? Options: y = -108, y≠-3, y ≥ 8, y < -53
Back
y ≥ 8
Create a free account and access millions of resources
Similar Resources on Wayground
22 questions
Informatics School Pre-Test

Flashcard
•
9th Grade - University
16 questions
AP CSP Unit 1

Flashcard
•
9th - 12th Grade
21 questions
AP CSP Unit 3 Review

Flashcard
•
10th - 12th Grade
16 questions
Code.org CSP Unit 4 Review

Flashcard
•
9th - 12th Grade
15 questions
Naming Binary Ionic Compounds

Flashcard
•
9th - 12th Grade
15 questions
Binary Ionic Compounds

Flashcard
•
9th - 12th Grade
15 questions
Ionic Compounds (Binary with Transition Metals)

Flashcard
•
9th - 12th Grade
17 questions
AP CSP Security Risks & Review

Flashcard
•
11th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade