JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 44
Javascript interview questions part 44
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What is the function used to extract arguments from the search property of a URL?
A. urlArgs()
B. url()
C. hash()
D. geturl()
Show Correct Answer
Correct Answer is :
urlArgs()
2. The decodeURIComponent() is defined by
A. Server-side JavaScript
B. Client-side JavaScript
C. Both Server-side and Client-side JavaScript
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Client-side JavaScript
3. Which is the method that removes the current document from the browsing history before loading the new document?
A. modify()
B. assign()
C. replace()
D. remove()
Show Correct Answer
Correct Answer is :
replace()
4. Why is the replace() method better than the assign() method?
A. Reliable
B. Highly manageable
C. More efficient
D. Handles unconditional loading
Show Correct Answer
Correct Answer is :
Handles unconditional loading
5. What is the purpose of the assign() method?
A. Only loading
B. Loading of window and display
C. Displays already present window
D. Unloading of window
Show Correct Answer
Correct Answer is :
Loading of window and display
6. .The history property belongs to which object?
A. Element
B. Window
C. History
D. Location
Show Correct Answer
Correct Answer is :
History
7. JavaScript Code can be called by using ___________
A. RMI
B. Triggering Event
C. Preprocessor
D. Function/Method
Show Correct Answer
Correct Answer is :
Function/Method
8. The type of a variable that is volatile is _______________
A. Volatile variable
B. Mutable variable
C. Immutable variable
D. Dynamic variable
Show Correct Answer
Correct Answer is :
Mutable variable
9. A hexadecimal literal begins with __________
A. 0
B. 0x
C. 0X
D. Both 0x and 0X
Show Correct Answer
Correct Answer is :
Both 0x and 0X
10. The generalised syntax for a real number representation is __________
A. [digits][.digits][(E|e)[(+|-)]digits].
B. [digits][+digits][(E|e)[(+|-)]digits].
C. [digits][(E|e)[(+|-)]digits].
D. [.digits][digits][(E|e)[(+|-)]digits].
Show Correct Answer
Correct Answer is :
[digits][.digits][(E|e)[(+|-)]digits].
11. JavaScript _________ when there is an indefinite or an infinite value during an arithmetic computation.
A. Prints an exception error
B. Prints an overflow error
C. Displays “Infinity”
D. Prints the value as such
Show Correct Answer
Correct Answer is :
Displays “Infinity”
12. Which of the following is not considered as an error in JavaScript?
A. Syntax error
B. Missing of semicolons
C. Division by zero
D. Missing of Bracket
Show Correct Answer
Correct Answer is :
Division by zero
13. The escape sequence ‘\f’ stands for _________
A. Floating numbers
B. Representation of functions that returns a value
C. \f is not present in JavaScript
D. Form feed
Show Correct Answer
Correct Answer is :
Form feed
14. The snippet that has to be used to check if “a” is not equal to “null” is _________
A. if(a!=null)
B. if (!a)
C. if(a!null)
D. if(a!==null)
Show Correct Answer
Correct Answer is :
if(a!==null)
15. The statement a===b refers to _________
A. Both a and b are equal in value, type and reference address
B. Both a and b are equal in value
C. Both a and b are equal in value and type
D. There is no such statement
Show Correct Answer
Correct Answer is :
Both a and b are equal in value and type
16. Assume that we have to convert “false” that is a non-string to string. The command that we use is (without invoking the “new” operator)
A. false.toString()
B. String(false)
C. String newvariable=”false”
D. Both false.toString() and String(false)
Show Correct Answer
Correct Answer is :
Both false.toString() and String(false)
17. In which part does the form validation occur?
A. Client
B. Server
C. Both Client and Server
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Server
18. What would happen if the data in the client had been wrong?
A. Sends back the data
B. Waits for correction
C. Sends back the data and Waits for correction
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Sends back the data and Waits for correction
19. What is the purpose of the basic validation?
A. Data correctness
B. Mere data existence
C. Both Data correctness and Mere data existence
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Mere data existence
20. What is the purpose of data format validation?
A. Data correctness
B. Mere data existence
C. Both Data correctness and Mere data existence
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Data correctness
Similar Interview Questions
Search for latest jobs
Find Jobs