Others Interview Questions and Answers (265) - Page 7

Explain the relevance of keywords MVVM in Knockout parlance

Model: It is the storage place of applications data.
View Model: A representation of data and operation to be perform on UI.
View: The interactive UI (say Html or Aspx etc.) that represents the state of the View Model. It closely interacts with the View Model by sending commands whenever an action takes place and updates itself whenever the View Model state changes.
With a simple example explain Knockout

<html>

<head>
<title> Simple hello world example </title>
<script language="javascript" type="text/javascript" src = "knockout-1.2.0.js"></script>
</head>
<body>
<p>Enter a name <input data-bind="value:name"/></p>
<button data-bind="click:buttonCommand">Say hello</button>
<script type="text/javascript">
// View model
var viewModel = {
name : ko.observable(""),
buttonCommand : function() {
alert('Hello ' + this.name() + ', welcome to knockout');
}
};
// This makes Knockout to work
ko.applyBindings(viewModel);
</script>
</body>
</html>


Code Explanation

We have a textbox control as well a button control in the view.

In the View Model, we have two properties namely name and buttonCommand. The buttonCommand is bound to the button control while the name property is to the textbox control. The ko.observable is use to assign the value to the property. The reason is that, the model properties are declared as observables which notifies the subscribers about changes and can automatically detect dependencies. Henceforth, whenever the user enters his/her name in the textbox and clicks on the button, the value that is being assigned to the name property is read and is displayed to the browser.

Also the observable properties need some attention. The values are set or get from the properties through methods. This is to ensure the cross browser compatibility since the getters and setters are not understandable by many browsers.
The data-bind attribute binds the view models properties to the view and the communication sails between these two.

We need to activate Knockout to take effect of the data-bind attribute which is a non native Html attribute. For this reason, we need to call the ko.applyBindings (ViewModel). The first parameter to the applyBindings should be the view model; There is an optional second parameter and if specified should be a DOM node e.g. ko.applyBindings(viewModel, document.getElementById('ElementID')).
Tell some of the features in LINQ for JavaScript(linq.js)

- Implement all .NET 4.0 methods and many extra methods (inspiration from Rx,
Achiral, Haskell, Ruby, etc...)

- Complete lazy evaluation

- Full IntelliSense support for VisualStudio

- Two versions - linq.js and jquery.linq.js (jQuery plugin)

- Support Windows Script Host

- Binding for Reactive Extensions for JavaScript(RxJS) and IntelliSense Generator

- NuGet install support(linq.js, linq.js-jQuery, linq.js-Bindings)
If your application has to share some content to another application which contract should be implemented?

NOTE: This is objective type question, Please click question title for correct answer.
WACK stand for

NOTE: This is objective type question, Please click question title for correct answer.
Which object is used make a asynchronous call in a HTML5 metro style application?

NOTE: This is objective type question, Please click question title for correct answer.
What is the way tofind how a HTML5 metro style application has been activated?

NOTE: This is objective type question, Please click question title for correct answer.
To consume a c# library class in a HTML5 metro style application what should be the file extension to generated ?

NOTE: This is objective type question, Please click question title for correct answer.
Which namespace has the function to implement the open authentication in Windows 8 Metro Style Apps?

NOTE: This is objective type question, Please click question title for correct answer.
What is API provided by WinRT to implement the open authentication ?

NOTE: This is objective type question, Please click question title for correct answer.
Which function can be used to consume a REST service from a HTML5 metro style application?

NOTE: This is objective type question, Please click question title for correct answer.
Which namespace has the functions to manage the notification?

NOTE: This is objective type question, Please click question title for correct answer.
What is Spring ?

Widely famous application development framework for build enterprise level java application.

It helps developers to focus on your business problem rather than the plumbing code that connects components and systems.

It is major cloud platforms with Java support, e.g. on Heroku, Google App Engine, Amazon Elastic Beanstalk and VMware's Cloud Foundry.

The Spring Framework serves as the foundation for the wider family of Spring open source projects like (Spring Security,Spring Data,Spring Web Services, Spring Mobile etc)
What is modern.IE ?

A Web site optimization tool for developer. With the help of this tool, developer may reduce the amount of time and money spend on testing, allowing them to devote more time to creating new content.

this tool tests Web pages for common coding problem

The tool is targeted for testing Internet Explorer , but can also be used to improve the UX on browsers such as Chrome and Firefox.
What do you mean by "Volume" in Big Data Parlance?

If one designs a model with 3 factors it will be obviously be less effective than a model with 300 factors. Here is the role of VOLUME in big data. Huge data are being produced daily but the challenge lies in the fact on how to store and process effectively. The need of the hour was scalable storage and distributed querying. As traditional relational databases were unable to cope with this huge volume of data, massively parallel processing architectures like data warehouses, MPP databases etc provided the technology for structured data and HDFS, Big Table etc for unstructured data.
Found this useful, bookmark this page to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape

 Interview Questions and Answers Categories