JS PRACTICE - TEST ERRORS

JS PRACTICE - TEST ERRORS

12th Grade

10 Qs

quiz-placeholder

Similar activities

Web JavaScript

Web JavaScript

10th Grade - University

15 Qs

JavaScript Cert Prep

JavaScript Cert Prep

9th - 12th Grade

10 Qs

Java Script

Java Script

10th - 12th Grade

10 Qs

Coding and Robotics

Coding and Robotics

8th - 12th Grade

12 Qs

Do Now Lesson 2

Do Now Lesson 2

9th - 12th Grade

15 Qs

Moringa JavaScript Arrays

Moringa JavaScript Arrays

5th Grade - Professional Development

10 Qs

JavaScript Fundamentals Quiz Senior

JavaScript Fundamentals Quiz Senior

12th Grade

15 Qs

Coding JavaScript

Coding JavaScript

9th - 12th Grade

12 Qs

JS PRACTICE - TEST ERRORS

JS PRACTICE - TEST ERRORS

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Nixon López

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

DROPDOWN QUESTION

1 min • 1 pt

Media Image

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)  

Yes
No

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?

b
d
e

use void;

"use strict";

var pounds=weight.toPrecision(2);

var revenue=amount.toLocaleString();

var pounds=weight.toFixed(2);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Predict the output of the following JavaScript code.

8

0

12

9

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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?

b
c
g

November

11

10

17

12

Nov

10

2017

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?