QUIZ #1 JAVASCRIPT

QUIZ #1 JAVASCRIPT

11th Grade

16 Qs

quiz-placeholder

Similar activities

JavaScript and Graphics

JavaScript and Graphics

9th - 12th Grade

15 Qs

P5.js Conditional Statements in Computer Science

P5.js Conditional Statements in Computer Science

9th - 12th Grade

15 Qs

JavaScript:  CodeHS chapter 3 exam

JavaScript: CodeHS chapter 3 exam

9th - 12th Grade

15 Qs

matplotlib-2

matplotlib-2

9th - 11th Grade

15 Qs

Bài TX1 - HK2 - Tin học 11

Bài TX1 - HK2 - Tin học 11

11th Grade

20 Qs

C++ Arrays

C++ Arrays

8th - 12th Grade

12 Qs

JRDL - JS Arrays and Objects

JRDL - JS Arrays and Objects

6th Grade - Professional Development

12 Qs

QUIZ #1 JAVASCRIPT

QUIZ #1 JAVASCRIPT

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Sharon Smith

Used 12+ times

FREE Resource

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these will increase the value of the variable X?

increment (x)

x++;

x=x;

x+1;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following will decrease the value of x?

x--;

x-1;

x=x;

x=-x;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is first index value of an array?

0

-1

1

undefine

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

array = [1,2,3,4,5]

What is the length of this array?

5

4

6

undefine

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

His name is Fred and he is less than 16 years old

if (name = "fred" && age < 16 )

if (name === "fred" && age < 16 )

if (name = "fred" || age < 16 )

if (name === "fred" || age < 16 )

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output to the console for the following code:

var colors =["Yellow", "Orange", "Blue"];

colors.shift();

colors.unshift("Purple");

console.log(colors);

["Orange", "Yellow", "Purple"]

["Purple", "Yellow", "Orange", "Blue"]

["Yellow", "Orange", "Blue", "Purple"]

["Purple", "Orange", "Blue"]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct code to remove the 1 from this array?:
arr = [1,2,3,4,5];

arr.push();

arr.pop();

arr.shift();

arr.unshift();

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?