JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 33
Javascript interview questions part 33
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What will happen after executing the script?
A. Execute script
B. Layout positioning of DOM elements
C. Paint DOM elements
D. Build DOM nodes in render tree
Show Correct Answer
Correct Answer is :
Build DOM nodes in render tree
2. What would happen if there were no script tags?
A. Build DOM nodes in render tree
B. Layout positioning of DOM elements
C. Paint DOM elements
D. Execute script
Show Correct Answer
Correct Answer is :
Build DOM nodes in render tree
3. What is the function of the XML parser?
A. Converts XML document to XML DOM object
B. Converts XML DOM object to XML document
C. Converts XML DOM object to a comment
D. Compiles the html document
Show Correct Answer
Correct Answer is :
Converts XML document to XML DOM object
4. What is the purpose of the method ActiveXObject()?
A. Used to call automation object
B. Used to reference automation object
C. Used to instantiate automation object
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Used to instantiate automation object
5. What is the purpose of the url json?
A. Belongs to JSON object
B. Reference JSON formatted data
C. Belongs to JSON
D. Compiles json data
Show Correct Answer
Correct Answer is :
Reference JSON formatted data
6. What is the parameter of the method Date.parse()?
A. date
B. string
C. datestring
D. string
Show Correct Answer
Correct Answer is :
datestring
7. Which is the function in JavaScript that will print the current page in JavaScript?
A. print()
B. printcurrent()
C. print(now)
D. print(this)
Show Correct Answer
Correct Answer is :
print()
8. To which of the following object does the print() method belong to?
A. window
B. document
C. hash
D. none of the mentioned
Show Correct Answer
Correct Answer is :
window
9. What will happen if the radix parameter of the parseInt() function is omitted?
A. Runs in assumption
B. Throws exception
C. Aborts
D. Taken as 0
Show Correct Answer
Correct Answer is :
Runs in assumption
10. What will be the radix value if the string begins with 0x?
A. 13
B. 14
C. 15
D. 16
Show Correct Answer
Correct Answer is :
16
11. What is the function of the parseInt() method?
A. Parses a data type and stores in an integer
B. Parses a string and returns an integer
C. Parses an integer and returns a string
D. Parses a string and return an object
Show Correct Answer
Correct Answer is :
Parses a string and returns an integer
12. What does it indicate when the radix value is 16?
A. String begins with 0x
B. String begins with 0
C. String begins with 0P
D. String begins with FF
Show Correct Answer
Correct Answer is :
String begins with 0x
13. What is the purpose of the radix parameter in the parseInt() method?
A. Numeral system not to be used
B. Numeral system to be used
C. Convertion mode
D. Parsing mode
Show Correct Answer
Correct Answer is :
Numeral system to be used
14. What will be the radix value of the parseInt() method when the string begins with 0?
A. 6
B. 7
C. 8
D. 9
Show Correct Answer
Correct Answer is :
8
15. What is the purpose of the method JSON.parse()?
A. Parses a string to integer
B. Parses a string to JSON
C. Parses a string from JSON to JSON2
D. Parses integer to string
Show Correct Answer
Correct Answer is :
Parses a string to JSON
16. What is the return type of the method parseInt()?
A. String
B. Float
C. Integer
D. Date
Show Correct Answer
Correct Answer is :
Integer
17. What are the parameters of the method JSON.parse()?
A. text
B. reviver
C. both text and reviver
D. object
Show Correct Answer
Correct Answer is :
both text and reviver
18. What will be the radix value of the parseInt() method when the string begins with any other value other than 0x and 0?
A. 8
B. 9
C. 10
D. 11
Show Correct Answer
Correct Answer is :
10
19. What kind of an exception will be thrown if the string to parse is not valid JSON?
A. SyntaxError
B. ArrayOutOfBoundException
C. Both SyntaxError and ArrayOutOfBoundException
D. Compilation error
Show Correct Answer
Correct Answer is :
SyntaxError
20. Which of the following is a JavaScript Compressor?
A. Esprima
B. UgilifyJS
C. Acron
D. Compressify
Show Correct Answer
Correct Answer is :
UgilifyJS
Similar Interview Questions
Search for latest jobs
Find Jobs