JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 10
Javascript interview questions part 10
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. What is the code snippet to change the class and let the stylesheet specify the details?
A. timestamp.className = "highlight";
B. timestamp.className = "change";
C. timestamp.className = "specify";
D. timestamp.className = "move";
Show Correct Answer
Correct Answer is :
timestamp.className = "highlight";
2. Cookies were originally designed for __________
A. Client-side programming
B. Server-side programming
C. Both Client-side & Server-side programming
D. Wweb programming
Show Correct Answer
Correct Answer is :
Server-side programming
3. The Cookie manipulation is done using which property?
A. cookie
B. cookies
C. manipulate
D. modify
Show Correct Answer
Correct Answer is :
cookie
4. Which of the following explains Cookies nature?
A. Non Volatile
B. Volatile
C. Intransient
D. Transient
Show Correct Answer
Correct Answer is :
Transient
5. Which attribute is used to extend the lifetime of a cookie?
A. higher-age
B. increase-age
C. max-age
D. lifetime
Show Correct Answer
Correct Answer is :
max-age
6. Which of the following defines the Cookie visibility?
A. document Path
B. localStorage
C. sessionStorage
D. all of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
7. Which of the following can be used to configure the scope of the Cookie visibility?
A. path
B. domain
C. both path and domain
D. server
Show Correct Answer
Correct Answer is :
both path and domain
8. How can you set a Cookie visibility scope to localStorage?
A. /
B. %
C. *
D. //
Show Correct Answer
Correct Answer is :
/
9. Which of the following is a boolean cookie attribute?
A. bool
B. secure
C. lookup
D. domain
Show Correct Answer
Correct Answer is :
secure
10. Which of the following function is used as a consequence of not including semicolons, commas or whitespace in the Cookie value?
A. encodeURIComponent()
B. encodeURI()
C. encodeComponent()
D. encode()
Show Correct Answer
Correct Answer is :
encodeURIComponent()
11. What is the constraint on the data per cookie?
A. 2 KB
B. 1 KB
C. 4 KB
D. 3 KB
Show Correct Answer
Correct Answer is :
4 KB
12. What is necessary when we need to create a new field in craft?
A. Type of the input
B. Type of the output
C. Type of the field
D. Type of argument
Show Correct Answer
Correct Answer is :
Type of the field
13. What does the getInputHtml() return?
A. Input
B. Fieldtype’s input HTML
C. Array
D. Value
Show Correct Answer
Correct Answer is :
Fieldtype’s input HTML
14. How many arguments does the getInputHtml() accept?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
2
15. Which is the method used to process on the input post data before it is saved to the database?
A. prep()
B. settings()
C. defineSettings()
D. prepSettings()
Show Correct Answer
Correct Answer is :
prepSettings()
16. What is the purpose of the parameter $name ?
A. Document Name
B. Input Name
C. Output Name
D. ID
Show Correct Answer
Correct Answer is :
Input Name
17. What does the method defineSettings() return?
A. Array of settings name
B. Array of hash key
C. Array of strings
D. Array of objects
Show Correct Answer
Correct Answer is :
Array of settings name
18. What is the purpose of the parameter $value?
A. Field’s expected value
B. Field’s previous value
C. Field’s current value
D. Field’s probability value
Show Correct Answer
Correct Answer is :
Field’s current value
19. When does the defineContentAttribute() method return a false?
A. Data stored in different table
B. Data stored in its own table
C. Data is not stored at all
D. Data is not obtained
Show Correct Answer
Correct Answer is :
Data stored in its own table
20. How many events does the BaseFieldType provide?
A. 1
B. 2
C. 3
D. 4
Show Correct Answer
Correct Answer is :
3
Similar Interview Questions
Search for latest jobs
Find Jobs