Q1. KO performs following operations
- Automatic Refresh
- Two way Binding
- Templating
- All of the above
Q2. On which event bindings in KO fire notification
- Change event
- Update event
- On Any event
- None of the above
Q3. Value of computed observable is determined at
- Time of creation
- Time of update
- Time of DOM loading
- Depends on implementation
Q4. ko.toJSON is used for following purpose
- convert objects that include observables to a JSON string
- to convert string to object
- to consume JSON service
- to consume any service
Q5. How we can add reference of KO in project
- using local reference
- using CDN
- using Nuget package
- all of the above
Q6. On which value of ViewModel property visible binding will be set to block?
- Null
- Undefined
- Zero
- All of the above
Q7. ViewModel can be created as
- Object literal
- Function
- Both
- None of the above
Q8. Click binding can be bind to what kind of property in ViewModel
- Function
- Boolean
- Array
- All of the above
Q9. For what purpose we use foreach binding in KO
- To duplicates section of markup for each entry in array
- To duplicates section of markup for each entry in ViewModel
- To duplicates section of markup for each entry in Model
- None of the above
Q10. The Value binding should be used with
- <input> , <select> , <textarea>
- <span>, <div>
- <radiobutton> <table>
- All of the above combination
Q1. 4
Q2. 1
Q3. 4
Q4. 1
Q5. 4
Q6. 4
Q7. 3
Q8. 1
Q9. 2
Q10. 1
Yes , my answers are below:
1=> 4. All of the above
2=> 1. Change event
3=> 2. Time of Creation
4=> 1. convert objects that include observables to a JSON string
5=> 4. all of the above
6=> None (I think the visiblity would set to block, if value is > 0, true )
7=> 3. Both
8=> 1. Function
9=> 1. To duplicates section of markup for each entry in array
10=> 1. , ,
Please let me know if i am wrong somewhere……