Functions, Loops, Arrays, Objects

Functions, Loops, Arrays, Objects

9th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Excel

Excel

12th Grade

15 Qs

BÀI 24-25 TIN 10

BÀI 24-25 TIN 10

10th Grade

20 Qs

CSS Acronyms

CSS Acronyms

9th - 10th Grade

20 Qs

Unit Test 1 Class 8 Computer

Unit Test 1 Class 8 Computer

8th - 9th Grade

20 Qs

Data Structures: 1D,2D & List

Data Structures: 1D,2D & List

11th Grade

17 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

Kiểm tra 15 phút  (Kết thúc chuyên đề A)

Kiểm tra 15 phút (Kết thúc chuyên đề A)

10th Grade

20 Qs

Computer Science - X

Computer Science - X

8th - 10th Grade

20 Qs

Functions, Loops, Arrays, Objects

Functions, Loops, Arrays, Objects

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Shantanu Agrawal

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How to access 'Shantanu' from => names { 0: 'Shantanu' }

names.0

names[0]

Both names.0 and names[0]

None of the above

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How to access first element of colors array?

colors.0

colors[0]

Both colors.0 and colors[0]

None of the above

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the syntax of an object property?

key: value

value: key

key: { value }

value: { key }

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How to add an element to the end of an array?

.shift() method

.push() method

.unshift() method

.insert() method

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What are objects?

collections of properties

collections of arrays

collections of integers

collections of any primitive data type

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Select the odd one out

Arrays are accessed using indices

Objects are accessed using keys

Objects do not have indices

Arrays are accessed using keys

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How to remove an element from the end of an array?

.shift() method

.push() method

.unshift() method

.pop() method

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?