MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Javascript
Parsing, Benchmarking And Logging
Quiz 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
How many arguments does the getInputHtml() accept?
1
2
3
4
Q.2
How do you specifically execute a command in JavaScript?
execcommand()
exec(command)
execCommand()
exec(command id)
Q.3
What is necessary when we need to create a new field in craft?
Type of the input
Type of the output
Type of the field
All of the mentioned
Q.4
What is the return data type of the property accept that belongs to the Input element?
integer
string
boolean
float
Q.5
What is the purpose of the property width belonging to the ImageData element?
Number of data
Number of pixels
Number of pixels per row of data
All of the mentioned
Q.6
What is the purpose of the adoptNode() method?
Removes node
Makes it ready for insertion
Removes node and Makes it ready for insertion
None of the mentioned
Q.7
Which is the method used to process on the input’s post data before it is saved to the database?
prep()
settings()
defineSettings()
prepSettings()
Q.8
What is the purpose of the parameter $name ?
Document Name
Input Name
Output Name
ID
Q.9
What does the method defineSettings() return?
Array of settings name
Array of hash key
Array of strings
None of the mentioned
Q.10
Which of the following object is used to post the data to an external process, say savePerfData?
XML
XBT
XHR
None of the mentioned
Q.11
Where does the external process save the result of the test?
Normal file
Flat file
Folder
None of the mentioned
Q.12
Which function is used to start the time logging?
startTimeLogging()
start()
Loggingstart()
startLogging()
Q.13
Which of the following attribute of form tag is not set by using document object in JavaScript?
Target
Enctype
Action
None of the mentioned
Q.14
What type of scooping is present in JavaScript?
Lexical
Literal
Both Lexical and Literal
None of the mentioned
Q.15
How many default number methods are available in JavaScript?
5
6
7
8
Q.16
What is an observer effect?
Observing influences outcome
Observing never influences outcome
Obversing and outcome are independent
None of the mentioned
Q.17
Which of the following are ways to benchmark code?
Timing the code
Calculating the number of operations performed
Timing the code & Calculating the number of operations performed
None of the mentioned
Q.18
How to calculate the run time of a code?
Start time – End time
End time – Start time
Start time/ End time
Start time * End time
Q.19
What will be the radix value of the parseInt() method when the string begins with any other value other than 0x and 0?
8
9
10
11
Q.20
What kind of an exception will be thrown if the string to parse is not valid JSON?
SyntaxError
ArrayOutOfBoundException
Both SyntaxError and ArrayOutOfBoundException
None of the mentioned
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page