CSP Unit 6 Review

CSP Unit 6 Review

12th Grade

25 Qs

quiz-placeholder

Similar activities

CS Principles Unit 5 Assessment

CS Principles Unit 5 Assessment

9th - 12th Grade

20 Qs

Code.org AP CSP Lists

Code.org AP CSP Lists

9th - 12th Grade

20 Qs

Lists and Loops in Computer Science

Lists and Loops in Computer Science

10th - 12th Grade

20 Qs

Code.org Unit 5

Code.org Unit 5

10th - 12th Grade

20 Qs

Code.org List

Code.org List

10th - 12th Grade

20 Qs

Code.org Unit 5 Test

Code.org Unit 5 Test

10th - 12th Grade

20 Qs

Computer Science Principles Lists Loops Traversals

Computer Science Principles Lists Loops Traversals

10th - 12th Grade

20 Qs

CSP Lists Loops and Traversals

CSP Lists Loops and Traversals

10th - 12th Grade

20 Qs

CSP Unit 6 Review

CSP Unit 6 Review

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Hannah Chu

Used 15+ times

FREE Resource

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

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?