What does the modulus operator (%) return?
Select an option, then click Submit answer.
- ○ The remainder after dividing one number by another
- ○ The percentage of a value
- ○ The quotient rounded up
- ○ The square root of a value
Loading demo links...
Showing 1–10 of 10 questions
What does the modulus operator (%) return?
Select an option, then click Submit answer.
The compound assignment x += 5 is equivalent to which statement?
Select an option, then click Submit answer.
Which TWO are assignment-related operators covered in the objectives? (Choose two.)
Select all that apply, then click Submit answer.
What is the effect of the increment operator ++ on a numeric variable?
Select an option, then click Submit answer.
Why do JavaScript best practices require consistent indentation and naming conventions?
Select an option, then click Submit answer.
A
Select an option, then click Submit answer.
What does the debugger keyword do when developer tools are open?
Select an option, then click Submit answer.
An internal script differs from an external script in that an internal script is what?
Select an option, then click Submit answer.
In a try-catch-finally structure, the finally block runs when?
Select an option, then click Submit answer.
Which TWO are reserved keywords or keyword-related practices in JavaScript? (Choose two.)
Select all that apply, then click Submit answer.
This page holds a free practice test for the Information Technology Specialist JavaScript certification from Certiport. You will find 10 free questions, drawn from the full Study4Pass practice set of 80 questions for this exam. The questions follow the official Certiport objective domains: JavaScript Operators, Methods, and Keywords; Variables, Data Types, and Functions; Decisions and Loops; Document Object Model; HTML Forms.
Pick an answer for each question and check it straight away — the correct answer and a full explanation appear under the question. There is no time limit and nothing to sign up for. When an explanation is not enough, use Ask AI: this is an AI-Enabled practice test, and Ask AI explains the concept behind the question in plain language. Ready for more? The full 80-question set adds a timed Exam Simulation mode, topic training for your weak areas, and a flagged-question review.
Covers completing and debugging code that uses assignment and arithmetic operators, applying JavaScript best practices (comments, indentation, naming conventions, constants, reserved keywords, debugger, breakpoints, console.log), evaluating internal and external scripts, implementing exception handling, and interacting with the Browser Object Model (BOM).
Assignment, increment, decrement and compound assignment operators; Comments and naming conventions; noscript; debugger keyword and breakpoints; Internal vs external scripts; try, catch, finally; BOM dialogs and screen size
Covers declaring and using variables of primitive data types, declaring and using arrays, completing code that uses objects (including the Date object), using built-in Math functions, and completing functions that accept parameters and return values, with local versus global scope.
Number, Boolean, String, null, undefined; typeof and type-checking; parseInt, parseFloat, toFixed, toPrecision; Arrays, push, pop, shift, unshift, length; Objects and Date; Math.random, round, floor, ceil, min, max, pow, sqrt; Parameters, return values, value vs reference, scope, use strict
Covers evaluating expressions that use logical and comparison operators, completing and debugging decision statements (if, if else, switch, nested if), and completing and debugging loops (for, for in, while, do while, break, continue).
!=, <, >, <=, >=, !, ==, &&, ||; Single, dual and multiple alternative decisions; Nested if; for, for in, while, do while; break and continue
Covers identifying and constructing the DOM tree, identifying and handling document, form, keyboard, and mouse events, outputting to an HTML document, locating, modifying, and adding HTML elements and attributes, and creating events using event handlers and listeners.
window, document, body and elements; onload, onfocus, onblur, onchange, onkeydown, onkeyup, onkeypress, onclick, onmouseover, onmouseout; document.write, innerHTML, textContent; getElementById, getElementsByTagName, getElementsByClassName, setAttribute, createElement; addEventListener
Covers completing and debugging code that retrieves form input and sets form field values (including prepopulating, masking, and updating values), code that performs input validation (case, string comparisons, NaN, not blank), and describing the form submission process (onsubmit, POST vs GET, submission targets).
Retrieving values from different element types; DOM path to elements; Prepopulating and masking; Case and string comparison validation; NaN and not-blank checks; onsubmit; POST vs GET; Submission targets
Yes — the 10 questions on this page are completely free, with no signup and no payment details needed.
80 questions. The 10 free questions above are a sample of that full set, in the same style and topic balance.
Yes — every question shows the correct answer with an explanation, and Ask AI can explain the concept behind a question in plain words if you want to go deeper.