
D4PostTestReview
Presentation
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
TARASE MCGEE
Used 28+ times
FREE Resource
16 Slides • 18 Questions
1
2
3
Multiple Choice
Consider the code pictured (click to enlarge). What output will be displayed in the alert box when this script is run in the browser?
Morgan, Virgilia, Jeiden, Ivy
Morgan, Virgilia, Jeiden, Juanita, Ivy
Morgan, Virgilia, Jeiden, Juanita,
Ivy
4
5
Multiple Choice
Consider the code pictured (click to enlarge). How would find the position of the last letter "y" in given code?
nurseryRhyme.IndexOf("y")
nurseryRhyme.lastIndexOf("y")
CharAtnurseryRhyme(y)
6
7
Multiple Choice
Consider the code pictured (click to enlarge). What output will be displayed in the alert box when this script is run in the browser?
ThisCodeisCodeCrazy
This, Code, is Crazy
This is Crazy Code
Code
8
9
Multiple Choice
Review the code pictured (click to enlarge). Identify the keyword that must be used to display the current date.
myDate
alert
new
Date
10
11
Multiple Choice
Which of the following would you add to a regular expression that allows matches any non-word characters in an email address.
\s
\w
\W
\S
12
13
Multiple Choice
Consider the code pictured (click to enlarge). What will the alert box display when the code is run in the browser?
Just
Do
It
pop
14
15
Multiple Choice
This property can be used with any function or object? It can also be used to create custom methods, objects, and new properties.
custom
predefined
DOM
prototype
16
17
Multiple Choice
An option can only be selected by using the ___________ property on an element from the options array.
selectedIndex
getElementId
option
document
18
Multiple Choice
Click to enlarge image and consider the code. The selectedIndex property specifies or returns an integer value of the array number of the selected option. Which option will be selected if this code is run in the browser?
1st option
2nd option
3rd option
4th option
19
20
Multiple Choice
The __________ method retrieves the corresponding attribute.
setAttribute
getAttribute
21
Multiple Choice
The __________ method is used to dynamically modify the value of an element's attribute.
setAttribute
getAttribute
22
23
24
Multiple Choice
Click to enlarge the code. Which line of code would be substituted in order to debug the error in the code?
if (document.forms[2].checkThis.checked)
if (document.forms[0].checkThis.checked)
25
Multiple Choice
if (document.forms[1].checkThis.checked) refers to which form if used inside a function?
The 4th form
The 3rd form
The 2nd form
1st form
26
Multiple Choice
Review the code (click to enlarge). How do you know there is only one form on the webpage?
There are two forms on the page. One in the <body> </body> tags and one in the function.s
There is only one form in the function. There is only one form shown between the <body> </body> tags
There are no forms on this page. This is why there is an error
27
28
Multiple Choice
The onblur event is the opposite of the onfocus event, therefore the
onchange is the opposite of onfocus
onblur occurs when an element gets focus
onfocus occurs when an element gets focus
29
30
Multiple Choice
This event occurs when the value or state of an element changes.
onchange
onblur
onfocus
31
32
Multiple Choice
Click to enlarge the Code. Review the code. Which attribute is used to change the background color.
value
style
name
type
33
34
Multiple Choice
Consider the code. Which form element is referenced with this code.
3rd form element
2nd form element
1st form element
4th form element
Show answer
Auto Play
Slide 1 / 34
SLIDE
Similar Resources on Wayground
27 questions
Writing a Resume
Presentation
•
9th - 12th Grade
28 questions
Evidence of Evolution
Presentation
•
9th - 12th Grade
26 questions
Introduction to Matter
Presentation
•
9th - 12th Grade
25 questions
Saber y Conocer
Presentation
•
9th - 12th Grade
25 questions
Learning Rational Exponents
Presentation
•
9th - 12th Grade
25 questions
Physical and Chemical Changes Review
Presentation
•
8th Grade
28 questions
Chapter 8 Discussion
Presentation
•
9th - 12th Grade
27 questions
Kitchen Equipment Review
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Factors 4th grade
Quiz
•
4th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
Discover more resources for Computers
45 questions
AP CSP Exam Review
Quiz
•
9th - 12th Grade
50 questions
AP CSP Review
Quiz
•
9th - 12th Grade
17 questions
CSP Robot Questions Review
Quiz
•
10th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
50 questions
IBT Final Exam Review (Spring)
Quiz
•
9th - 12th Grade