Filter interviews by
I applied via Walk-in and was interviewed in Jan 2023. There were 2 interview rounds.
I applied via Referral and was interviewed before Apr 2021. There were 3 interview rounds.
Php array is a data structure that stores multiple values under a single variable name.
Arrays can hold values of different data types
Values in an array are accessed using their index number
Arrays can be created using the array() function or shorthand []
Arrays have various built-in functions for manipulation
PHP is a server-side scripting language used for web development.
PHP stands for Hypertext Preprocessor.
It is an open-source language and can be embedded in HTML.
PHP is used for creating dynamic web pages and web applications.
It can interact with databases and handle forms and cookies.
Popular websites like Facebook, Wikipedia, and WordPress are built using PHP.
HTML is a markup language used for creating web pages, while PHP is a server-side scripting language used for dynamic web development.
HTML stands for HyperText Markup Language and is used to create the structure of web pages.
PHP stands for Hypertext Preprocessor and is used for server-side scripting to generate dynamic content on web pages.
HTML is static, while PHP allows for dynamic content generation based on user in...
Javascript is a scripting language used for web development. It can be used with Core PHP to add interactivity to websites.
Javascript is a client-side scripting language that runs in the browser
It can be used to add interactivity to websites, such as form validation and dynamic content
Core PHP is a server-side scripting language used to generate HTML pages
Javascript can be used with Core PHP to create dynamic web pages
...
MySQL Database Connectivity to PHP is a way to connect PHP scripts to MySQL databases.
MySQLi and PDO are two PHP extensions used for database connectivity.
MySQLi is an object-oriented extension while PDO is a data access abstraction layer.
Both extensions provide methods to connect to MySQL databases, execute queries, and fetch results.
Example: $conn = new mysqli($servername, $username, $password, $dbname);
Example: $con...
To create a simple form in PHP using HTML and display in a web browser, you need to write HTML code for the form and embed PHP code to handle form submission.
Create an HTML form with input fields for user input
Use PHP code to process form data and display results
Save the file with a .php extension to enable PHP code execution
PHP variables are containers for storing data values. There are 4 types of variables in PHP.
PHP variables start with a $ sign followed by the variable name
PHP has 4 types of variables: string, integer, float, and boolean
Variables can be assigned values using the assignment operator (=)
Variables can be used in expressions and can be concatenated with strings
Example: $name = 'John'; $age = 25; $salary = 2500.50; $isEmplo
OOPS in PHP is a programming paradigm that uses objects to represent real-world entities and their interactions.
OOPS stands for Object-Oriented Programming System
It allows for encapsulation, inheritance, and polymorphism
Classes and objects are used to represent real-world entities and their interactions
Example: A class 'Car' can have properties like 'model', 'color', and 'price', and methods like 'start', 'stop', and '...
Constructor and Destructor are special methods in a class that are used to create and destroy objects respectively.
Constructor is a method that is called when an object of a class is created.
Destructor is a method that is called when an object is destroyed.
Class is a blueprint or template for creating objects.
Object is an instance of a class.
Constructor and Destructor are related to Class and Object as they are used to
Call by Value passes a copy of the value, while Call by Reference passes a reference to the value.
Call by Value passes a copy of the value to the function, so any changes made to the value inside the function do not affect the original value outside the function.
Call by Reference passes a reference to the value to the function, so any changes made to the value inside the function affect the original value outside the f...
An array is a data structure that stores multiple values in a single variable. PHP has several data types including string, integer, float, boolean, and more.
PHP arrays can hold values of different data types.
There are indexed arrays, associative arrays, and multidimensional arrays in PHP.
Indexed arrays use numeric keys to access values.
Associative arrays use named keys to access values.
Multidimensional arrays are arra
A trigger is a piece of code that automatically executes when an event occurs in a database.
Triggers are useful for enforcing business rules and data integrity.
They can be used to audit changes to data in a database.
In PHP, triggers can be created using the mysqli extension or PDO.
Examples of trigger events include INSERT, UPDATE, and DELETE operations on a table.
Top trending discussions
I did my internship at XYZ Corporation.
Interned at XYZ Corporation
Worked in the marketing department
Assisted in creating social media campaigns
Conducted market research
Attended meetings with clients
I learned to take responsibility for my actions and to use my mistakes as opportunities for growth.
I learned to admit my mistakes and apologize when necessary
I learned to reflect on my mistakes and identify areas for improvement
I learned to seek feedback from others and use it to make positive changes
I learned to not be afraid of failure and to view it as a learning experience
For example, when I made a mistake at work ...
I have the skills, experience, and passion to contribute to the success of your company.
I have a proven track record of achieving targets and exceeding expectations.
I possess strong communication and interpersonal skills, which enable me to work effectively with colleagues and clients.
I am a quick learner and adaptable to new environments and technologies.
I am passionate about the industry and eager to contribute to th...
I have the necessary skills, experience, and passion to excel in this role.
I have relevant experience in the field
I possess the required skills and qualifications
I am a quick learner and adaptable to new situations
I am passionate about the industry and eager to contribute
I am a team player and work well with others
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.
Find sum of all numbers formed from root to leaf path in a binary tree
Traverse the binary tree using DFS
At each leaf node, add the number formed from root to leaf path to a sum variable
Return the sum variable
Time complexity: O(n)
Example: For a binary tree with root value 1, left child 2 and right child 3, the sum would be 12 + 13 = 25
Given a string, print all possible strings that can be made by placing spaces (zero or one) in between them.
Use recursion to generate all possible combinations of spaces
For each recursive call, either add a space or don't add a space between the current character and the next character
Base case is when there are no more characters left to add spaces between
Time complexity is O(2^n) where n is the length of the string
Preorder traversal without recursion
Use a stack to keep track of nodes
Push right child first and then left child onto stack
Pop top of stack and print value
Repeat until stack is empty
Find longest continuous patch on a 12 km road with updates in patches
Maintain a variable to keep track of current patch length
Update the variable whenever a new patch is added
Maintain a variable to keep track of longest patch so far
Compare current patch length with longest patch length and update if necessary
Use a sorted data structure like a binary search tree to store the patches for efficient search
Time complexity: ...
Find median of an unsorted array.
Sort the array and find the middle element
Use quickselect algorithm to find the median in O(n) time
If the array is small, use brute force to find the median
Find 'k' elements closest to a given number from a stream of characters.
Use a priority queue to keep track of closest elements.
Update the queue as new characters come in.
Return the 'k' closest elements from the queue.
Design a data structure with O(1) insert, remove, find-max, and delete-max operations.
Use a doubly linked list to maintain the elements in sorted order.
Use a hash table to store the pointers to the nodes in the linked list.
Maintain a pointer to the maximum element in the hash table.
Update the pointers in the hash table when inserting or removing elements.
Update the maximum pointer when deleting or inserting the maximum
Check if a given linked list is a palindrome.
Traverse the linked list and store the values in an array.
Compare the first and last elements of the array, then move towards the center.
If all elements match, the linked list is a palindrome.
Alternatively, use two pointers to find the middle of the linked list and reverse the second half.
Compare the first half with the reversed second half to check for a palindrome.
based on 2 interviews
Interview experience
Accountant
4
salaries
| ₹1.5 L/yr - ₹4.3 L/yr |
Manager
3
salaries
| ₹2.7 L/yr - ₹24 L/yr |
Computer Operator
3
salaries
| ₹2 L/yr - ₹3.1 L/yr |
Telecalling Executive
3
salaries
| ₹1.5 L/yr - ₹1.5 L/yr |
TCS
Accenture
Wipro
Cognizant