CSP Unit 6 Review

CSP Unit 6 Review

12th Grade

25 Qs

quiz-placeholder

Similar activities

Business Law

Business Law

Nutrition (continued)

Nutrition (continued)

Vet science ffa cde

Vet science ffa cde

The Early Childhood Environment Review

The Early Childhood Environment Review

Medical Legal and Ethics Vocab

Medical Legal and Ethics Vocab

Midterm Review 2

Midterm Review 2

CET Chapter 2 Practice Test 1

CET Chapter 2 Practice Test 1

CSP Unit 6 Review

CSP Unit 6 Review

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Hannah Chu

Used 15+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?