JavaScript Basics: Introduction to Arrays

JavaScript Basics: Introduction to Arrays

9th Grade

50 Qs

quiz-placeholder

Similar activities

2024 Final Exam Review PFGT

2024 Final Exam Review PFGT

9th - 12th Grade

55 Qs

Code.org - CSD - Unit 6 - Physical Computing - Review

Code.org - CSD - Unit 6 - Physical Computing - Review

7th - 12th Grade

50 Qs

Programming Concepts

Programming Concepts

9th - 12th Grade

54 Qs

Matpil_TKJ-Arduino Dasar

Matpil_TKJ-Arduino Dasar

9th - 12th Grade

45 Qs

AQA GCSE Computer Science - 3.1 Fundamentals of algorithms

AQA GCSE Computer Science - 3.1 Fundamentals of algorithms

8th - 10th Grade

49 Qs

Basic Java with CodeHS

Basic Java with CodeHS

9th - 12th Grade

50 Qs

OCR GCSE Computer Science Keywords Set 1

OCR GCSE Computer Science Keywords Set 1

9th - 12th Grade

45 Qs

CLASS IX PYTHON  REVISION

CLASS IX PYTHON REVISION

9th Grade

48 Qs

JavaScript Basics: Introduction to Arrays

JavaScript Basics: Introduction to Arrays

Assessment

Quiz

Computers

9th Grade

Hard

Created by

Ivan Macaso

Used 4+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 1 pt

What will be the output of the following JavaScript code: console.log(5 + '5')?

'55'

'5.5'

'10'

'25'

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which keyword is used to declare a variable in JavaScript?

int

let

const

var

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the correct syntax for a single-line comment in JavaScript?

/* This is a single-line comment */

// This is a single-line comment

/* This is a comment */

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of using let keyword in JavaScript?

To declare global variables

To declare block-scoped variables

To define functions

To import external libraries

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When should you use const keyword instead of let in JavaScript?

When you want to declare a variable that will be reassigned frequently.

When you want to confuse other developers.

When you want to declare a variable that will not be reassigned.

When you want to make your code less readable.

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of 10 % 3 in JavaScript?

1

5

2

0

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you access a property of an object in JavaScript?

objectName[propertyName]

objectName->propertyName

objectName.propertyName()

objectName.propertyName or objectName['propertyName']

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?