
QUIZ #1 JAVASCRIPT
Authored by Sharon Smith
Computers
11th Grade
Used 12+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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();
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
effect of ict
Quiz
•
9th - 12th Grade
20 questions
QUIZ BAB 4: SISTEM OPERASI
Quiz
•
8th Grade - University
14 questions
Sistem operasi
Quiz
•
10th Grade - University
20 questions
Documente Web. Formatul HTML
Quiz
•
9th Grade - University
11 questions
Fornite
Quiz
•
1st - 12th Grade
20 questions
Proxy Quiz
Quiz
•
11th - 12th Grade
20 questions
Network topologies
Quiz
•
8th Grade - University
13 questions
Arrays in Swift
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade