Which of these will increase the value of the variable X?
QUIZ #1 JAVASCRIPT

Quiz
•
Computers
•
11th Grade
•
Hard
Sharon Smith
Used 11+ times
FREE Resource
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
arr = [1,2,3,4,5];
arr.push();
arr.pop();
arr.shift();
arr.unshift();
Create a free account and access millions of resources
Similar Resources on Quizizz
18 questions
ICT01: Introduction to MATLAB basics

Quiz
•
11th - 12th Grade
15 questions
JavaScript and Graphics

Quiz
•
9th - 12th Grade
15 questions
Javascript

Quiz
•
10th - 12th Grade
12 questions
C++ References

Quiz
•
6th - 12th Grade
15 questions
Mảng 1 chiều

Quiz
•
8th - 11th Grade
15 questions
Unit 8 - Searching and Sorting

Quiz
•
9th - 12th Grade
15 questions
Unit 8 Javascript Quiz

Quiz
•
9th - 12th Grade
20 questions
ինֆորմատիկա 11 (Տնտեսագիտական) Պասկալ

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University