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
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
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 Wayground
15 questions
Python Arrays Quiz P7

Quiz
•
11th Grade
17 questions
Arrays recap

Quiz
•
9th Grade - University
19 questions
Unit 5 - Two-Dimensional Arrays

Quiz
•
9th - 12th Grade
20 questions
Pretest C++

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

Quiz
•
9th - 12th Grade
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
20 questions
Arrays in Java

Quiz
•
9th - 12th Grade
19 questions
JavaScript Data Structures

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade