Skip to main content

Posts

Showing posts with the label Interview

AngularJS interview questions - Part 3

Q21. What is Angular Expression? Ans: Angular expressions are JavaScript-like code snippets that are usually placed in bindings such as {{ expression }} . For example, these are valid expressions in Angular: {{ 3+4 }} {{ a+b }} {{ user.name }} {{ items[index] }} Demo Q22. How Angular expressions are different from JavaScript expressions? Ans: Angular expressions are like JavaScript expressions but there are few differences.   Context : In Angular, the expressions are evaluated against a scope object, while the JavaScript expressions are evaluated against the global window object. Forgiving: In Angular expression evaluation is forgiving to null and undefined, while in JavaScript undefined properties generates TypeError or ReferenceError. No Control Flow Statements: Loops, conditionals or exceptions cannot be used in an Angular expression. No Comma And Void Operators: You cannot use , (comma) or void in an Angular exp

AngularJS interview questions - Part 2

Q11. What are templates in AngularJS? Ans: In Angular, templates are written with HTML that contains Angular-specific elements and attributes. Angular combines the template with information from the model and controller to render the dynamic view that a user sees in the browser. In other words, if your HTML page is having some Angular specific elements/attributes it becomes a template in AngularJS. Q12. What are directives in AngularJS? Ans: Directives are markers on a DOM element (such as an attribute, element name, comment or CSS class) that tell AngularJS to attach a specified behavior to that DOM element or even transform the DOM element and its children. When AngularJS finds the directive at the time of rendering then it attaches the requested behavior to the DOM element. Angular comes with a set of these directives built-in, like ngBind, ngModel, and ngClass. Q13. Can we create our own directives? Ans: YES . AngularJS allows us to create our own custom

AngularJS interview questions - Part 1

    Q1. What is AngularJS?   Ans: AngularJS is open source client side MV* (Model – View – Whatever) framework for creating dynamic web applications. It gives life to your static HTML and makes it dynamic with its magic. It extends HTML using directives, expression and data binding techniques to define a powerful HTML template. Q2. Is AngularJS a framework, library or a plugin?   Ans: The suitable answer is that its a framework. As its lightweight so people also get confused between library and framework.AngularJS is open source client side MVC framework for creating dynamic web applications. Q3. Is it same as jQuery?   Ans: NO . jQuery is great library for manipulating the DOM, providing better user experience with animations and effects. You can create website using jQuery but not a web application. jQuery is just a library to play around with HTML, where as AngularJS is a framework to build a dynamic web app as it supports two data binding, MVC, allow testa

Common MySql Interview Questions and Answers For Experienced/Freshers

Some Common MySql Interview Questions and Answers For Experienced + Freshers Which mostly asked my interviewer during interview session, As you know MySql is highly popular relational database and good compatible with open source languages like PHP. Following list of basic Mysql question and answer surely help developers for getting new jobs. MySql Interview Questions and Answers Question: What is MySQL? MySQL is an open source relational database management system (RDBMS) that uses Structured Query Language, the most popular language for adding, accessing, and processing data in a database. Because it is open source, anyone can download MySQL and tailor it to their needs in accordance with the general public license. MySQL is noted mainly for its speed, reliability, and flexibility.   Question: Why MySQL is used? MySQL database server is reliable, fast and very easy to use. This software can be downloaded as freeware and can be downloaded from the internet   Question: In