K2B Solutions
TopHire Interview Questions and Answers
Q1. Difference between interface and abstract class
An interface is a contract that defines a set of methods that a class must implement, while an abstract class is a class that cannot be instantiated and can contain both abstract and non-abstract methods.
An interface can only have abstract methods, while an abstract class can have both abstract and non-abstract methods.
A class can implement multiple interfaces, but can only inherit from a single abstract class.
Interfaces are used to achieve multiple inheritance in Java.
Abstra...read more
Q2. Adding class for last li using JQuery
Using jQuery, add a class to the last li element in a list.
Use the :last selector to target the last li element.
Use the addClass() method to add a class to the selected element.
Q3. Types of joins in mysql
Types of joins in MySQL include inner join, left join, right join, and full outer join.
Inner join returns only the matching rows from both tables
Left join returns all rows from the left table and the matching rows from the right table
Right join returns all rows from the right table and the matching rows from the left table
Full outer join returns all rows from both tables, including unmatched rows
Q4. Routing in codeigniter
Routing in CodeIgniter is the process of mapping URLs to specific controllers and methods.
Routing allows for clean and user-friendly URLs.
Routes can be defined in the routes.php file in the application/config directory.
Routes can be configured to include parameters and specify default controllers and methods.
CodeIgniter supports both simple and complex routing patterns.
Routes can be used to handle URL redirection and create custom URL structures.
Q5. States of html dom
States of HTML DOM refer to the different states in which an HTML element can exist.
The default state is 'unstyled' or 'initial state'
The 'hover' state is when a user hovers over an element
The 'active' state is when an element is being clicked on
The 'focus' state is when an element is selected by keyboard navigation
Q6. what is the codeigniter framework
CodeIgniter is a PHP web application framework that helps in developing dynamic websites quickly and easily.
CodeIgniter is an open-source framework that follows the Model-View-Controller (MVC) architectural pattern.
It has a small footprint and is easy to install and configure.
CodeIgniter provides a rich set of libraries and helpers that simplify common tasks like database operations, form validation, and file uploading.
It also has excellent documentation and an active communi...read more
Q7. what is the core php
Core PHP refers to the basic functionality of PHP without any additional extensions or libraries.
Core PHP includes basic functions like string manipulation, file handling, and database connectivity.
It does not include any additional extensions or libraries that may be added to PHP.
Core PHP is the foundation upon which all PHP applications are built.
Examples of core PHP functions include echo, print, strlen, fopen, and mysqli_connect.
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month