stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Unit 1 Review Flashcards | StudBud
Explore
/
Unit 1 Review
Unit 1 Review
37 terms
·
StudBud Administration
·
202 plays
Imported from external platform
Flashcards
37 cards
F
Practice quiz
P
Host live
L
Questions
37
Answers
1
Requesting for feedback and debugging is likely in which phase
Initial Concept
Design
Implement/coding
Testing
2
Result of 15 MOD 3
1
0
7
2
3
How many times will B be displayed
120
6
2
24
4
Commenting code is when comments
serve to obscure the implementation specifics of the code
are advised against when engaging in collaborative programming
initiate the execution of program code in event-driven programs
aid programmers in monitoring the functionality of their code
5
Result of (19 MOD 10) - (1 MOD 4) expression is
9
4
1
8
6
Parameters are important because they
allow programmers to generalize patterns of code to be executed
serve as a means of documenting code
are the means to displaying data on the screen
trigger pieces of code to be run in response to an event taking place
7
How many times will A be displayed
120
24
6
2
8
Procedures are a
collection of statements that can be reused as needed
sequence of characters, including letters, numbers, and symbols
set of instructions that enable programs to branch and skip executing code
set of instructions that are repeated a specific number of times
9
Event-driven programming is when a program's code
fails to run due to errors
activates based on specific actions, like mouse clicks
simplifies through parameter-based detail reduction
is executed sequentially from start to finish
10
Possible results of Random(2,4) + 2 expression are
4, 5, 6
4, 6
2, 3, 4
2, 3, 4, 6
11
I should really pay attention to our Unit 01 Review
False
True
12
Possible results of Random(1,9) expression are
1, 2, 3, 4, 5, 6, 7, 8, 9
1, 2, 3, 4, 5, 6, 7
2, 3, 4, 5, 6, 7, 8, 9
3, 4, 5, 6, 7, 8
13
Expression that will result in an even number between 1 and 6
Random(1,6) / 2
2 * Random(1,6)
2 * Random(2,6)
Random(2,6) / 2
14
Which will result in a square
repeat size, turn size
repeat size, turn 90
repeat 4, turn size
repeat 4, turn 90
15
How many times will H be displayed
2
24
6
120
16
10/5 + 2*2 - 1
6
5
4
3
17
The proper response is
Being disrespectful
Nah
Yes, Mrs. Coppin
Complaining
18
Abstraction demonstrates what two concepts
Detail Removal and Generalization
Generalization and Iteration
Iteration and Sequencing
Sequencing and Detail Removal
19
Code primarily demonstrates what two concepts
Output and Iteration
Iteration and Selection
Selection and Input
Input and Output
20
How many times will C be displayed
6
24
2
120
21
20/10 + 3*3 - 2
7
10
9
8
22
Solution programming would primarily be in which phase
Implement/coding
Initial Concept
Design
Testing
23
Result of
a a b c a b c
a b c d a b c d
a a b b c c d d
a a b c a a b c
24
Result of (19 MOD 12) MOD (16 MOD 12) expression is
2
7
3
5
25
How many times will G be displayed
120
24
2
6
26
DISPLAY( RANDOM(1, 4) ) will result in
1, 2, 3, 4
1, 2, 3
2, 3, 4
2, 3, 4
27
Program output example
Input()
Random(1,9)
Display("Howdy")
2 MOD 1
28
Program output example
mouse clicking on buttons or sprites
video and text on the screen
arguments to procedure input variables
arguments to procedure input variables
29
How many times will F be displayed
120
6
24
2
30
Result of
a b c d
a c d b
a c d c d b
a d c b
31
Result of 15 MOD 2
2
0
1
3
32
Possible results of Random(2,4) * 2 expression are
4, 8
2, 3, 4, 6
4, 6, 8
2, 3, 4
33
Procedural abstraction is the process of
documenting code using comments
optimizing code for faster execution
designing a program before implementation
breaking down a complex task into smaller, manageable procedures
34
Event-driven programming
can arise as a reaction to a user action, such as pressing a keyboard key
consistently follows sequential code execution
guarantees the repetition of a code segment
always relies on sequencing and iterative constructs
35
How many times will D be displayed
6
120
2
24
36
How many times will E be displayed
2
24
6
120
37
Result of (6 MOD 4) + (6 MOD 1) expression is
2
4
1
0