{"id":385,"date":"2017-07-24T17:56:03","date_gmt":"2017-07-24T17:56:03","guid":{"rendered":"http:\/\/www.codeinsightacademy.com\/blog\/?page_id=385"},"modified":"2019-12-31T04:26:38","modified_gmt":"2019-12-31T04:26:38","slug":"interview-questions","status":"publish","type":"page","link":"https:\/\/codeinsightacademy.com\/blog\/interview-questions\/","title":{"rendered":"Interview Questions"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><strong>Php<\/strong><\/p>\n<ol>\n<li>What is PEAR<\/li>\n<li>Full form of PHP<\/li>\n<li>Difference between GET and POST<\/li>\n<li>Array Functions (any 5)<\/li>\n<li>String Functions (any 5)<\/li>\n<li>What are the data types available in Php<\/li>\n<li>New features in PHP 7<\/li>\n<li>What is session how does it work. Where does session store.<\/li>\n<li>What is cookie<\/li>\n<li>Difference between session and cookies<\/li>\n<li>How to get extension of file.<\/li>\n<li>Difference between include and require<\/li>\n<li>What are magic methods in php<\/li>\n<li>Types of errors in php<\/li>\n<li>How to disables errors in php<\/li>\n<li>How to set the execution time of a script<\/li>\n<li>How to secure SQL in php<\/li>\n<li>What is MVC design pattern<\/li>\n<li>What is XSS and CSRF<\/li>\n<li>Difference between Apache and Nginx<\/li>\n<\/ol>\n<hr \/>\n<p><strong>OOPS<\/strong><\/p>\n<ol>\n<li>What are major and minor pillars of OOPS<\/li>\n<li>What is Encapsulation and Abstraction<\/li>\n<li>Difference between Abstract Class and Interface<\/li>\n<li>What is the use of static modifier<\/li>\n<li>What are the different access specifier<\/li>\n<li>What is method overloading and method overriding<\/li>\n<li>What is final keyword<\/li>\n<li>Why php doesn&#8217;t support multiple inheritance<\/li>\n<li>How to achieve multiple inheritance in OOPS<\/li>\n<li>Can we create object of abstract class<\/li>\n<li>Design Patterns: <a href=\"https:\/\/stackoverflow.com\/questions\/24852125\/what-is-singleton-in-php\">Singleton<\/a>\u00a0(<a href=\"https:\/\/coderoncode.com\/design-patterns\/programming\/php\/development\/2014\/01\/27\/design-patterns-php-singletons.html\">description<\/a>) and <a href=\"https:\/\/stackoverflow.com\/questions\/2083424\/what-is-a-factory-design-pattern-in-php\">Factory<\/a><\/li>\n<li>Can methods in interface have private or protected visibility<\/li>\n<\/ol>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><strong>SQL \/ Database<\/strong><\/p>\n<ol>\n<li>What is DDL, DML, DQL, DCL and DTL<\/li>\n<li>What are Joins<\/li>\n<li>Inner Join, Left outer Join, Full outer join<\/li>\n<li>What is Union<\/li>\n<li>Inner Query<\/li>\n<li>Subquery<\/li>\n<li>How to get the highest and second highest salary holders<\/li>\n<li>Difference between LEFT JOIN and RIGHT JOIN<\/li>\n<li>Select employees and their manager names from\u00a0 employees table<\/li>\n<li>How to use REGEX in DQL<\/li>\n<li>Difference between stored procedure and functions<\/li>\n<li>What is trigger<\/li>\n<li>How to create views, procedure, function and package<\/li>\n<li>What is indexing. How indexing work in RDBMS<\/li>\n<li>What is the difference between InnoDB and MyISAM database engine<\/li>\n<\/ol>\n<hr \/>\n<p><strong>Angular JS<\/strong><\/p>\n<ol>\n<li>How to pass data from one controller to another<\/li>\n<li>Why to use Angular JS over jquery or javascript<\/li>\n<\/ol>\n<hr \/>\n<p><strong>Web Services<\/strong><\/p>\n<ol>\n<li>What is Web API\/Web Service?<\/li>\n<li>Difference Between Web API\/Web Service?<\/li>\n<li>Overview of RPC, XML-RPC, REST<\/li>\n<li>What is HTTP GET\/POST\/PUT\/DELETE<\/li>\n<li>Securing API (Token, JWT, OAuth2)<\/li>\n<li>Please describe some potential issues with developing a REST API with Laravel and how you would mitigate them<\/li>\n<\/ol>\n<hr \/>\n<p><strong>Security<\/strong><\/p>\n<ol>\n<li>What is CSRF attack<\/li>\n<li>What is XSS attack<\/li>\n<li>What is SQL injection How can we protect<\/li>\n<li>How can we secure web services<\/li>\n<li>iFrame cross-origin<\/li>\n<li>What are some of the things you would do to make sure the code you develop is both optimised and secure?<\/li>\n<\/ol>\n<hr \/>\n<p><strong>Project Management<\/strong><\/p>\n<ol>\n<li>What are a few of your favorite development tools and why?<\/li>\n<\/ol>\n<hr \/>\n<p>[accordion]<br \/>\n[toggle title=&#8221;What are the ways to create object of class&#8221; state=&#8221;closed&#8221;]<\/p>\n<div class=\"co8aDb\" role=\"heading\" aria-level=\"3\"><b>There are four different ways to create objects in java:<\/b><\/div>\n<div class=\"RqBzHd\">\n<ol class=\"X5LH0c\">\n<li class=\"TrT0Xe\">A. Using new keyword. This is the most common <b>way to create<\/b> an <b>object<\/b> in <b>java<\/b>. &#8230;<\/li>\n<li class=\"TrT0Xe\">B. Using <b>Class<\/b>.forName() If we know the name of the <b>class<\/b> &amp; if it has a public default constructor we can <b>create<\/b> an <b>object<\/b> in this <b>way<\/b>.<\/li>\n<li class=\"TrT0Xe\">C. Using clone() &#8230;<\/li>\n<li class=\"TrT0Xe\">D. Using <b>object<\/b> deserialization.<\/li>\n<\/ol>\n<\/div>\n<p>[\/toggle]<br \/>\n[\/accordion][accordion]<br \/>\n[toggle title=&#8221;What are methods of Object class&#8221; state=&#8221;closed&#8221;]<\/p>\n<table>\n<tbody>\n<tr class=\"ztXv9\">\n<th><b>Object class methods<\/b><\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>int hashCode();<\/td>\n<td>Returns a hash value that is used to search <b>objects<\/b> in a collection<\/td>\n<\/tr>\n<tr>\n<td>void notify();<\/td>\n<td>Used in synchronizing threads<\/td>\n<\/tr>\n<tr>\n<td>void notifyAll();<\/td>\n<td>Used in synchronizing threads<\/td>\n<\/tr>\n<tr>\n<td>String toString();<\/td>\n<td>Can be used to convert the <b>object<\/b> to String<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>[\/toggle]<br \/>\n[\/accordion]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Php What is PEAR Full form of PHP Difference between GET and POST Array Functions (any 5) String Functions (any 5) What are the data types available in Php New features in PHP 7 What is session how does it work. Where does session store. What is cookie Difference between session and cookies How [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/pages\/385"}],"collection":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/comments?post=385"}],"version-history":[{"count":31,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/pages\/385\/revisions"}],"predecessor-version":[{"id":629,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/pages\/385\/revisions\/629"}],"wp:attachment":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/media?parent=385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}