In JavaScript, a logic error:
JavaScript Cert Prep

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Greg Baker
Used 15+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
is another term for a run-time error
is another term for a syntax error
is harder to troubleshoot because debuggers do not detect it
can be detected and repaired automatically with an advanced debugger
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Watchpoints can assist a developer in troubleshooting
run-time errors
syntax errors
logic errors
browser errors
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of this code?
<script type="text/javascript"> function ClientMessage(){ var message = "Welcome!"; alert(message); } </script>
When you enter the page, the alert box will display
When you enter the page, you will be warned that there is unfinished JavaScript to run.
The page will ignore the function, so a blank page will display on entry and exit.
When you enter the page, there will be a JavaScript error because you cannot load an alert box.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which String object method can be used to test user input?
The link() method
The toLowCase() method
The test() method
The indexOf() method
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The JavaScript toUpperCase() method is an example of:
a calling statement.
an argument.
a user-defined function
a built-in function
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which JavaScript statement should you use to execute a block of code for as long as a certain test condition is true, with the guarantee that the code block will execute at least once?
if
do
if....else
do...while
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following JavaScript code segments correctly accesses the user's entry in a text object named myTextBox in a form named myForm?
var myVar;
myVar = document.myForm.myTextbox.text;
var myVar;
myVar = document.myForm.myTextbox.input;
var myVar;
myVar = document.myForm.myTextbox.value;
var myVar;
myVar = document.myForm.myTextbox.content;
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Introducción a JavaScript I

Quiz
•
9th Grade
10 questions
TLE Q3 M1-5

Quiz
•
10th Grade
10 questions
Evaluasi Javascript 3

Quiz
•
10th Grade
10 questions
JavaScript-01

Quiz
•
12th Grade
13 questions
JavaScript Variables

Quiz
•
3rd Grade - University
11 questions
JavaScript Control Structures Basic

Quiz
•
12th Grade
15 questions
JavaScript and Graphics

Quiz
•
9th - 12th Grade
15 questions
Javascript Quiz 2

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University