answers 100 % 2025
To allows users to select one or more text files to be read into web form, which attribute
do you add to the input element?
a. type="text"
b. type="files"
c. type="file"
d. type="reader" - c. type="file"
What event is triggered when the File Reader object completes reading a file with no
errors?
a. load
b. write
c. loadend
d. submit - a. load
What value is returned by the following expression? "In the course of
events".indexOf("course")
a. 5
b. 6
c. 7
d. 8 - a. 5
What is the value of the introTxt variable after the following commands? let introTxt =
"Four Score and Seven"; introText.toLowerCase();
a. "Four Score and Seven"
b. "four Score and seven"
c. "FOUR SCORE AND SEVEN"
d. "fourscoreandseven" - a. "Four Score and Seven"
What substring is generated by applying the following command? "When in the course
of events". slice(5, 11);
a. "in the course"
b. "the course"
c. " in the "
d. "in the" - d. "in the"
What is the regular expression that matches a text string consisting of 6 digits and no
other characters?
a. /\d{6}/
b. /^\d{6}$/
c. /\d{6}/g
d. /^d(6)$/ - b. /^\d{6}$/