
JS PRACTICE - TEST ERRORS
Authored by Nixon López
Computers
12th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
DROPDOWN QUESTION
1 min • 1 pt
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
When the code is run the value of score at line 07 is 15. (a)
To meet the requirements, the following code should be placed at line 02: if (points === undefined) points = 1; (b)
2.
LABELLING QUESTION
1 min • 1 pt
You work for Fabrikam, Inc. You need to create a function that meets the following requirements:
a) JavaScript code must execute in strict mode.
b) The function must return the produce name, weight, and revenue.
c) The revenue must be formatted as a currency appropriate for the computer's locale setting.
d) The weight must be formatted to display two digits after the decimal point.
How should you complete the code?
var revenue=amount.toLocaleString();
use void;
var pounds=weight.toPrecision(2);
var pounds=weight.toFixed(2);
"use strict";
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are writing a program for Woodgrove Bank. The update() function must update a paragraph element with the input from the user, and then hide the input box.
Which code should you add at lines 09 and 10?
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output of the following JavaScript code.
8
0
12
9
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You are writing a JavaScript application for an accounting system.
What is the result of running this program?
Syntax error
Ari Bixhorn undefined
Ari Bixhorn 48000
Runtime error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Predict the output of the following JavaScript code.
Substring takes a string value and get a new one only using the positions given inside the parenthesis.
f
s
sf
ks
7.
LABELLING QUESTION
1 min • 1 pt
You are creating JavaScript code that manipulates dates. You want to initialize a Date object with the date November 12 , 2017 by using the year, month, and date parameters.
How should you complete the code?
17
11
2017
12
10
November
10
Nov
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
10 questions
emtech
Quiz
•
12th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
10 questions
Quiz 8 (01.09.2021)
Quiz
•
1st - 12th Grade
8 questions
Basic computer
Quiz
•
9th - 12th Grade
15 questions
Smartphone - 1
Quiz
•
12th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade