stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
CSP Programming review (JS and Pseudocode) Flashcards | StudBud
Explore
/
CSP Programming review (JS and Pseudocode)
A = True; Q = True; B = ?
What Language?
CSP Programming review (JS and Pseudocode)
10 terms
·
StudBud Administration
·
141 plays
semester 2 exam review
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
What Language?
pseudocode
JavaScript
2
A = True; Q = True; B = ?
could be either true or false
false
true
3
A=TRUE; B=FALSE; C=TRUE; D=?; Q=?
D=FALSE; Q=TRUE
D=TRUE; Q=FALSE
D=FALSE; Q=FALSE
D=TRUE; Q=TRUE
4
Identify the language
JavaScript
pseudocode
5
What is the purpose of this algorithm?
create a sorted array
create an array with values between 1 and 6
create an array with even increments between each value
create an array with completely random numbers
6
(2 correct) Choose useful applications for iteration in programming
executing conditional algorithms
using a function within another function
Computational simulations and experiments
Performing tasks with each item in an array
7
What is the ending location of the turtle?
E4
C3
A2
A5
8
x = keepIn ( 15, 1, 10 ); (what will be the value of x?)
x = 15
x = 1
x = 10
the line in the question will result in error
9
Q is false. What could be the inputs?
A and B are both False
A is True, B is False
A is false, B is true
A and B are both True
10
What is the result of using selection in programming?
performing the same operation with each item in an array
mathematical operations
returning a value
executing conditional algorithms