CSP Unit 6 Review

CSP Unit 6 Review

Assessment

Flashcard

Computers

12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

23 questions

Show all answers

1.

FLASHCARD QUESTION

Front

A variable whose scope is covers the whole program, it can be used and updated by any part of the code. Its scope is typically derived from the variable being declared (created) outside of any function, object, or method.

Back

Global Variable

2.

FLASHCARD QUESTION

Front

A variable that can only be seen, used and updated by code within the same scope. Typically this means it was declared (created) inside a function -- includes function parameter variables.

Back

Local Variable

3.

FLASHCARD QUESTION

Front

Which of the following programs will result in filteredFruites only containing the fruits that cost more than $1? Options: Variable Scope, Global Variable, Expression, Local Variable

Back

Media Image

4.

FLASHCARD QUESTION

Front

Typically used when joining together text in programming (e.g. "Hello, "+name)

Back

Concatenate

5.

FLASHCARD QUESTION

Front

//Consider the following code
var animal = "monkey";
console.log(animal.substring(0,3) + "ey");
//What will be printed out in the console?

Back

"money"

6.

FLASHCARD QUESTION

Front

array = [1,2,3,4,5]
What is the length of this array?

Back

5

7.

FLASHCARD QUESTION

Front

a repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met.

Back

Iteration

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?