Search Header Logo

CSP Unit 6 Review

Authored by Hannah Chu

Computers

12th Grade

Used 25+ times

CSP Unit 6 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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.

Variable Scope
Global Variable
Expression
Local Variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 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.

Variable Scope
Global Variable
Expression
Local Variable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Lists fruits and prices contain information about fruits and their prices. The code is written on the left.

Which of the following programs will result in filteredFruits only containing the fruits that cost more than $1?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

String
Expression
Variable
Concatenate

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

//Consider the following code

var animal = "monkey";

console.log(animal.substring(0,3) + "ey");

//What will be printed out in the console?

"monk ey"

"monkey"

"mon ey"

"money"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

5
4
0
125.4

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

Tessellation

Iteration

Anagram

Palindrome

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?