CodeHS Unit 7 Review

CodeHS Unit 7 Review

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

1.6 Ejemplo de aplicación Web

1.6 Ejemplo de aplicación Web

12th Grade

12 Qs

Python pandas 🐼

Python pandas 🐼

12th Grade

10 Qs

ACTIVIDAD CREATIVA DIGITALIZACIÓN

ACTIVIDAD CREATIVA DIGITALIZACIÓN

10th Grade

13 Qs

Word 2016 Lesson 1

Word 2016 Lesson 1

9th - 12th Grade

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

10 câu kiểu xâu tiết 1

10 câu kiểu xâu tiết 1

11th Grade

10 Qs

แบบฝึกหัดทบทวนบทเรียน โครงสร้างภาษาซี

แบบฝึกหัดทบทวนบทเรียน โครงสร้างภาษาซี

12th Grade

12 Qs

CodeHS Unit 7 Review

CodeHS Unit 7 Review

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Ezhilarasi Kalathy

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We want to make a grocery list in our program. Which of the following is the correct way to make an array/list?

var groceries = ["milk" "sugar" "eggs" "cake"];

var groceries = ["milk, sugar, eggs, cake"];

var groceries = "milk, sugar, eggs, cake";

var groceries = ["milk", "sugar", "eggs", "cake"];

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method can we use to find the index of a particular element in an array?

.index

indexOf

inIt

findElement

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The index of the very first item in an array is 1.

true

false

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var numbers = [0, 1, 2, 3, 4];

How can we add a 6 to the end of numbers?

pop(6)

push(6)

add(5,6)

pop( )

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an array ?

An unordered collection of items

An ordered collection of items

A collection of (key, value) pairs

A collection of unique objects that are not in a specific order

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following program?

 

function start(){

 

   var arr = [1, 2, 3, 4, 5, 6, 7];

 

   var elem = arr.remove(2);

 

   println(arr);

 

}

[1, 2, 3, 4, 5]

[3, 4, 5, 6, 7]

[1, 2, 4, 5, 6, 7]

[1, 3, 4, 5, 6, 7]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

var numbers = [ 1, 2, 3, 4, 5, 6];

How can we remove the last item from the end of this array and store it in a variable called highestNum?

var highestNum = numbers.pop();

var numbers =

highestNum.push(6);

var highestNum = numbers[5];

var numbers = numbers.pop();

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?