<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Sharad</title>
    <description>The latest articles on DEV Community by Sharad (@sharadtricks).</description>
    <link>https://dev.to/sharadtricks</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F70374%2Fb358c3a3-2f3e-49e1-aaf2-efc5bd091976.jpg</url>
      <title>DEV Community: Sharad</title>
      <link>https://dev.to/sharadtricks</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sharadtricks"/>
    <language>en</language>
    <item>
      <title>Launched Interview Mocks App</title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Tue, 07 Apr 2020 19:14:56 +0000</pubDate>
      <link>https://dev.to/sharadtricks/launched-interview-mocks-app-12mo</link>
      <guid>https://dev.to/sharadtricks/launched-interview-mocks-app-12mo</guid>
      <description>&lt;p&gt;&lt;a href="https://play.google.com/store/apps/details?id=com.online.interview.questions&amp;amp;showAllReviews=true"&gt;https://play.google.com/store/apps/details?id=com.online.interview.questions&amp;amp;showAllReviews=true&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hello, Friends Today I have launched a new mobile for job seekers to prepare job interviews by checking some FAQ on various programming languages.&lt;br&gt;
You can review that on Play store&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--s7yy4_mK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5xyv15w2ffshl38kiah4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--s7yy4_mK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5xyv15w2ffshl38kiah4.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I request you to have a look and provide your suggestions and contribute to new questions.&lt;/p&gt;

</description>
      <category>bestinterviewquestionsapp</category>
      <category>onlineinterviewquestions</category>
      <category>jobinterviewquestions</category>
    </item>
    <item>
      <title>Natural Language Processing interview Questions </title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Thu, 24 Jan 2019 11:42:11 +0000</pubDate>
      <link>https://dev.to/sharadtricks/natural-language-processing-interview-questions--3k35</link>
      <guid>https://dev.to/sharadtricks/natural-language-processing-interview-questions--3k35</guid>
      <description>&lt;p&gt;Here I am going to share 10 Important Natural Language Processing(NLP) Interview Questions that can be asked to an NLP engineer.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What is NLP?
&lt;/h2&gt;

&lt;h2&gt;
  
  
  2.Define the NLP Terminology?
&lt;/h2&gt;

&lt;h2&gt;
  
  
  3. What is Lemmatization in NLP?
&lt;/h2&gt;

&lt;h2&gt;
  
  
  4. What is latent semantic indexing and where can it be applied?
&lt;/h2&gt;

&lt;h2&gt;
  
  
  5. What is dependency parsing?
&lt;/h2&gt;

&lt;h2&gt;
  
  
  6. Explain the difference between regular grammar and regular expression.
&lt;/h2&gt;

&lt;h2&gt;
  
  
  7. Explain Named entity recognition (NER)?
&lt;/h2&gt;

&lt;h2&gt;
  
  
  8. What is pragmatic analysis in NLP?
&lt;/h2&gt;

&lt;h2&gt;
  
  
  9. Explain the Masked Language Model?
&lt;/h2&gt;

&lt;h2&gt;
  
  
  10. What is the difference between NLP and NLU?
&lt;/h2&gt;

&lt;p&gt;Good Luck for Interview.Hope you can answer these questions. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.onlineinterviewquestions.com/nlp-interview-questions/"&gt;https://www.onlineinterviewquestions.com/nlp-interview-questions/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>6 MSSQL Interview Questions for Experienced</title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Thu, 25 Oct 2018 17:31:51 +0000</pubDate>
      <link>https://dev.to/sharadtricks/6-mssql-interview-questions-for-experienced-bdm</link>
      <guid>https://dev.to/sharadtricks/6-mssql-interview-questions-for-experienced-bdm</guid>
      <description>&lt;h2&gt;
  
  
  1. How to shrink a database in Mssql?
&lt;/h2&gt;

&lt;p&gt;In MSSQl you can shrink database by using SQL Server Management Studio or Transact-SQL.We have described both method below&lt;/p&gt;

&lt;h3&gt;
  
  
  Using SQL Server Management Studio
&lt;/h3&gt;

&lt;p&gt;In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.&lt;/p&gt;

&lt;p&gt;Expand Databases, and then right-click the database that you want to shrink.&lt;/p&gt;

&lt;p&gt;Point to Tasks, point to Shrink, and then click Database.&lt;/p&gt;

&lt;p&gt;Database&lt;br&gt;
Displays the name of the selected database.&lt;/p&gt;

&lt;p&gt;Current allocated space&lt;br&gt;
Displays the total used and unused space for the selected database.&lt;/p&gt;

&lt;p&gt;Available free space&lt;br&gt;
Displays the sum of free space in the log and data files of the selected database.&lt;/p&gt;

&lt;p&gt;Reorganize files before releasing unused space&lt;br&gt;
Selecting this option is equivalent to executing DBCC SHRINKDATABASE specifying a target percent option. Clearing this option is equivalent to executing DBCC SHRINKDATABASE with TRUNCATEONLY option. By default, this option is not selected when the dialog is opened. If this option is selected, the user must specify a target percent option.&lt;/p&gt;

&lt;p&gt;Maximum free space in files after shrinking&lt;br&gt;
Enter the maximum percentage of free space to be left in the database files after the database has been shrunk. Permissible values are between 0 and 99.&lt;/p&gt;

&lt;p&gt;Click OK.&lt;/p&gt;

&lt;h3&gt;
  
  
  By Using Transact-SQL
&lt;/h3&gt;

&lt;p&gt;Connect to the Database Engine.&lt;/p&gt;

&lt;p&gt;From the Standard bar, click New Query.&lt;/p&gt;

&lt;p&gt;Copy and paste the following example into the query window and click Execute. This quesry uses DBCC SHRINKDATABASE to decreases the size of the data and log files in the UserDB database and to allow for 10 percent free space in the database.&lt;/p&gt;

&lt;p&gt;DBCC SHRINKDATABASE (UserDB, 10);&lt;br&gt;
GO&lt;br&gt;
Source : &lt;a href="https://docs.microsoft.com/en-us/sql/relational-databases/databases/shrink-a-database?view=sql-server-2017"&gt;https://docs.microsoft.com/en-us/sql/relational-databases/databases/shrink-a-database?view=sql-server-2017&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. How to check database version of mssql?
&lt;/h2&gt;

&lt;p&gt;Steps to identify the SQL Server version&lt;/p&gt;

&lt;p&gt;Log in to the Windows Server system hosting your SQL Server database. &lt;br&gt;
Open a command prompt window.&lt;br&gt;
Execute the following command:&lt;br&gt;
SQLCMD -S servername\instancename&lt;br&gt;
where servername is your server name and instancename is the SQL instance name.&lt;br&gt;
Enter select @@version and press .&lt;br&gt;
At the 2 &amp;gt; prompt, type go and press .&lt;br&gt;
The SQL version running on the server displays in the dialog box.&lt;br&gt;
Repeat step 3 through step 5 for each additional instance. &lt;br&gt;
Source: &lt;a href="https://support.solarwinds.com/Success_Center/Orion_Platform/Knowledgebase_Articles/How_to_identify_your_SQL_Server_version_and_edition"&gt;https://support.solarwinds.com/Success_Center/Orion_Platform/Knowledgebase_Articles/How_to_identify_your_SQL_Server_version_and_edition&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. How to escape single quotes and wild cards in mssql?
&lt;/h2&gt;

&lt;p&gt;To escape single quotes ( ' ) in MS SQL all you need to do is add two single quotes instead of one.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;INSERT into name_column ([name]) VALUES ('R"Rams')&lt;/p&gt;

&lt;p&gt;To escape wild cards you can use default square braces "[]" like this- [%] or [_] or define your own escape character by using the keyword ESCAPE at the end of your where clause.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Explain Magic tables in MSSQL?
&lt;/h2&gt;

&lt;p&gt;SQL Server allows you to define a Magic Table. Magic Tables are invisible tables or virtual tables. You can see them only with the help Triggers in SQL Server. Magic Tables are those tables which allow you to hold inserted, deleted and updated values during insert, delete and update DML operations on a table in SQL Server.&lt;/p&gt;

&lt;p&gt;These are the two Magic Tables:&lt;/p&gt;

&lt;p&gt;Inserted&lt;br&gt;
Deleted&lt;br&gt;
Generally Magic Tables are invisible tables, we can only see them with the help of Trigger's in SQL Server.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://www.c-sharpcorner.com/UploadFile/rohatash/magic-tables-in-sql-server-2012/"&gt;https://www.c-sharpcorner.com/UploadFile/rohatash/magic-tables-in-sql-server-2012/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5. List the Logical operators in SQL Server?
&lt;/h2&gt;

&lt;p&gt;The logical operators are basically used to test the truths of conditions.&lt;/p&gt;

&lt;p&gt;ALL – It returns true if all the set of operations are true.&lt;br&gt;
AND – It returns true if the Boolean expressions are true.&lt;br&gt;
IN – It returns true if the operand is equal to one of the lists of expressions.&lt;br&gt;
ANY – It returns true if any of the set of comparisons is true.&lt;br&gt;
BETWEEN – It returns true if the operand is within a range.&lt;br&gt;
EXISTS – It returns true if the subquery contains any rows.&lt;br&gt;
LIKE – It returns true if the operand matches a pattern&lt;br&gt;
NOT – It reverses the values of any Boolean operator.&lt;br&gt;
OR – It returns true if either of the Boolean expression is true.&lt;br&gt;
SOME – It returns true if some of the set of comparisons are true.&lt;br&gt;
Source: &lt;a href="https://www.onlineinterviewquestions.com/mssql-interview-questions/"&gt;https://www.onlineinterviewquestions.com/mssql-interview-questions/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  6. What is default port used by mssql?
&lt;/h2&gt;

&lt;p&gt;The default port of SQL server is 1433.&lt;/p&gt;

</description>
      <category>mssql</category>
      <category>interview</category>
      <category>questions</category>
    </item>
    <item>
      <title>NLP interview questions</title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Sat, 20 Oct 2018 14:39:29 +0000</pubDate>
      <link>https://dev.to/sharadtricks/nlp-interview-questions-2hh7</link>
      <guid>https://dev.to/sharadtricks/nlp-interview-questions-2hh7</guid>
      <description>&lt;p&gt;Below are few Frequently Asked NLP Interview Questions&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What is NLP?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;NLP Stands for 'Natural Language Processing', that deals with the interaction between pc and human languages,&lt;br&gt;
NLP could be a method for computers to investigate, understand, and derive from the human language during a good and helpful method. Using NLP, developers like machine-controlled outline, translation, named entity recognition, relationship extraction, sentiment analysis, speech recognition, and subject segmentation will organize and structure data to perform tasks.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;List some Components of NLP?&lt;br&gt;
Five main Component of Natural Language processing are:&lt;br&gt;
1.Pragmatic Analysis&lt;br&gt;
2.Discourse Integration&lt;br&gt;
3.Semantic Analysis&lt;br&gt;
4.Syntactic Analysis&lt;br&gt;
5.Morphological and Lexical Analysis&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;List some areas of NLP?&lt;br&gt;
List some areas of NLP:-&lt;br&gt;
1.Text Classification and Categorization&lt;br&gt;
2.Named Entity Recognition (NER)&lt;br&gt;
3.Part-of-Speech Tagging&lt;br&gt;
4.Semantic Parsing and Question Answering&lt;br&gt;
5.Paraphrase Detection&lt;br&gt;
6.Language Generation and Multi-document Summarization&lt;br&gt;
7.Machine Translation&lt;br&gt;
8.Speech Recognition&lt;br&gt;
9.Character Recognition&lt;br&gt;
10.Spell Checking&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Define the NLP Terminology?&lt;br&gt;
NLP nomenclature Parsing or Dependency Parsing is that the task of recognizing a sentence and assignment a syntactical structure thereto. the foremost wide used syntactical structure is that the analyze tree which might be generated victimisation some parsing algorithms.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is Lemmatization in NLP?&lt;br&gt;
Lemmatization mostly used for refer to doing things properly with the vocabulary use and morphological analysis ofword,normally aiming to remove inflection ending only and the return base dictionary a word of from,&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is stemming in NLP?&lt;br&gt;
Stemming is important in natural language understanding (NLU) and natural language processing (NLP). ... Stemming is also a part of queries and Internet search engines.Stemming is the process of reducing a word to its word stem that affixes to suffixes and prefixes or to the roots of words known as a lemma.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is dependency parsing?&lt;br&gt;
Dependency parsing is the task of dependency extracting a parse of a sentence which means sentence that represents, Its a structure of grammatical and defines between the relationships "head" words and words,those heads which modify. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is pragmatic analysis in NLP?8&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pragmatic analysis deals with outside word data, which implies data that's external to the documents and/or queries. linguistics analysis that focuses on what was delineated is reinterpreted by what it truly meant, derivation the assorted aspects of language that need world data.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Explain Named entity recognition (NER)?&lt;br&gt;
NER Stands for Named entity recognition. It is a sub-task of information extraction that seeks out and categorizes specified entities in a body or bodies of texts. NER is also known simply as entity identification, entity chunking and entity extraction. NER is used in many fields in artificial intelligence including natural language processing and machine learning.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is NLTK?&lt;br&gt;
The Natural Language Toolkit (NLTK) is a platform used for building Python programs that work with human language data for applying in statistical natural language processing (NLP). It guides the reader through the fundamentals of writing Python programs, working with corpora, categorizing text, analyzing linguistic structure, and much more.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What is the difference between NLP and NLU?&lt;br&gt;
NLP is brief for language process whereas NLU is that the shorthand for language understanding. equally named, the ideas each upset the connection between language (as in, what we tend to as humans speak, not what computers understand) and AI. information science will see a variety of tools, like speech recognition, language recognition, and language generation.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;NLU Stands for language understanding, it's thought-about a subtopic of information science, language understanding could be a important a part of achieving roaring information science. NLU is narrower in purpose, focusing totally on machine reading comprehension: obtaining the pc to grasp what a body of text very means that.&lt;br&gt;
Real-world samples of NLU vary from tiny tasks like supplying short commands supported comprehending text to some tiny degree, like rerouting associate degree email to the proper person supported a basic syntax and decently-sized lexicon.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Explain the Masked Language Model?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Masked language modeling is an example of auto-encoding language modeling (the output is reconstructed from corrupted input) - we typically mask one or more of words in a sentence and have the model predict those masked words given the other words in sentence.By training the model with such an objective, it can essentially learn certain (but not all) statistical properties of word sequences.&lt;br&gt;
Read More from our Website &lt;a href="https://www.interviewqueries.com/nlp-interview-questions/"&gt;NLP Interview Questions&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Why React.js instead of Angularjs?</title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Tue, 09 Oct 2018 09:36:19 +0000</pubDate>
      <link>https://dev.to/sharadtricks/why-reactjs-instead-of-angularjs-4fme</link>
      <guid>https://dev.to/sharadtricks/why-reactjs-instead-of-angularjs-4fme</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fjjrdr0ouqk5wllraoc33.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fjjrdr0ouqk5wllraoc33.png" alt="React is taking over AngularJS"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.onlineinterviewquestions.com/react-js-interview-questions/" rel="noopener noreferrer"&gt;ReactJS&lt;/a&gt; is a JavaScript library and has a view, but lacks model &amp;amp; controller components. React introduced the concept of virtual DOM which is regarded as one of the greatest advantages of React in comparison of AngularJS. It relies on the conventions of a team to keep code written in a specific style, but its simplicity can be very powerful and expressive. &lt;br&gt;
&lt;a href="https://www.onlineinterviewquestions.com/angular-js-interview-questions/" rel="noopener noreferrer"&gt;AngularJS&lt;/a&gt; is a most popular javascript framework; its syntax is very heavy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Services provided by ReactJS are as follows:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;· Components can be easily reused&lt;/p&gt;

&lt;p&gt;· Faster performance when it comes to displaying a huge amount of components.&lt;/p&gt;

&lt;p&gt;· Easy to create user interface test cases&lt;/p&gt;

&lt;p&gt;· Easy to debug because of special chrome extensions&lt;/p&gt;

&lt;p&gt;· SEO friendly&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The following are the difference between ReactJS &amp;amp; AngularJS:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ReactJS&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;React uses one-way data binding and an app architecture called flux controls the flow of data to components through one control point.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;React’s virtual DOM is one of the greatest advantages: It creates a lightweight DOM, with new data new virtual Dom is created &amp;amp; compare with the previous one.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It doesn’t offer division into templates &amp;amp; directives, the template logic should be written in the template itself.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It helps us update the view and with flux can control the application workflow for the user.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It offers freedom, but it costs the additional time spent designing the structure of an application.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It doesn’t offer any concept of the built-in container for dependency injection.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is easy to understand React, with React Native and next.js it is the best choice.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It takes a long time to set up a react project, but then you can start to make an application &amp;amp; it would be easy to add new features.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is bigger than Vue but still smaller then angular.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;AngularJS&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Angular uses two-way data binding, it helps you to write less boilerplate code to create interactions between View and Model components.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Angular Creates a watcher for each binding to track changes in the DOM. Once the view updates it compares the new value with the initial value &amp;amp; runs the $digest loop&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It accesses the DOM only through directives and standard, own directives are stringer way to work with the DOM &amp;amp; to insert Data into Templates.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is based on the three layers MVC &amp;amp; provides many standard services, factories, controllers &amp;amp; directives.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It divides application code into several files and can reuse templates in the different part of websites.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It uses a basic OOP pattern called dependency injection, you can only pass dependence as a parameter in any order in your functions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is not simple; its complexity often causes a lot of confusion.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Being very competitive the amount of unwanted syntax it requires to do simple things puts angular to the end position.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is way bigger, causing long load times &amp;amp; performance issues on mobile.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;React has much more advantages over angular. The most important once are its re-usability, relative stability &amp;amp; high-performance oriented work.&lt;/p&gt;

</description>
      <category>reactjsvsangularjs</category>
    </item>
    <item>
      <title>Entry Level Node.JS Interview Questions</title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Tue, 09 Oct 2018 08:05:03 +0000</pubDate>
      <link>https://dev.to/sharadtricks/entry-level-nodejs-interview-questions-3efe</link>
      <guid>https://dev.to/sharadtricks/entry-level-nodejs-interview-questions-3efe</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fblc2yaf04l98mch15zwt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fblc2yaf04l98mch15zwt.png" alt="NodeJs Questions"&gt;&lt;/a&gt;&lt;br&gt;
Are you a Node Js developer? Looking for some basic entry Level NodeJs Interview Question. In this article, I am going to share 25 &lt;a href="https://www.onlineinterviewquestions.com/node-js-interview-questions/" rel="noopener noreferrer"&gt;NodeJS Basic Interview Questions&lt;/a&gt; by expert members with experience in Node.JS. These Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of Node.JS.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What is node.js?
&lt;/h2&gt;

&lt;p&gt;Node.js is a Server-side scripting which is used to build scalable programs. Its multiple advantages over other server-side languages, the prominent being non-blocking I/O.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Where can we use node.js?
&lt;/h2&gt;

&lt;p&gt;Node.js can be used for the following purposes&lt;br&gt;
a) Web applications ( especially real-time web apps )&lt;br&gt;
b) Network applications&lt;br&gt;
c) Distributed systems&lt;br&gt;
d) General purpose applications&lt;/p&gt;

&lt;h2&gt;
  
  
  3. What does event-driven programming mean?
&lt;/h2&gt;

&lt;p&gt;In computer programming, event-driven programming is a programming paradigm in which the flow of the program is determined by events like messages from other programs or threads. It is an application architecture technique divided into two sections 1) Event Selection 2) Event Handling&lt;/p&gt;

&lt;h2&gt;
  
  
  4. What do you mean by the term I/O ?
&lt;/h2&gt;

&lt;p&gt;I/O is the shorthand for input and output, and it will access anything outside of your application. It will be loaded into the machine memory to run the program, once the application is started.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. How node.js works?
&lt;/h2&gt;

&lt;p&gt;Node.js works on a v8 environment, it is a virtual machine that utilizes JavaScript as its scripting language and achieves high output via non-blocking I/O and single-threaded event loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Why Node.js is single threaded?
&lt;/h2&gt;

&lt;p&gt;For async processing, Node.js was created explicitly as an experiment. It is believed that more performance and scalability can be achieved by doing async processing on a single thread under typical web loads than the typical thread-based implementation.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Explain the steps how "Control Flow" controls the functions calls?
&lt;/h2&gt;

&lt;p&gt;a) Control the order of execution&lt;br&gt;
b) Collect data&lt;br&gt;
c) Limit concurrency&lt;br&gt;
d) Call the next step in the program&lt;/p&gt;

&lt;h2&gt;
  
  
  8. What is control flow function?
&lt;/h2&gt;

&lt;p&gt;A generic piece of code which runs in between several asynchronous function calls is known as control flow function.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. What are the two types of API functions in Node.js?
&lt;/h2&gt;

&lt;p&gt;The two types of API functions in Node.js are&lt;br&gt;
a) Asynchronous, non-blocking functions&lt;br&gt;
b) Synchronous, blocking functions&lt;/p&gt;

&lt;h2&gt;
  
  
  10. What is the advantage of using node.js?
&lt;/h2&gt;

&lt;p&gt;a) It provides an easy way to build scalable network programs&lt;br&gt;
b) Generally fast&lt;br&gt;
c) Great concurrency&lt;br&gt;
d) Asynchronous everything&lt;br&gt;
e) Almost never blocks&lt;/p&gt;

&lt;h2&gt;
  
  
  11. What are the two arguments that async.queue takes?
&lt;/h2&gt;

&lt;p&gt;The two arguments that async.queue takes&lt;br&gt;
a) Task function&lt;br&gt;
b) Concurrency value&lt;/p&gt;

&lt;h2&gt;
  
  
  12. Why node.js is quickly gaining attention from JAVA programmers?
&lt;/h2&gt;

&lt;p&gt;Node.js is quickly gaining attention as it is a loop based server for JavaScript. Node.js gives the user the ability to write the JavaScript on the server, which has access to things like HTTP stack, file I/O, TCP, and databases.&lt;/p&gt;

&lt;h2&gt;
  
  
  13.Using the event loop what are the tasks that should be done asynchronously?
&lt;/h2&gt;

&lt;p&gt;a) I/O operations&lt;br&gt;
b) Heavy computation&lt;br&gt;
c) Anything requiring blocking&lt;/p&gt;

&lt;h2&gt;
  
  
  14. Can you access DOM in node?
&lt;/h2&gt;

&lt;p&gt;No, you cannot access DOM in the Node.&lt;/p&gt;

&lt;h2&gt;
  
  
  15. Does node run on windows?
&lt;/h2&gt;

&lt;p&gt;Yes - it does. Download the MSI installer from &lt;a href="http://nodejs.org/download/" rel="noopener noreferrer"&gt;http://nodejs.org/download/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  16. What is the difference between Node.js vs Ajax?
&lt;/h2&gt;

&lt;p&gt;The difference between Node.js and Ajax is that Ajax (short for Asynchronous Javascript and XML) is a client-side technology, often used for updating the contents of the page without refreshing it. While,Node.js is Server Side Javascript, used for developing server software. Node.js does not execute in the browser but by the server.&lt;/p&gt;

&lt;h2&gt;
  
  
  17. How Node.js overcomes the problem of blocking of I/O operations?
&lt;/h2&gt;

&lt;p&gt;Node.js solves this problem by putting the event-based model at its core, using an event loop instead of threads.&lt;/p&gt;

&lt;h2&gt;
  
  
  18. What are the pros and cons of Node.js?
&lt;/h2&gt;

&lt;p&gt;Pros:&lt;br&gt;
a) If your application does not have any CPU intensive computation, you can build it in the JavaScript top to bottom, even down to the database level if you use JSON storage object DB like MongoDB.&lt;br&gt;
b) Crawlers receive a full-rendered HTML response, which is far more SEO friendly rather than a single page application or a websockets app run on top of Node.js.&lt;br&gt;
Cons:&lt;br&gt;
a) Any intensive CPU computation will block node.js responsiveness, so a threaded platform is a better approach.&lt;br&gt;
b) Using a relational database with Node.js is considered less favorable&lt;/p&gt;

&lt;h2&gt;
  
  
  19. Mention the steps by which you can async in Node.js?
&lt;/h2&gt;

&lt;p&gt;By following steps you can async Node.js&lt;br&gt;
a) First class functions&lt;br&gt;
b) Function composition&lt;br&gt;
c) Callback Counters&lt;br&gt;
d) Event loops&lt;/p&gt;

&lt;h2&gt;
  
  
  20. What is an event loop in Node.js?
&lt;/h2&gt;

&lt;p&gt;To process and handle external events and to convert them into callback invocations an event loop is used. So, at I/O calls, node.js can switch from one request to another.&lt;/p&gt;

&lt;h2&gt;
  
  
  21. What is 'Callback' in node.js?
&lt;/h2&gt;

&lt;p&gt;The callback function is used in node.js to deal with multiple requests made to the server. Like if you have a large file which is going to take a long time for a server to read and if you don't want a server to get engage in reading that large file while dealing with other requests, call back function is used. Call back function allows the server to deal with pending request first and call a function when it is finished.&lt;/p&gt;

&lt;h2&gt;
  
  
  22. Mention the framework most commonly used in node.js?
&lt;/h2&gt;

&lt;p&gt;"Express" is the most common framework used in node.js&lt;/p&gt;

&lt;h2&gt;
  
  
  23. What is the command that is used in node.js to import external libraries?
&lt;/h2&gt;

&lt;p&gt;Command "require" is used for importing external libraries, for example, "var http=require ("http")". This will load the http library and the single exported object through the http variable.&lt;/p&gt;

&lt;h2&gt;
  
  
  24. What does it mean "non-blocking" in node.js?
&lt;/h2&gt;

&lt;p&gt;In node.js "non-blocking" means that its IO is non-blocking. Node uses "libuv" to handle its IO in a platform-agnostic way. On windows, it uses completion ports for Unix it uses epoll or kqueue etc. So, it makes a non-blocking request and upon a request, it queues it within the event loop which calls the JavaScript 'callback' on the main JavaScript thread.&lt;/p&gt;

&lt;h2&gt;
  
  
  25. What are the Challenges with Node.js?
&lt;/h2&gt;

&lt;p&gt;Emphasizing on the technical side, it's a bit of challenge in Node.js to have one process with one thread to scale up on multi-core server.&lt;/p&gt;

&lt;p&gt;We have given the Basic 25 Important interview questions with answers on Node JS. Looking forward to hearing from you if you have any other questions or require any further assistance.&lt;/p&gt;

</description>
      <category>nodedevelopers</category>
      <category>interviewquestions</category>
      <category>entrylevel</category>
    </item>
    <item>
      <title>Looking for Contributors for Interview website </title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Mon, 08 Oct 2018 12:12:37 +0000</pubDate>
      <link>https://dev.to/sharadtricks/looking-for-contributors-for-interview-website--3907</link>
      <guid>https://dev.to/sharadtricks/looking-for-contributors-for-interview-website--3907</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fywm5zru456bh8ae2ylch.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fywm5zru456bh8ae2ylch.jpg" alt="Contributers required for https://www.onlineinterviewquestions.com/"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hello Friends My name Sharad, I am the developer and owner of website  &lt;a href="https://www.onlineinterviewquestions.com/" rel="noopener noreferrer"&gt;https://www.onlineinterviewquestions.com/&lt;/a&gt;. I am running this website since 14 months alone. Now looking for developers and writers who can write some articles on this website with me.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Cloud Computing Interview Questions and Answers</title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Sun, 07 Oct 2018 18:37:50 +0000</pubDate>
      <link>https://dev.to/sharadtricks/cloud-computing-interview-questions-and-answers-4go</link>
      <guid>https://dev.to/sharadtricks/cloud-computing-interview-questions-and-answers-4go</guid>
      <description>

&lt;h2&gt;1. What is cloud computing?&lt;/h2&gt;

&lt;p&gt;Cloud computing is an internet based new age computer technology. It is the next stage technology that uses the clouds to provide the services whenever and wherever the user need it.It provides a method to access several servers world wide.&lt;/p&gt;

&lt;h2&gt;2. How user can gain from utility computing?&lt;/h2&gt;

&lt;p&gt;Utility computing allows the user to pay only for what they are using. It is a plug-in managed by an organization which decides what type of services has to be deployed from the cloud.&lt;/p&gt;

&lt;p&gt;Most organizations prefer hybrid strategy.&lt;/p&gt;

&lt;h2&gt;3. What is the difference in cloud computing and computing for mobiles?&lt;/h2&gt;

&lt;p&gt;Mobile computing uses the same concept as cloud computing.   Cloud computing becomes active with the data with the help of internet rather than individual device. It provides users with the data which they have to retrieve on demand.  In mobile, the applications runs on the remote server and gives user the access for storage and manage.&lt;/p&gt;

&lt;h2&gt;4.  Explain different models for deployment in cloud computing?&lt;/h2&gt;

&lt;p&gt;The different deployment models in cloud computing are&lt;/p&gt;

&lt;p&gt;a)      Private Cloud&lt;/p&gt;

&lt;p&gt;b)      Public Cloud&lt;/p&gt;

&lt;p&gt;c)       Community Cloud&lt;/p&gt;

&lt;p&gt;d)      Hybrid Cloud&lt;/p&gt;

&lt;h2&gt;5. Mention platforms which are used for large scale cloud computing?&lt;/h2&gt;

&lt;p&gt;The platforms that are used for large scale cloud computing are&lt;/p&gt;

&lt;p&gt;a)      Apache Hadoop&lt;/p&gt;

&lt;p&gt;b)      MapReduce&lt;/p&gt;

&lt;h2&gt;6. What are the advantages of using cloud computing?&lt;/h2&gt;

&lt;p&gt;The advantages of using cloud computing are&lt;/p&gt;

&lt;p&gt;a)      Data backup and storage of data&lt;/p&gt;

&lt;p&gt;b)      Powerful server capabilities&lt;/p&gt;

&lt;p&gt;c)       SaaS ( Software as a service)&lt;/p&gt;

&lt;p&gt;d)      Information technology sandboxing capabilities&lt;/p&gt;

&lt;p&gt;e)      Increase in productivity&lt;/p&gt;

&lt;p&gt;f)       Cost effective &amp;amp; Time saving&lt;/p&gt;

&lt;h2&gt;7. What are system integrators in Cloud Computing?&lt;/h2&gt;

&lt;p&gt;In Cloud Computing, systems integrator provides the strategy of the complicated process used to design a cloud platform. Integrator allows to create more accurate hybrid and  private cloud network, as integrators have all the knowledge about the data center creation.&lt;/p&gt;

&lt;h2&gt;8. List out different layers which define cloud architecture?&lt;/h2&gt;

&lt;p&gt;The different layers used by cloud architecture are&lt;/p&gt;

&lt;p&gt;a)      CLC or Cloud Controller&lt;/p&gt;

&lt;p&gt;b)      Walrus&lt;/p&gt;

&lt;p&gt;c)       Cluster Controller&lt;/p&gt;

&lt;p&gt;d)      SC or Storage  Controller&lt;/p&gt;

&lt;p&gt;e)      NC or Node Controller&lt;/p&gt;

&lt;p&gt;ALSO READ &lt;a href="https://www.onlineinterviewquestions.com/amazon/"&gt;100+ AMAZON INTERVIEW QUESTIONS&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;9. What are the security aspects provided with cloud?&lt;/h2&gt;

&lt;p&gt;a)    Identity management: It authorizes the application services&lt;/p&gt;

&lt;p&gt;b)    Access control: permission has to be provided to the users so that they can control the access of another user who is entering into the cloud environment.&lt;/p&gt;

&lt;p&gt;c)   Authentication and Authorization: Allows only the authorized and authenticated user only to access the data and applications&lt;/p&gt;

&lt;h2&gt;10.  For a transport in cloud how you can secure your data?&lt;/h2&gt;

&lt;p&gt;To secure your data while transporting them from one place to another, check that there is no leak with the encryption key implemented with the data you are sending.&lt;/p&gt;

&lt;h2&gt;11. What are the security laws which are implemented to secure data in a cloud ?&lt;/h2&gt;

&lt;p&gt;The security laws which are implemented to secure data in cloud are&lt;/p&gt;

&lt;p&gt;a)      Processing: Control the data that is being processed correctly and completely in an application&lt;/p&gt;

&lt;p&gt;b)      File: It manages and control the data being manipulated in any of the file&lt;/p&gt;

&lt;p&gt;c)       Output reconciliation:  It controls the data which has to be reconciled from input to output&lt;/p&gt;

&lt;p&gt;d)      Input Validation: Control the input data&lt;/p&gt;

&lt;p&gt;e)      Security and Backup: It provides security and backup it also controls the security breaches logs&lt;/p&gt;

&lt;h2&gt;12. Mention some open source cloud computing platform databases?&lt;/h2&gt;

&lt;p&gt;The open source cloud computing platform databases are&lt;/p&gt;

&lt;p&gt;a)      MongoDB&lt;/p&gt;

&lt;p&gt;b)      CouchDB&lt;/p&gt;

&lt;p&gt;c)       LucidDB&lt;/p&gt;

&lt;h2&gt;13. Before going for cloud computing platform what are the essential things to be taken in concern by users?&lt;/h2&gt;

&lt;p&gt;a)      Compliance&lt;/p&gt;

&lt;p&gt;b)      Loss of data&lt;/p&gt;

&lt;p&gt;c)       Data storage&lt;/p&gt;

&lt;p&gt;d)      Business continuity&lt;/p&gt;

&lt;p&gt;e)      Uptime&lt;/p&gt;

&lt;p&gt;f)       Data integrity in cloud computing&lt;/p&gt;

&lt;h2&gt;14. What is the requirement of virtualization platform in implementing cloud?&lt;/h2&gt;

&lt;p&gt;The requirement of virtualization platform in implementing cloud is to&lt;/p&gt;

&lt;p&gt;a)      Manage the service level policies&lt;/p&gt;

&lt;p&gt;b)      Cloud Operating System&lt;/p&gt;

&lt;p&gt;c)       Virtualization platforms helps to keep the backend level and user level concepts different from each other&lt;/p&gt;

&lt;h2&gt;15. Explain what is the use of “EUCALYPTUS” in cloud computing?&lt;/h2&gt;

&lt;p&gt;“Eucalyptus” is an open source software infrastructure in cloud computing, which is used to implement clusters in cloud computing platform. It is used to build public, hybrid and private clouds. It has the ability to produce your own data center into a private cloud and allows you to use its functionality to many other organizations.&lt;/p&gt;

&lt;h2&gt;16.  What are the different data centers deployed for cloud computing?&lt;/h2&gt;

&lt;p&gt;Cloud computing consists of different datacenters like&lt;/p&gt;

&lt;p&gt;a)      Containerized Datacenters&lt;/p&gt;

&lt;p&gt;b)      Low Density Datacenters&lt;/p&gt;

&lt;h2&gt;17. What is the use of API’s in cloud services?&lt;/h2&gt;

&lt;p&gt;API’s ( Application Programming Interface) is very useful in cloud platforms&lt;/p&gt;

&lt;p&gt;a)      It eliminates the need to write the fully fledged programs&lt;/p&gt;

&lt;p&gt;b)      It provides the instructions to make communication between one or more applications&lt;/p&gt;

&lt;p&gt;c)       It allows easy creation of applications and link the cloud services with other systems&lt;/p&gt;

&lt;h2&gt;18. Explain what are the different modes of software as a service (SaaS)?&lt;/h2&gt;

&lt;p&gt;a)      Simple multi-tenancy :  In this each user has independent resources and are different from other users, it is an efficient mode.&lt;/p&gt;

&lt;p&gt;b)      Fine grain multi-tenancy:  In this type, the resources can be shared by many but the functionality remains the same.&lt;/p&gt;

&lt;h2&gt;19. Explain the difference between cloud and traditional datacenters?&lt;/h2&gt;

&lt;p&gt;a)      The cost of the traditional data center is higher due to heating  and hardware/software issues&lt;/p&gt;

&lt;p&gt;b)      Cloud gets scaled when the demand increases.  Majority of the expenses are spent on the maintenance of the data centers,  while that is not the case with cloud computing&lt;/p&gt;

&lt;h2&gt;20. Mention the name of some large cloud providers and databases?&lt;/h2&gt;

&lt;p&gt;a)      Google bigtable&lt;/p&gt;

&lt;p&gt;b)      Amazon simpleDB&lt;/p&gt;

&lt;p&gt;c)       Cloud based SQL&lt;/p&gt;

&lt;p&gt;Here we have given 20 basis Cloud Computing interview questions with answers. If you are looking for more interview questions Please visit &lt;a href="https://www.onlineinterviewquestions.com/"&gt;https://www.onlineinterviewquestions.com/&lt;/a&gt;&lt;/p&gt;


</description>
      <category>cloudcomputing</category>
      <category>aws</category>
      <category>interviewquestions</category>
    </item>
    <item>
      <title>10 Commonly asked Javascript Interview Questions 2018</title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Fri, 05 Oct 2018 11:20:52 +0000</pubDate>
      <link>https://dev.to/sharadtricks/10-commonly-asked-javascript-interview-questions-2018-3g36</link>
      <guid>https://dev.to/sharadtricks/10-commonly-asked-javascript-interview-questions-2018-3g36</guid>
      <description>&lt;p&gt;Javascript is one of most popular programming language for the web. It is widely used for creating interactive client-side web applications and games. Javascript can be also used as server-side programming language. It is dynamic, weakly typed, prototype-based and multi-paradigm high-level programming language.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fsae8qu6pp3zj05mgqkfy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fsae8qu6pp3zj05mgqkfy.png" alt="Common Javascript Interview Questions"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we have listed 10 Common Javascript Interview Questions with their answers&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What will be the output of variable x,y,z?
&lt;/h2&gt;

&lt;p&gt;var x=10;&lt;br&gt;
var y=x++;&lt;br&gt;
var z=++x;&lt;br&gt;
console.log(x,y,z)&lt;br&gt;
Ans: It will log 12,10,12&lt;/p&gt;

&lt;h2&gt;
  
  
  2. What will be output of 0==-0
&lt;/h2&gt;

&lt;p&gt;Answer: output of 0==-0 is true&lt;/p&gt;

&lt;h2&gt;
  
  
  3. What is the output of below code
&lt;/h2&gt;

&lt;p&gt;function xyz () {&lt;br&gt;
    var abc = "hello Js";&lt;br&gt;
    function abc () {&lt;br&gt;
        return 54;&lt;br&gt;
    }&lt;br&gt;
    return abc;&lt;br&gt;
}&lt;br&gt;
console.log(xyz())&lt;br&gt;
Answer: The above code will output hello Js.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. How to create an object in JavaScript?
&lt;/h2&gt;

&lt;p&gt;Ans: Creating an object In Javascript var object ={ name: "obj", age: 10 };&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Explain prototypal Inheritance in JavaScript?
&lt;/h2&gt;

&lt;p&gt;In JS every object has a property called a prototype, where we can add methods to it and when you create another object from these the newly created object will automatically inherit its parent’s property.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Explain callback in JavaScript?
&lt;/h2&gt;

&lt;p&gt;A callback is a plain JavaScript function passed to some method as an argument or option. Some callbacks are just events, called to give the user a chance to react when a certain state is triggered.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. How would you empty the below array in JavaScript?
&lt;/h2&gt;

&lt;p&gt;Var emptyArray = ['this', 'array', 'is', 'full'];&lt;br&gt;
Ans: Use below line of code to empty an array in JavaScript&lt;/p&gt;

&lt;p&gt;emptyArray.length = 0;&lt;/p&gt;

&lt;p&gt;emptyArray.splice(0, emptyArray.length);&lt;/p&gt;

&lt;p&gt;while(emptyArray.length){&lt;br&gt;
    emptyArray.pop();&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;emptyArray = []&lt;/p&gt;

&lt;h2&gt;
  
  
  8. What will be output of below code?
&lt;/h2&gt;

&lt;p&gt;var lorem = { ipsum : 1};&lt;br&gt;
var output = (function(){&lt;br&gt;
    delete lorem.ipsum;&lt;br&gt;
    return lorem.ipsum;&lt;br&gt;
  })();&lt;/p&gt;

&lt;p&gt;console.log(output);&lt;br&gt;
Ans: The output would be undefined because the delete operator removed the property "ipsum" from the object "lorem" before the object was returned. When you reference a deleted property, the result is undefined.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. What is output of 5 + 4 + "3"?
&lt;/h2&gt;

&lt;p&gt;Since 3 is a string then the output of the above code will 93.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. What is the real name of Javascript?
&lt;/h2&gt;

&lt;p&gt;The original name of Javascript is Mocha by the Marc Addressed. He was the founder of Netscape.&lt;/p&gt;

&lt;p&gt;Thanks for reading and good luck on your interview! Check more &lt;a href="https://www.onlineinterviewquestions.com/advanced-javascript-interview-questions/" rel="noopener noreferrer"&gt;JavaScript Interview Questions &amp;amp; Answers&lt;/a&gt; on &lt;a href="https://www.onlineinterviewquestions.com/" rel="noopener noreferrer"&gt;onlineinterviewquestions.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascriptquestions</category>
    </item>
    <item>
      <title>5 Best Angular2 Admin Templates</title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Wed, 04 Jul 2018 17:35:24 +0000</pubDate>
      <link>https://dev.to/sharadtricks/5-best-angular2-admin-templates-5co8</link>
      <guid>https://dev.to/sharadtricks/5-best-angular2-admin-templates-5co8</guid>
      <description>&lt;h3&gt;5 free Angular 2 Responsible Admin Templates.&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.onlineinterviewquestions.com/angular-js-interview-questions/" rel="noopener noreferrer"&gt;Angular Js&lt;/a&gt; is one the most popular front end frameworks for creating single page web apps and reactive websites. Here in this article we are going discuss 10 Best free Admin templates for &lt;a href="https://www.onlineinterviewquestions.com/angular2-interview-questions/" rel="noopener noreferrer"&gt;Angular2&lt;/a&gt; .&lt;/p&gt;

&lt;h3&gt;1. Paper Kit 2 Angular&lt;/h3&gt;

&lt;p&gt;Paper Kit 2 is a free Bootstrap 4 based UI Kit for AngularJS. It comes with pale colors, beautiful typography built and supports for CLI versions of Angular 2 and 4. All components of Paper Kit are responsive and can be adjust automatically on any Device screen&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2AwnN0FTz3AD96MKLgXxYrhQ.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2AwnN0FTz3AD96MKLgXxYrhQ.jpeg"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;Material Dashboard for Angular 2&lt;/h3&gt;

&lt;p&gt;Material Bootstrap Admin template comes with a fresh, new design it is inspired by Google’s Material Design. It is a free to use.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2APNYPZnoyWe9XQFHX-Mv3Tg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2APNYPZnoyWe9XQFHX-Mv3Tg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;SemanticUI Admin Dashboard Template&lt;/h3&gt;

&lt;p&gt;SemanticUI admin dashboard template comes with AngularJs boilerplate. It is great for start of any type of web application that required user dashboard, admin dashboard, services dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2Amor1Ytn_9I_ZBvJvX8fxqQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2Amor1Ytn_9I_ZBvJvX8fxqQ.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;Versatile Dashboard&lt;/h3&gt;

&lt;p&gt;This theme is a Boilerplate for Animated AngularJS Starter Theme. It is written with Bootstrap LESS.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2APag7EcooMjriVTPvHV6FcQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2APag7EcooMjriVTPvHV6FcQ.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;ng2-admin&lt;/h3&gt;

&lt;p&gt;ng2-admin is an Admin panel framework based on Angular 2, Bootstrap 4 and Webpack.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2AtBurkfknIQHEJ86jN89L6g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F800%2F1%2AtBurkfknIQHEJ86jN89L6g.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Article Source: &lt;a href="http://blog.creative-tim.com/web-design/angular2-admin-templates/" rel="nofollow noopener noreferrer"&gt;http://blog.creative-tim.com/web-design/angular2-admin-templates/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also Published at &lt;a href="https://www.onlineinterviewquestions.com/" rel="nofollow noopener noreferrer"&gt;https://www.onlineinterviewquestions.com/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>10 Frequently Asked Angularjs Interview Questions </title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Wed, 20 Jun 2018 16:18:34 +0000</pubDate>
      <link>https://dev.to/sharadtricks/10-frequently-asked-angularjs-interview-questions--2i8j</link>
      <guid>https://dev.to/sharadtricks/10-frequently-asked-angularjs-interview-questions--2i8j</guid>
      <description>

&lt;p&gt;These days AngularJS is one of those hot topics everyone wants to learn it because AngularJs developers are getting more paid by companies. In this article, I going to share 10 Frequently Asked Angularjs Interview Questions and answers&lt;/p&gt;

&lt;h2&gt;1. What are expressions in Angular?&lt;/h2&gt;

&lt;p&gt;AngularJs Expressions are used to bind application data to html. Expressions are written inside double braces like . Expressions behave in the same way as ng-bind directives. AngularJS application expressions are pure javascript expressions and output the data where they are used.&lt;/p&gt;

&lt;h2&gt;2. Do I need Jquery for Angular?&lt;/h2&gt;

&lt;p&gt;No, you do not need Jquery for Angular. It’s independent of Jquery.&lt;/p&gt;

&lt;h2&gt;3. What are advantages of MVVM over MVC?&lt;/h2&gt;

&lt;p&gt;Below are few advantages of MVVM over MVC:-&lt;br&gt;
1.Increases the “Blendability” of your views (ability to use Expression Blend to design views)&lt;br&gt;
2.“Lookless” view logic&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;No duplicated code to update views&lt;/li&gt;
&lt;li&gt;Testability &lt;/li&gt;
&lt;li&gt;Designer-Developer Workflow&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;4. Explain how $scope.$apply() works&lt;/h2&gt;

&lt;p&gt;$scope.$apply re-evaluates all the declared ng-models and applies the change to any that have been altered (i.e. assigned to a new value)&lt;br&gt;
Explanation: $scope.$apply() is one of the core angular functions that should never be used explicitly, it forces the angular engine to run on all the watched variables and all external variables and apply the changes on their values&lt;/p&gt;

&lt;h2&gt;5. What is an interceptor? What are common uses of it?&lt;/h2&gt;

&lt;p&gt;An interceptor is a middleware code where all the $http requests go through.&lt;/p&gt;

&lt;p&gt;The interceptor is a factory that are registered in $httpProvider. You have 2 types of requests that go through the interceptor, request and response (with requestError and responseErrorrespectively). This piece of code is very useful for error handling, authentication or middleware in all the requests/responses.&lt;/p&gt;

&lt;h2&gt;6. Mention what are the advantages of using AngularJS?&lt;/h2&gt;

&lt;p&gt;There are several advantages of AngularJS, we have listed some below:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;AngularJS supports MVC pattern&lt;/li&gt;
&lt;li&gt;Can do two ways data binding using AngularJS&lt;/li&gt;
&lt;li&gt;It has pre-defined form validations&lt;/li&gt;
&lt;li&gt;It supports both client-server communication&lt;/li&gt;
&lt;li&gt;It supports animations&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;7. What is data binding? Explain two-way data binding in AngularJs?&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Data binding means automatic synchronous of data between model and view components.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;AngularJS supports two-way data binding, it treats the model as a single source of truth and view is a projection of model. It means when we change model view gets reflect and vice-versa.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In traditional concept, HTML pages are decided by interacting with server-side program and as we using single page application, pages are decided without any server-side interaction. So required part of the page will be updated.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;8. Distinguish between AngularJS expression &amp;amp; JavaScript expression?&lt;/h2&gt;

&lt;p&gt;AngularJS expression:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Expressions are evaluated against $scope.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Expression evaluation is forgiving to null and undefined.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In AngularJS, loops, conditions and exceptions are not required to write.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;AngularJS supports filters to format data before displaying.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;JavaScript Expression:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Expressions are evaluated against Window object.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Undefined properties generates Type Error or Reference Error&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In AngularJS, loops, conditions and exceptions are required to write.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;No such a feature.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;9. What is a model in AngularJs?&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Model is JavaScript object and it binds view data into the model through the directives such as text field, text area and selects etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It provides validation behaviors by required, number, URL, email, min and max length etc.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;10. Distinguish between factory, service &amp;amp; provider?&lt;/h2&gt;

&lt;p&gt;Factory:&lt;/p&gt;

&lt;p&gt;When you’re using a Factory you create an object, add properties to it, then return that same object. When you pass this service into your controller, those properties on the object will now be available in that controller through your factory.&lt;/p&gt;

&lt;p&gt;Service:&lt;/p&gt;

&lt;p&gt;When you’re using Service, it’s instantiated with the ‘new’ keyword. Because of that, you’ll add properties to ‘this’ and the service will return ‘this’. When you pass the service into your controller, those properties on ‘this’ will now be available on that controller through your service.&lt;/p&gt;

&lt;p&gt;Providers:&lt;/p&gt;

&lt;p&gt;Providers are the only service you can pass into your .config() function. Use a provider when you want to provide module-wide configuration for your service object before making it available.&lt;/p&gt;

&lt;p&gt;Read More from &lt;a href="https://www.onlineinterviewquestions.com/angular-js-interview-questions/"&gt;https://www.onlineinterviewquestions.com/angular-js-interview-questions/&lt;/a&gt;&lt;/p&gt;


</description>
      <category>angular</category>
      <category>interview</category>
      <category>developers</category>
      <category>angularjobsquestions</category>
    </item>
    <item>
      <title>Laravel Interview Questions</title>
      <dc:creator>Sharad</dc:creator>
      <pubDate>Sun, 17 Jun 2018 15:43:13 +0000</pubDate>
      <link>https://dev.to/sharadtricks/laravel-interview-questions-2b8n</link>
      <guid>https://dev.to/sharadtricks/laravel-interview-questions-2b8n</guid>
      <description>

&lt;p&gt;Laravel is free open source “PHP framework” based on MVC design pattern.&lt;br&gt;
It is created by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and quickly.&lt;br&gt;
Many companies looking for developers who have knowledge of Laravel Framework. In this article, you can read few best interview Questions on Laravel Framework.&lt;/p&gt;

&lt;h2&gt;Top 30 Laravel interview questions and answers.&lt;/h2&gt;

&lt;p&gt;Below is the list of latest Laravel interview questions and answers.&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/what-is-laravel/"&gt;1. What is Laravel?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Laravel is free open source “PHP framework” based on MVC design pattern.&lt;br&gt;
It is created by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and quickly.&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/pros-cons-using-laravel-framework/"&gt;2. What are pros and cons of using Laravel Framework?&lt;/a&gt;&lt;/p&gt;

&lt;h5&gt;Pros of using Laravel Framework&lt;/h5&gt;

&lt;ol&gt;
    &lt;li&gt;Laravel framework has in-built lightweight blade template engine to speed up compiling task and create layouts with dynamic content easily.&lt;/li&gt;
    &lt;li&gt;Hassles code reusability.&lt;/li&gt;
    &lt;li&gt;Eloquent ORM with PHP active record implementation&lt;/li&gt;
    &lt;li&gt;Built in command line tool "Artisan" for creating a code skeleton , database structure and build their migration&lt;/li&gt;
&lt;/ol&gt;

&lt;h5&gt;Cons of using laravel Framework&lt;/h5&gt;

&lt;ol&gt;
    &lt;li&gt;Development process requires you to work with standards and should have real understanding of programming&lt;/li&gt;
    &lt;li&gt;Laravel is new framework and composer is not so strong in compare to &lt;strong&gt;npm (for node.js)&lt;/strong&gt;, &lt;strong&gt;ruby gems&lt;/strong&gt; and&lt;strong&gt; python pip&lt;/strong&gt;.&lt;/li&gt;
    &lt;li&gt;Development in laravel is not so fast in compare to ruby on rails.&lt;/li&gt;
    &lt;li&gt;Laravel is lightweight so it has less inbuilt support in compare to django and rails. But this problem can be solved by integrating third party tools, but for large and very custom websites it may be a tedious task&lt;/li&gt;
&lt;/ol&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/explain-events-laravel/"&gt;3. Explain Events in laravel ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;An event is an action or occurrence recognized by a program that may be handled by the program or code. Laravel events provides a simple observer implementation, that allowing you to subscribe and listen for various events/actions that occur in your application.&lt;/p&gt;

&lt;p&gt;All Event classes are generally stored in the app/Events directory, while their listeners are stored in app/Listeners of your application.&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/explain-validations-laravel/"&gt;4. Explain validations in laravel?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In Programming validations are a handy way to ensure that your data is always in a clean and expected format before it gets into your database. Laravel provides several different ways to validate your application incoming data.By default Laravel’s base controller class uses a &lt;strong&gt;ValidatesRequests&lt;/strong&gt; &lt;strong&gt;trait&lt;/strong&gt; which provides a convenient method to validate all incoming HTTP requests coming from client.You can also validate data in laravel by creating Form Request.&lt;br&gt;
&lt;a href="https://laravel.com/docs/5.4/validation"&gt;click here&lt;/a&gt; read more about data validations in Laravel.&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/install-laravel-via-composer/"&gt;5. How to install laravel via composer ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can install Laravel via composer by running below command.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
composer create-project laravel/laravel your-project-name version

Also Read &lt;strong&gt;&lt;a href="https://www.onlineinterviewquestions.com/blog/core-php-interview-questions-2018/"&gt;Core PHP Interview Questions and Answers for 2018&lt;/a&gt;&lt;/strong&gt;&lt;/code&gt;&lt;/pre&gt;


&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/list-features-laravel-5-0/"&gt;6. List some features of laravel 5.0 ?&lt;/a&gt;&lt;/p&gt;


&lt;ul&gt;
    &lt;li&gt;Inbuilt CRSF (&lt;a href="https://en.wikipedia.org/wiki/Cross-site_request_forgery"&gt;cross-site request forgery&lt;/a&gt; ) Protection.&lt;/li&gt;
    &lt;li&gt;Inbuilt paginations&lt;/li&gt;
    &lt;li&gt;&lt;a href="https://www.laravelinterviewquestions.com/2017/03/what-is-reverse-routing-in-laravel.html"&gt;Reverse Routing&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;Query builder&lt;/li&gt;
    &lt;li&gt;Route caching&lt;/li&gt;
    &lt;li&gt;Database Migration&lt;/li&gt;
    &lt;li&gt;IOC (Inverse of Control) Container Or service container.&lt;/li&gt;
&lt;/ul&gt;


&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/php-artisan-list-artisan-commands/"&gt;7. What is PHP artisan. List out some artisan commands ?&lt;/a&gt;&lt;/p&gt;



&lt;strong&gt;PHP artisan&lt;/strong&gt; is the command line interface/tool included with Laravel. It provides a number of helpful commands that can help you while you build your application easily. Here are the list of some artisan command:-
&lt;ul&gt;
    &lt;li&gt;php artisan list&lt;/li&gt;
    &lt;li&gt;php artisan help&lt;/li&gt;
    &lt;li&gt;php artisan tinker&lt;/li&gt;
    &lt;li&gt;php artisan make&lt;/li&gt;
    &lt;li&gt;php artisan –versian&lt;/li&gt;
    &lt;li&gt;php artisan make model model_name&lt;/li&gt;
    &lt;li&gt;php artisan make controller controller_name&lt;/li&gt;
&lt;/ul&gt;


&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/list-default-packages-provided-laravel-5-4/"&gt;8. List some default packages provided by Laravel 5.4 ?&lt;/a&gt;&lt;/p&gt;



Below are list of some official/ default packages provided by Laravel 5.4
&lt;ul&gt;
    &lt;li&gt;Cashier&lt;/li&gt;
    &lt;li&gt;Envoy&lt;/li&gt;
    &lt;li&gt;Passport&lt;/li&gt;
    &lt;li&gt;Scout&lt;/li&gt;
    &lt;li&gt;Socialite&lt;/li&gt;
&lt;/ul&gt;


&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/named-routes-laravel/"&gt;9. What are named routes in Laravel?&lt;/a&gt;&lt;/p&gt;



&lt;strong&gt;Named routing&lt;/strong&gt; is another amazing feature of Laravel framework. Named routes allow referring to routes when generating redirects or Url’s more comfortably.
&lt;strong&gt;You can specify named routes by chaining the name method onto the route definition:&lt;/strong&gt;
&lt;pre&gt;&lt;code&gt;
Route::get('user/profile', function () {
    //
})-&amp;gt;name('profile');

&lt;/code&gt;
&lt;strong&gt;You can specify route names for controller actions:&lt;/strong&gt;
&lt;code&gt;
Route::get('user/profile', 'UserController@showProfile')-&amp;gt;name('profile');
&lt;/code&gt;

&lt;strong&gt;Once you have assigned a name to your routes, you may use the route's name when generating URLs or redirects via the global route function:&lt;/strong&gt;
&lt;code&gt;
// Generating URLs...
$url = route('profile');

// Generating Redirects...
return redirect()-&amp;gt;route('profile');
&lt;/code&gt;
&lt;/pre&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/database-migration-create-migration-via-artisan/"&gt;10. What is database migration. How to create migration via artisan ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Migrations&lt;/strong&gt; are like version control for your database, that’s allow your team to easily modify and share the application’s database schema. Migrations are typically paired with Laravel’s schema builder to easily build your application’s database schema.&lt;/p&gt;

&lt;p&gt;Use below commands to create migration data via artisan.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;// creating Migration
php artisan make:migration create_users_table&lt;/code&gt;
&lt;/pre&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/what-are-service-providers/"&gt;11. What are service providers ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Service Providers&lt;/strong&gt; are central place where all laravel application is bootstrapped . Your application as well all Laravel core services are also bootstrapped by service providers.&lt;br&gt;
All service providers extend the Illuminate\Support\ServiceProvider class. Most service providers contain a register and a boot method. Within the register method, you should only bind things into the service container. You should never attempt to register any event listeners, routes, or any other piece of functionality within the register method.&lt;br&gt;
You can read more about service provider from &lt;a href="https://laravel.com/docs/5.4/providers"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Read Latest Codeigniter interview questions 2018.&lt;/strong&gt;&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/explain-laravels-service-container/"&gt;12. Explain Laravel’s service container ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One of the most powerful feature of Laravel is its &lt;strong&gt;Service Container&lt;/strong&gt;. It is a powerful tool for resolving class dependencies and performing dependency injection in Laravel.&lt;br&gt;
&lt;strong&gt;Dependency injection&lt;/strong&gt; is a fancy phrase that essentially means class dependencies are “injected” into the class via the constructor or, in some cases, “setter” methods.&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/what-is-composer/"&gt;13. What is composer ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Composer &lt;/strong&gt;is a tool for managing dependency in PHP. It allows you to declare the libraries on which your project depends on and will manage (install/update) them for you.&lt;br&gt;
&lt;strong&gt;Laravel &lt;/strong&gt;utilizes Composer to manage its dependencies.&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/dependency-injection-laravel/"&gt;14. What is dependency injection in Laravel ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In software engineering, dependency injection is a technique whereby one object supplies the dependencies of another object. A dependency is an object that can be used (a service). An injection is the passing of a dependency to a dependent object (a client) that would use it. The service is made part of the client’s state.[1] Passing the service to the client, rather than allowing a client to build or find the service, is the fundamental requirement of the pattern.&lt;br&gt;
source(&lt;a href="https://en.wikipedia.org/wiki/Dependency_injection"&gt;&lt;/a&gt;&lt;a href="https://en.wikipedia.org/wiki/Dependency_injection"&gt;https://en.wikipedia.org/wiki/Dependency_injection&lt;/a&gt;).&lt;br&gt;
You can do dependency injection via Constructor, setter and property injection.&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/what-are-laravel-contracts/"&gt;15. What are Laravel Contract’s ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Laravel’s Contracts are nothing but a set of interfaces that define the core services provided by the Laravel framework.&lt;br&gt;
&lt;a href="https://laravel.com/docs/5.4/contracts"&gt;Read more about laravel Contract’s&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Read Latest &lt;strong&gt;&lt;a href="https://www.onlineinterviewquestions.com/symfony-interview-questions/"&gt;Symfony interview questions&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/explain-facades-laravel/"&gt;16. Explain Facades in Laravel ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Laravel Facades provides a static like an interface to classes that are available in the application’s service container. Laravel self-ships with many facades which provide access to almost all features of Laravel ’s. Laravel facades serve as “static proxies” to underlying classes in the service container and provide benefits of a terse, expressive syntax while maintaining more testability and flexibility than traditional static methods of classes. All of Laravel’s facades are defined in the Illuminate\Support\Facades namespace. You can easily access a facade like so:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
use Illuminate\Support\Facades\Cache;

Route::get('/cache', function () {
    return Cache::get('key');
});
&lt;/code&gt;
&lt;/pre&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/what-are-laravel-eloquent/"&gt;17. What are Laravel eloquent?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Laravel’s Eloquent ORM is simple Active Record implementation for working with your database. Laravel provide many different ways to interact with your database, Eloquent is most notable of them. Each database table has a corresponding “Model” which is used to interact with that table. Models allow you to query for data in your tables, as well as insert new records into the table.&lt;/p&gt;

&lt;p&gt;Below is sample usage for querying and inserting new records in Database with Eloquent.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
// Querying or finding records from products table where tag is 'new'
$products= Product::where('tag','new');
// Inserting new record 
 $product =new Product;
 $product-&amp;gt;title="Iphone 7";
 $product-&amp;gt;price="$700";
 $product-&amp;gt;tag='iphone';
 $product-&amp;gt;save();
&lt;/code&gt;
&lt;/pre&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/enable-query-log-laravel/"&gt;18. How to enable query log in Laravel ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Use the &lt;strong&gt;enableQueryLog&lt;/strong&gt; method to enable query log in Laravel&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
DB::connection()-&amp;gt;enableQueryLog(); 
You can get array of the executed queries by using getQueryLog method:
$queries = DB::getQueryLog();
&lt;/code&gt;
&lt;/pre&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/reverse-routing-laravel/"&gt;19. What is reverse routing in Laravel?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Laravel reverse routing is generating URL’s based on route declarations.Reverse routing makes your application so much more flexible.It defines a relationship between links and Laravel routes.When a link is created by using names of existing routes, appropriate Uri’s are created automatically by Laravel. Here is an example of reverse routing.&lt;/p&gt;

&lt;p&gt;// route declaration&lt;br&gt;
&lt;strong&gt;Route::get(‘login’, ‘users@login’);&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Using reverse routing we can create a link to it and pass in any parameters that we have defined. Optional parameters, if not supplied, are removed from the generated link.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It will automatically generates a Url like &lt;a href="http://xyz.com/login"&gt;http://xyz.com/login&lt;/a&gt; in view.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.onlineinterviewquestions.com/core-php-interview-questions/"&gt;Read 40 Best PHP Interview Questions 2018&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/turn-off-crsf-protection-specific-route-laravel/"&gt;20. How to turn off CRSF protection for specific route in Laravel?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To turn off CRSF protection in Laravel add following codes in “app/Http/Middleware/VerifyCsrfToken.php”&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; 
//add an array of Routes to skip CSRF check
private $exceptUrls = ['controller/route1', 'controller/route2'];
 //modify this function
public function handle($request, Closure $next) {
 //add this condition foreach($this-&amp;gt;exceptUrls as $route) {
 if ($request-&amp;gt;is($route)) {
  return $next($request);
 }
}
return parent::handle($request, $next);
} &lt;/code&gt;&lt;/pre&gt;


&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/what-are-traits-in-laravel/"&gt;21. What are traits in Laravel?&lt;/a&gt;&lt;/p&gt;



PHP Traits are simply a group of methods that you want include within another class. A Trait, like an abstract class cannot be instantiated by itself.Trait are created to reduce the limitations of single inheritance in PHP by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies.

Here is an example of trait.
&lt;pre&gt;&lt;code&gt;trait Sharable {
 
  public function share($item)
  {
    return 'share this item';
  }
 
}
&lt;strong&gt;You could then include this Trait within other classes like this:&lt;/strong&gt;

class Post {
 
  use Sharable;
 
}
 
class Comment {
 
  use Sharable;
 
}
&lt;strong&gt;Now if you were to create new objects out of these classes you would find that they both have the share() method available:&lt;/strong&gt;
$post = new Post;
echo $post-&amp;gt;share(''); // 'share this item' 
 
$comment = new Comment;
echo $comment-&amp;gt;share(''); // 'share this item'&lt;/code&gt;
&lt;/pre&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/laravel-support-caching/"&gt;22. Does Laravel support caching?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Yes, Laravel supports popular caching backends like &lt;strong&gt;Memcached &lt;/strong&gt;and &lt;strong&gt;Redis&lt;/strong&gt;.&lt;br&gt;
By default, Laravel is configured to use the file cache driver, which stores the serialized, cached objects in the file system.For large projects, it is recommended to use Memcached or Redis.&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/explain-laravels-middleware/"&gt;23. Explain Laravel’s Middleware?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As the name suggests, Middleware acts as a middleman between request and response. It is a type of filtering mechanism. For example, Laravel includes a middleware that verifies whether the user of the application is authenticated or not. If the user is authenticated, he will be redirected to the home page otherwise, he will be redirected to the login page.&lt;/p&gt;

&lt;p&gt;There are two types of Middleware in Laravel.&lt;br&gt;
Global Middleware: will run on every HTTP request of the application.&lt;br&gt;
&lt;strong&gt;Route Middleware&lt;/strong&gt;: will be assigned to a specific route.&lt;br&gt;
&lt;a href="https://laravel.com/docs/5.4/middleware"&gt;Read more about Laravel middlewares&lt;/a&gt;&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/what-is-lumen/"&gt;24. What is Lumen?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lumen&lt;/strong&gt; is PHP micro-framework that built on Laravel’s top components.It is created by Taylor Otwell. It is perfect option for building Laravel based micro-services and fast REST API’s. It’s one of the fastest micro-frameworks available.&lt;br&gt;
You can install Lumen using composer by running below command&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;composer create-project --prefer-dist laravel/lumen blog&lt;/code&gt;&lt;/pre&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/explain-bundles-laravel/"&gt;25. Explain Bundles in Laravel?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In Laravel, bundles are also called packages.Packages are the primary way to extend the functionality of Laravel. Packages might be anything from a great way to work with dates like Carbon, or an entire BDD testing framework like Behat.In Laravel, you can create your custom packages too.You can read more about packages from &lt;a href="https://laravel.com/docs/5.4/packages"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/use-custom-table-laravel-modal/"&gt;26. How to use custom table in Laravel Modal ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can use custom table in Laravel by overriding protected $table property of Eloquent.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
Below is sample uses

class User extends Eloquent{
 protected $table="my_user_table";

} &lt;/code&gt;
&lt;/pre&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/list-types-relationships-available-laravel-eloquent/"&gt;27. List types of relationships available in Laravel Eloquent?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Below are types of relationships supported by Laravel Eloquent ORM.&lt;/p&gt;

&lt;ul&gt;
    &lt;li&gt;One To One&lt;/li&gt;
    &lt;li&gt;One To Many&lt;/li&gt;
    &lt;li&gt;One To Many (Inverse)&lt;/li&gt;
    &lt;li&gt;Many To Many&lt;/li&gt;
    &lt;li&gt;Has Many Through&lt;/li&gt;
    &lt;li&gt;Polymorphic Relations&lt;/li&gt;
    &lt;li&gt;Many To Many Polymorphic Relations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can read more about relationships in Laravel Eloquent from &lt;a href="https://laravel.com/docs/5.4/eloquent-relationships"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/why-are-migrations-necessary/"&gt;28. Why are migrations necessary?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Migrations are necessary because:&lt;/p&gt;

&lt;ul&gt;
    &lt;li&gt;Without migrations, database consistency when sharing an app is almost impossible, especially as more and more people collaborate on the web app.&lt;/li&gt;
    &lt;li&gt;Your production database needs to be synced as well.&lt;/li&gt;
&lt;/ul&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/provide-system-requirements-installation-laravel-5-4/"&gt;29. Provide System requirements for installation of Laravel 5.4 ?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In order to install laravel,make sure your server meets the following requirements:&lt;/p&gt;

&lt;ul&gt;
    &lt;li&gt;PHP &amp;gt;= 5.6.4&lt;/li&gt;
    &lt;li&gt;OpenSSL PHP Extension&lt;/li&gt;
    &lt;li&gt;PDO PHP Extension&lt;/li&gt;
    &lt;li&gt;Mbstring PHP Extension&lt;/li&gt;
    &lt;li&gt;Tokenizer PHP Extension&lt;/li&gt;
    &lt;li&gt;XML PHP Extension&lt;/li&gt;
&lt;/ul&gt;

&lt;p class="questions"&gt;&lt;a href="https://www.onlineinterviewquestions.com/list-aggregates-methods-provided-query-builder-laravel/"&gt;30. List some Aggregates methods provided by query builder in Laravel ?&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
    &lt;li&gt;count()&lt;/li&gt;
    &lt;li&gt;max()&lt;/li&gt;
    &lt;li&gt;min()&lt;/li&gt;
    &lt;li&gt;avg()&lt;/li&gt;
    &lt;li&gt;sum()&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also Read &lt;a href="https://www.onlineinterviewquestions.com/laravel-interview-questions-and-answers/"&gt;&lt;strong&gt;Laravel 5 interview questions 2018&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;


</description>
      <category>laravel</category>
      <category>interview</category>
      <category>questions</category>
    </item>
  </channel>
</rss>
