
Midterm APCSP: Questions 1-2
Flashcard
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Selection is best defined as:
Back
Determining whether or not a part of a program should run
2.
FLASHCARD QUESTION
Front
Which of the following logical operators return true if both of its operands are true? NOT, NOR, OR, AND
Back
AND
3.
FLASHCARD QUESTION
Front
What is the result of the expression 3 > 0 OR 3 < 0?
Back
True
4.
FLASHCARD QUESTION
Front
What are all of the possible outputs of RANDOM(2, 5)?
Back
2, 3, 4, or 5
5.
FLASHCARD QUESTION
Front
Consider the pseudocode shown in the diagram: result ← false; IF (X AND Y) THEN { IF (Z) THEN { result ← false } ELSE { result ← true } }. Which single expression assigned to result is equivalent to this block?
Back
result ← (X AND Y) AND NOT(Z)
6.
FLASHCARD QUESTION
Front
A program generates value ← RANDOM(1, 100). It displays RED when value > 50. Otherwise, it displays GREEN if value ≤ X; else it displays BLUE. To simulate a spinner landing RED 50%, GREEN 25%, BLUE 25%, what should X be?
Back
25
7.
FLASHCARD QUESTION
Front
Which pseudocode block correctly performs: add 5 to x, then multiply the result by 3? Consider the three blocks shown: I) x ← 3 ∗ (x + 5), II) x ← x + 5 ∗ 3, III) x ← x + 5; x ← x ∗ 3.
Back
Blocks I and III match the described operation
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
7 questions
Simple present tense
Flashcard
•
11th Grade
10 questions
A2. Unit 6. Materials .
Flashcard
•
KG - University
10 questions
Interpretations of 1 Timothy 2:11-12
Flashcard
•
11th - 12th Grade
7 questions
Places
Flashcard
•
KG - University
5 questions
Twilight 3 part
Flashcard
•
12th Grade
10 questions
Evolve 2 Unit - 8 Flashcard - 1
Flashcard
•
University
2 questions
5.3 Forecasting and Managing Cashflows Flashcards
Flashcard
•
12th Grade
10 questions
ReactJS Flashcards
Flashcard
•
KG
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade