Filter interviews by
I applied via Naukri.com and was interviewed in Jul 2021. There were 5 interview rounds.
Echo and print are both used to output data in PHP, but echo is slightly faster and can take multiple arguments.
Echo is a language construct, while print is a function.
Echo does not return a value, while print returns 1.
Echo can output multiple strings separated by commas, while print can only output one string.
Echo is generally preferred for performance reasons.
Array types and functions
PHP arrays can store multiple values of different types
Arrays can be indexed numerically or with strings
Common array functions include count(), sort(), and array_push()
Example: $fruits = ['apple', 'banana', 'orange'];
GET and POST are HTTP methods used to send data to a server. GET appends data to the URL while POST sends it in the request body.
GET is used for retrieving data from a server while POST is used for submitting data to a server.
GET appends data to the URL as query parameters while POST sends it in the request body.
GET requests can be bookmarked and cached while POST requests cannot.
GET requests have length restrictions w...
JavaScript is a programming language used for client-side scripting, while jQuery is a library built on top of JavaScript.
JavaScript is a programming language that allows you to create dynamic web content and interact with the user.
jQuery is a library that simplifies JavaScript programming by providing pre-written functions and methods.
JavaScript is a core language, while jQuery is a framework built on top of JavaScrip...
Sessions and cookies are used to store and retrieve data in web applications.
Sessions are used to store data on the server side and are identified by a unique session ID.
Cookies are used to store data on the client side and are stored as small text files.
Sessions are more secure as the data is stored on the server, while cookies can be manipulated by the client.
Sessions are typically used to store sensitive information...
An index in MySQL is a data structure that improves the speed of data retrieval operations on a database table.
Indexes are created on one or more columns of a table to allow for faster searching and sorting of data.
They work by creating a separate data structure that stores the values of the indexed columns in a sorted manner.
This allows the database engine to quickly locate the desired data without having to scan the ...
Functions in MySQL are predefined or user-defined routines that perform specific tasks.
MySQL functions can be used to manipulate data, perform calculations, and format output.
There are various types of functions in MySQL, such as string functions, numeric functions, date and time functions, etc.
Examples of MySQL functions include CONCAT(), SUBSTRING(), COUNT(), AVG(), NOW(), etc.
Top trending discussions
Mechanical Engineering offers a diverse range of opportunities to apply scientific principles to solve real-world problems.
Mechanical Engineering provides a strong foundation in math, physics, and materials science.
It offers a wide range of career opportunities in various industries such as automotive, aerospace, and manufacturing.
Mechanical Engineers design and develop machines, tools, and systems that improve our dai...
I am a Programmer Analyst with expertise in developing and maintaining software applications.
Proficient in programming languages such as Java, C++, and Python
Experience in analyzing user requirements and designing software solutions
Skilled in troubleshooting and debugging software issues
Strong knowledge of database management systems like MySQL and Oracle
Familiarity with software development methodologies like Agile an...
I come from a close-knit family with diverse backgrounds and interests.
My parents are both educators, and they instilled in me a love for learning and problem-solving.
I have two siblings, an older brother who works in finance and a younger sister who is studying medicine.
We often gather for family dinners and enjoy discussing various topics, from technology to current events.
My family has been a great support system th...
Flexibility can bring advantages like adaptability and creativity, but can also lead to indecisiveness and lack of focus.
Flexibility allows for adaptability to changing situations and creativity in problem-solving.
It can also lead to indecisiveness and lack of focus if not balanced with structure and clear goals.
Advantages include increased resilience, better teamwork, and improved communication.
Disadvantages include p...
My English score is bad due to lack of practice and exposure.
Lack of practice and exposure to English language
Difficulty in understanding complex grammar rules
Limited vocabulary and poor pronunciation
Lack of confidence in speaking and writing English
Possible language barrier if English is not my first language
Polymorphism is the ability of an object to take on many forms. In C++, it is achieved through function overloading and virtual functions.
Polymorphism allows objects of different classes to be treated as objects of a common base class.
Function overloading enables multiple functions with the same name but different parameters.
Virtual functions allow derived classes to override base class functions.
Caching is the process of storing frequently used data in a temporary storage to reduce access time. LRU caching removes least recently used data.
Caching improves performance by reducing access time to frequently used data
LRU (Least Recently Used) caching removes the least recently used data to make space for new data
LRU cache can be implemented using a doubly linked list and a hash map
When a cache hit occurs, the acce...
TCS
Accenture
Wipro
Cognizant