Paytm
400+ Vsmart World Communication Interview Questions and Answers
If we light a stick, it takes 60 minutes to burn completely. What if we light the stick from both sides? It w...read more
Rahul is a programming enthusiast. He is currently learning about arrays/lists. One day his teacher asked him to solve a very difficult problem. The problem was to find the length of ...read more
Design and implement a data structure for Least Recently Used (LRU) cache to support the following operations:
1. get(key) - Return the value of the key if the key exists in the cache, o...read more
Given a numeric string ‘STR’ which is a string containing numeric characters from ‘0’ to ‘9’, you have to encrypt the string by changing each numeric character as shown below:
‘0’ -> ‘9’
‘1’ -...read more
Three questions were asked: -
1. What is Virtual Memory?
2. What is Belady's Anomaly?
3. What is page fault?
Mr. X is a professional robber planning to rob houses along a street. Each house has a certain amount of money hidden. All houses along this street are arranged in a circle. That means the first hou...read more
The task is to find the maximum amount of money Mr. X can rob from houses arranged in a circle without alerting the police.
The problem can be solved using dynamic programming.
Create two arrays to store the maximum amount of money robbed when considering the first house and when not considering the first house.
Iterate through the array and update the maximum amount of money robbed at each house.
The final answer will be the maximum of the last element in both arrays.
Q107. two arrays of arrival time of trains and departure time of trains were given. find the minimum no of platforms require so that no collision occurs
Find minimum no of platforms required to avoid collision between trains based on their arrival and departure times.
Sort both arrays in ascending order
Initialize platform count and max count to 1
Loop through both arrays and compare arrival and departure times
If arrival time is less than or equal to departure time, increment platform count
Else, decrement platform count
Update max count if platform count is greater than max count
Return max count
A person has 3000 bananas and a camel. He wants to transport the maximum number of bananas to a destination 1000 KMs away, using only the camel as a mode of transportation. The camel cann...read more
You are given a 'M' x 'N' matrix of characters, 'CHARACTER_MATRIX' and a string 'WORD'. Your task is to find and print all occurrences of the string in the given character matrix. You are al...read more
Deep linking
scope storage
why constraint layout(flat structure, lessrendering, responsive)
how to handle run time permissions for aspecific version
Have you integrated payment gateway in any of...read more
Q111. How many trees are possible with two and three nodes?
Answering the question about possible trees with two and three nodes.
For two nodes, there is only one possible tree.
For three nodes, there are three possible trees.
The formula for calculating the number of possible trees with n nodes is (2n-3)!!.
The double exclamation mark represents the double factorial function.
The double factorial function is defined as n!! = n(n-2)(n-4)...(1 or 2).
What are the conditions for a deadlock to occur?
Assuming the best cricketer playing with the best strategy. How many maximum runs he can score in ipl satisfying all rules of cricket and NO wide balls.
You are given an array/list ‘ARR’ of ‘N’ positive integers and an integer ‘K’. Your task is to check if there exists a subset in ‘ARR’ with a sum equal to ‘K’.
Note: Return true if there ex...read more
You are given a positive number ‘N.’ You need to find all the numbers such that the sum of digits of those numbers to the number itself is equal to ‘N.’
For example:
You are given ‘N’ as 21, th...read more
Q116. Find the row with max number of vowels in a 2×2 matrix. Given that first element of each row contains a vowel if there are any in the whole row.
Find row with max vowels in 2x2 matrix with first element of each row containing a vowel.
Iterate through each row and count the number of vowels in it.
Keep track of the row with max number of vowels.
If first element of a row is a vowel, start counting from that element.
Example: [['a', 'b'], ['e', 'i']] should return 2nd row.
Given a string, determine if it is a palindrome, considering only alphanumeric characters.
Palindrome
A palindrome is a word, number, phrase, or other sequences of characters which read the sam...read more
Given an undirected graph of V vertices and E edges. Your task is to find all the bridges in the given undirected graph. A bridge in any graph is defined as an edge which, when removed, makes ...read more
Q119. Are you agree to visit merchant physically in market ?
Yes, I am willing to visit merchants physically in the market.
I believe that face-to-face interaction is crucial in building strong relationships with clients.
Visiting merchants in the market allows me to understand their needs and concerns better.
It also gives me the opportunity to showcase our products and services in person.
I am comfortable with traveling and have a flexible schedule to accommodate market visits.
Introduction of all my projects.
What is serialization and deserialization in Java?
Deep go through all the projects and technology used in projects Challenges you have faced and how did...read more
Q121. Write a function in javascript to hide text on mouse click
Function to hide text on mouse click in JavaScript
Create a function that takes an element as input
Add an event listener to the element for a mouse click
Toggle the element's display property between 'none' and its original value
You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.
For example:
If the given string is: STR = "abcde". You h...read more
What do you know about Paging and Segmentation? Discuss their needs and work.
• Flow kotlin
• Android 10 to Android 11 migration support
• Kotlin cons and pros
• Dagger! should we use it?
• MVVM explain
• Android versions with their features and specialities
• Activity...read more
Multithreading Concepts? How thread works in java?
Difference in sleep() and wait().
Print even odd using two threads. What is synchronization Block & why it is used?
You are given the ‘N’ processes with their “burst times”, and the “arrival time” for all processes is ‘0’. You are also given the ‘priority’ of each process.
Your task...read more
Q127. Do you know how market accept the new product?
Market acceptance of new product depends on various factors such as product features, pricing, competition, and marketing strategies.
Conducting market research to understand customer needs and preferences
Analyzing competitor products and pricing strategies
Developing effective marketing campaigns to create awareness and generate interest
Offering competitive pricing and attractive promotions
Collecting feedback from early adopters and making necessary improvements
Monitoring sale...read more
He asked me some output questions which were based on JavaScript fundamentals like hoisting, arrow function etc.
Some questions were from Redux. At that time I didn't have any experien...read more
How your project handles web requests? Explain from the scratch.
Q130. Write a function that returns '3' when '4' is passed as an input and vice versa without using if-else condition
Function to swap '3' and '4' without using if-else
Use XOR operator to swap the values
Convert the input to ASCII code and perform the swap
Use a lookup table to map the values
Q131. What is the problem with arrays?
Arrays have fixed size and can lead to memory wastage and performance issues.
Arrays have a fixed size and cannot be resized dynamically.
Inserting or deleting elements in an array can be time-consuming.
Arrays can lead to memory wastage if they are not fully utilized.
Arrays can cause performance issues if they are too large and need to be traversed frequently.
Arrays can also be prone to buffer overflow attacks.
Example: An array of size 10 is created but only 5 elements are used...read more
Given a dataframe ..how to filter the and aggregate the data using pandas
What is linear Regression and assumptions
Filtering and aggregating data in pandas dataframe. Linear regression and its assumptions.
To filter data in pandas, use the 'query' or 'loc' function based on specific conditions
To aggregate data in pandas, use the 'groupby' function along with aggregation methods like 'sum', 'mean', etc.
Linear regression is a statistical technique used to model the relationship between a dependent variable and one or more independent variables
Assumptions of linear regression include linearit...read more
Q133. What is JVM ? Difference between JVM and compiler
JVM stands for Java Virtual Machine. It is an abstract machine that provides a runtime environment for Java programs.
JVM is responsible for interpreting the compiled Java code and executing it.
It provides platform independence by converting bytecode into machine-specific code.
JVM has various components like class loader, bytecode verifier, and execution engine.
Compiler converts source code into bytecode, while JVM executes the bytecode.
JVM is used not only for Java but also f...read more
What is virtual memory .
What are page faults.
What is kernel
Q135. Given the code to flat the array ex : Input - [2,3,[4,5,[6,7],8,9,[0]]] Output : [2,3,4,5,6,7,8,9,0]
Flatten a nested array into a single-level array.
Use recursion to iterate through each element of the array.
If the element is an array, call the function recursively.
If the element is not an array, add it to the result array.
Q136. Explain logistic regression and its cost function, difference between logistic regression and linear regression,disadvantage of logistic regression?
Logistic regression is a classification algorithm used to predict binary outcomes.
Logistic regression uses a sigmoid function to map input values to a probability score.
The cost function for logistic regression is the negative log-likelihood function.
Unlike linear regression, logistic regression is used for classification tasks.
Logistic regression assumes a linear relationship between the input variables and the log-odds of the output variable.
A disadvantage of logistic regre...read more
Why paytm?
How is paytm different from its competition?
What changes you think can be made to make it better?
Can you take your stand for a decision if you believe its correct even when your supe...read more
What is segementation.
Difference between internal and external fragmetation
Q139. A 2D matrix is given which is row wise and column wise sorted. Find a particular element from it
Finding an element in a sorted 2D matrix
Start from the top right corner or bottom left corner
Compare the target element with the current element
Move left or down if the target is smaller, else move right or up
Repeat until the target is found or all elements are checked
He asked me to desgin a bookmyshow and then started asking question around the design
Design a bookmyshow system
Design a system to book and manage movie tickets
Consider features like seat selection, payment, and ticket cancellation
Include user authentication and authorization
Implement a database to store movie and theater information
Consider scalability and performance of the system
Q141. what is indexing? Why it is used?
Indexing is the process of creating an index for faster data retrieval. It is used to improve search performance.
Indexing creates a data structure that allows for faster searching and sorting of data.
It is commonly used in databases to improve query performance.
Examples of indexing include B-trees, hash indexes, and bitmap indexes.
Without indexing, searching through large amounts of data can be slow and inefficient.
Q142. What are B+ trees?what is the advantage?
B+ trees are balanced trees used for indexing and searching large amounts of data.
B+ trees are similar to binary search trees but have multiple keys per node.
They are commonly used in databases and file systems.
B+ trees have a high fanout, reducing the number of disk accesses required for searching.
They are also self-balancing, ensuring efficient performance even with large amounts of data.
Example: In a database, a B+ tree can be used to index customer records by last name.
Find nth maximum salary from employee table. Schema of the table is: -
(employee_id,employee_name,employee_salary)
Design a search service to get relevant results for travel.
Q145. Any feature i would like to add in PayTM app?
I would like to add a feature for splitting bills among friends.
The feature would allow users to split bills for movies, dinners, etc.
Users can select friends from their contact list and split the bill equally or unequally.
The app would send a notification to the selected friends to pay their share.
The feature would make it easier for users to split expenses and avoid awkward conversations.
It would also encourage more usage of the PayTM app for group activities.
Q146. What is your favourite Product? Fetch 3 improvement areas and prepare a quarterly roadmap to solve those.
My favorite product is the iPhone. Improvement areas: battery life, camera quality, and Siri functionality.
Battery life can be improved by optimizing software and hardware components.
Camera quality can be improved by upgrading the lens and sensor technology.
Siri functionality can be improved by enhancing natural language processing and expanding its capabilities.
Quarterly roadmap: Q1 - research and development, Q2 - prototype testing, Q3 - beta testing, Q4 - release and marke...read more
Q147. Given an array find the number of conitnuous sequences having equal number of 0's and 1's
Count the number of continuous sequences with equal number of 0's and 1's in an array.
Iterate through the array and keep track of the count of 0's and 1's encountered so far.
Store the difference between the counts in a hash table and increment the count for that difference.
If the difference is already present in the hash table, add the count to the existing value.
Return the sum of all values in the hash table.
Given a binary tree (not a binary search tree) and two values say n1 and n2, write a program to find the least common ancestor.
What do you know about Paytm?
Q150. Can you implement a stack using queue
Yes, we can implement a stack using two queues.
Push operation: Enqueue the element to the first queue.
Pop operation: Dequeue all elements from the first queue and enqueue them to the second queue until the last element. Dequeue and return the last element. Swap the names of the queues.
Top operation: Same as pop operation but don't dequeue the last element.
Example: Push 1, 2, 3. Queue 1: 1 2 3. Queue 2: empty. Pop operation: Dequeue 1 and 2 from queue 1 and enqueue them to que...read more
Main questions that were asked were based on callbacks, promises, Closures, Event loop.
Some output guessing questions :
1. Difference between let, var, const
2. ES6 features
3. Hoisting
4. Rest,...read more
SQL command
ACID properties
Difference between unique primary and foreign key.
What is the order of execution of sql clause.
The order of execution of SQL clauses is: SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY.
The SELECT clause is executed first to retrieve the desired columns from the table.
The FROM clause is executed next to specify the table(s) from which the data is retrieved.
The WHERE clause is executed after the FROM clause to filter the rows based on specified conditions.
The GROUP BY clause is executed to group the rows based on specified columns.
The HAVING clause is executed after the ...read more
Q154. How we fill some information in all the selected blank space in just one click in Google sheet ?
Yes, we can use the Fill Down feature in Google Sheets to fill information in all selected blank spaces in just one click.
Select the cell with the information you want to fill
Hover over the bottom right corner of the cell until the cursor changes to a small blue square
Click and drag the blue square down to the last cell where you want the information to be filled
Q155. Modify the given 2×2 matrix in such a way that if a cell contains 0 all the elements of corresponding row and columm becomes 0
Modify a 2x2 matrix to replace row and column with 0 if a cell contains 0.
Iterate through the matrix and find the cells with 0.
Store the row and column index of the cells with 0 in separate arrays.
Iterate through the row and column arrays and replace all elements with 0.
Return the modified matrix.
Q156. You are Product Lead of Google Map India. You have a revenue Target of 300 mn USD to cover in a year. Looking at Smartphone penetration of India what you would do. Constraint: Any service can not be covered whi...
read moreExplore partnerships with local businesses to offer location-based promotions and discounts.
Partner with popular local restaurants and cafes to offer exclusive discounts to Google Map users.
Collaborate with retail stores to offer location-based promotions to users who check-in on Google Map.
Introduce a loyalty program for frequent Google Map users, offering rewards and discounts.
Offer premium features such as offline maps and real-time traffic updates for a subscription fee.
E...read more
What is Normalisation and different Normal Forms for a Relational Table?
What is Indexing?
A discussion on Fn. dependencies
What is spooling?
What are the conditions for deadlock to occur?
How is Linked List Implemented in java and when will you prefer it over ArrayList
Questions about scheduling algorithms, dead lock, synchronization etc. were asked.
Q161. Find the odd repeating element from a set of repeating elements
Find the odd repeating element from an array of strings
Use a hash table to count the frequency of each element
Iterate through the hash table to find the element with an odd count
Q162. Infinite scroll - how to handle large size data, efficient and smooth loading by scrolling up & down.
To handle large size data for infinite scroll, use virtual scrolling, lazy loading, and optimize data fetching/rendering.
Implement virtual scrolling to render only the visible items on the screen, reducing memory usage and improving performance.
Use lazy loading to fetch more data as the user scrolls, avoiding loading all data at once.
Optimize data fetching and rendering by using efficient algorithms and data structures, and minimizing unnecessary operations.
Consider implement...read more
Q163. what is memory leak?
Memory leak is a situation where a program fails to release memory it no longer needs.
Memory leaks can cause a program to consume more and more memory over time, eventually leading to crashes or other issues.
Memory leaks can be caused by programming errors such as not freeing memory after it is no longer needed.
Tools like valgrind can be used to detect memory leaks in C and C++ programs.
Examples of memory leaks include forgetting to free memory allocated with malloc() or new,...read more
Q164. which data structure i like?
I prefer hash tables for their constant time lookup and insertion.
Hash tables are efficient for storing and retrieving data.
They have constant time complexity for both insertion and lookup.
They can be implemented using arrays or linked lists.
Examples include Python's dictionary and Java's HashMap.
Q165. design dictionary using trie....having operations of inserting a word, updating and deleting (needed to write full running code)
Design a dictionary using trie with insert, update and delete operations.
Implement a Trie data structure with nodes containing a character and a boolean flag to indicate end of word
For insert operation, traverse the trie and add nodes for each character in the word
For update operation, delete the existing word and insert the updated word
For delete operation, mark the end of word flag as false and delete the node if it has no children
Use recursion for traversal and deletion
Exa...read more
Q166. How much do you know about Paytm Services?
Paytm is a digital payment platform that offers a range of services including mobile recharge, bill payment, and online shopping.
Paytm was launched in 2010 and is headquartered in Noida, India.
It allows users to make payments using their mobile phones, and has over 350 million registered users.
Paytm offers a range of services including mobile recharge, bill payment, online shopping, and financial services such as loans and insurance.
It also has a digital wallet feature that a...read more
Q167. how will you attract your customer to sale our companies products ?
We will attract customers by highlighting the unique features and benefits of our products.
Create a strong marketing campaign that showcases the unique selling points of the products
Offer promotions and discounts to incentivize customers to try the products
Partner with influencers or industry experts to promote the products on social media
Provide excellent customer service to ensure customer satisfaction and repeat business
Collect and showcase positive customer reviews and te...read more
Q168. Number of substrngs which are palindrome
Count the number of palindromic substrings in a given string.
A substring is a contiguous sequence of characters within a string.
A palindrome is a string that reads the same backward as forward.
Use dynamic programming to count all palindromic substrings.
Time complexity can be reduced to O(n^2) using Manacher's algorithm.
Finding the count of visitors that came today and count of new visitors that come today
To find the count of visitors and new visitors that came today in a database management system (DBMS).
Use a query to filter the visitors based on the current date.
Count the total number of visitors using the COUNT function.
To find new visitors, compare the current date with the date of their first visit.
Use the DISTINCT keyword to count only unique new visitors.
There are 12 coins. 11 of them have same weight and one is light in weight than others. We have a weighing balance. Find the minimum times we have to balance to find out the lighter one.
Design a stack that supports getMin() in O(1) time and O(1) extra space
Q172. Design a Stack that can support getMin functionality. Whenever it calls getMin on stack it should return the min element in the stack.
Design a stack that supports getMin functionality to return the minimum element in the stack.
Create two stacks, one for storing the actual elements and another for storing the minimum elements.
Push elements onto both stacks simultaneously.
When popping an element, pop from both stacks.
To get the minimum element, peek at the top of the minimum stack.
Q173. Check wether a given binary tree is a BST or not
To check if a binary tree is a BST, we can perform an in-order traversal and ensure that the elements are in sorted order.
Perform an in-order traversal of the binary tree
Check if the elements are in sorted order
If any element is not in sorted order, then the tree is not a BST
What is segementation.
Difference between internal and external fragmentation.
What is underfitting and overfitting of ML models
Underfitting and overfitting are common problems in machine learning models.
Underfitting occurs when a model is too simple and fails to capture the underlying patterns in the data.
Overfitting happens when a model is too complex and learns the noise or random fluctuations in the training data.
Underfitting leads to high bias and low variance, while overfitting leads to low bias and high variance.
To address underfitting, we can increase model complexity, gather more data, or use...read more
Q176. What is kafka and your use case where you have used
Kafka is a distributed streaming platform used for building real-time data pipelines and streaming applications.
Kafka is used for real-time data processing, messaging, and event streaming.
It provides high-throughput, fault-tolerant, and scalable messaging system.
Example use case: Implementing a real-time analytics dashboard for monitoring website traffic.
He asked me some JavaScript questions again and also told me about the work culture of his team. It was more like an open discussion with some tech questions
Q178. What is BST ?
BST stands for Binary Search Tree, a data structure used for efficient searching and sorting operations.
BST is a tree-like data structure where each node has at most two children.
The left child of a node contains a value less than the parent node, while the right child contains a value greater than the parent node.
BST allows for efficient searching and sorting operations with a time complexity of O(log n).
Examples of applications of BST include dictionary implementations and ...read more
Q179. How to set equal spacing between childs of constraint layout?
To set equal spacing between childs of constraint layout, use the chain style property.
Create a chain of the views that need equal spacing using the chain style property.
Set the chain style to spread inside the constraint layout.
Adjust the margins of the views to control the spacing.
Use the layout_constraintHorizontal_chainStyle or layout_constraintVertical_chainStyle attribute to set the chain style.
Example: app:layout_constraintHorizontal_chainStyle="spread"
Q180. 1. Find the no of rotations in a rotated sorted array.
Find the number of rotations in a rotated sorted array.
Use binary search to find the minimum element in the array.
The number of rotations is equal to the index of the minimum element.
If the minimum element is at index 0, then there are no rotations.
If the array is not rotated, then the number of rotations is 0.
Q181. Decision trees whole topic ,bagging and boosting ?
Decision trees, bagging, and boosting are techniques used in machine learning to improve model accuracy.
Decision trees are a type of model that uses a tree-like structure to make predictions.
Bagging is a technique that involves training multiple models on different subsets of the data and combining their predictions.
Boosting is a technique that involves iteratively training models on the data, with each subsequent model focusing on the errors of the previous model.
Both baggin...read more
Q182. Why the offline data is so important for any company?
Offline data is important for companies as it provides insights into customer behavior and preferences.
Offline data can help companies understand customer behavior and preferences
It can be used to identify trends and patterns in customer data
Offline data can also be used to improve customer experience and personalize marketing efforts
Examples of offline data include in-store purchases, customer service interactions, and surveys
Offline data can be combined with online data to ...read more
Q183. Given a graph, print all the connected components in it.
Print all the connected components in a given graph.
Traverse the graph using DFS or BFS algorithm.
Maintain a visited array to keep track of visited nodes.
For each unvisited node, perform DFS or BFS and add all visited nodes to a connected component.
Repeat until all nodes are visited.
Print all connected components.
SQL command
ACID properties
Difference between unique primary and foreign key.
Q185. How will you perform an audit of a bank where credit card department has not reported any revenue leakage ? how will you test the controls?
I would conduct a thorough review of the credit card department's processes, controls, and documentation to identify any potential revenue leakage.
Review the credit card department's policies and procedures to understand how revenue is recorded and reported
Analyze transaction data to identify any anomalies or discrepancies that could indicate revenue leakage
Conduct interviews with staff members to gain insights into their roles and responsibilities in revenue reporting
Perform...read more
Q186. Merge sort using Linked list ( psuedo code )
Merge sort using linked list is a sorting algorithm that divides the list into smaller sublists, sorts them, and then merges them back together.
Create a function to merge two sorted linked lists
Divide the linked list into two halves using slow and fast pointers
Recursively sort the two halves
Merge the sorted halves back together
Q187. SQL Commands Writing Test Cases for any Product Type of testing
SQL commands are used to interact with databases, writing test cases involves creating scenarios to test product functionality, types of testing include unit, integration, regression, etc.
SQL commands like SELECT, INSERT, UPDATE, DELETE are used to retrieve, add, modify, and delete data in databases
Writing test cases involves creating scenarios to test different aspects of the product such as functionality, performance, security, etc.
Types of testing include unit testing to t...read more
Q188. remove char sequence with a particular number like aaaabcbd remove aaaa
Answering how to remove a character sequence with a particular number from a string.
Identify the character sequence to be removed
Use string manipulation functions to remove the sequence
Repeat until all instances of the sequence are removed
Q189. 1. Mininum cost to reach the last cell of a 2D matrix. Required moves are only downward or to the right direction
Minimum cost to reach last cell of 2D matrix with only downward or right moves.
Use dynamic programming approach to solve the problem.
Calculate minimum cost for each cell by considering minimum cost of its adjacent cells.
Final answer will be the minimum cost to reach the last cell.
Q190. SQL Query to find Nth highest salary from table
SQL query to find Nth highest salary from table
Use ORDER BY and LIMIT clauses
Use subquery to get the Nth highest salary
Handle cases where there are less than N distinct salaries
Q191. Write a code whose output should be 72 by making a call like this add(5,3).mul(9).calc();
Code to output 72 by calling add(5,3).mul(9).calc()
Define a class with add, mul, and calc methods
add method should add two numbers and return the class instance
mul method should multiply the result with a number and return the class instance
calc method should return the final result
Call the methods in the given order to get the output 72
Q192. write a code to convert an account number to asterisk ex: Input : PY12345 Output : PY***45
Code to convert account number to asterisk
Create a function that takes in an account number as input
Use string slicing to replace characters with asterisks
Return the modified account number as output
Find the Department wise highest salary of the employees.
The query finds the highest salary for each department.
Use the GROUP BY clause to group the employees by department.
Use the MAX() function to find the highest salary for each department.
Combine the MAX() function with the GROUP BY clause to get the department wise highest salary.
Q194. WAP to reverse a integer number without using String
Reversing an integer without using string in Python
Convert the integer to a list of digits
Reverse the list
Convert the list back to an integer
Q195. Give 5 strengths and weakness of yours
Strengths: Problem-solving skills, teamwork, adaptability, attention to detail, communication. Weaknesses: Impatience, public speaking, delegation, perfectionism, time management.
Strengths: Problem-solving skills - I enjoy tackling complex issues and finding creative solutions.
Teamwork - I work well with others and value collaboration in achieving common goals.
Adaptability - I am able to quickly adjust to new situations and environments.
Attention to detail - I have a keen eye...read more
Q196. Puzzles - How to track 1.5 hours with 2 candles that burn for 1 hour each without cutting in half.
Use one candle to measure 30 minutes, then light the second candle.
Light the first candle at both ends, it will burn for 30 minutes.
At the same time, light the second candle from one end.
When the first candle burns out after 30 minutes, light the other end of the second candle.
The second candle will burn for another 30 minutes, totaling 1.5 hours.
Q198. How many classes can be present in a Java file
A Java file can have multiple classes, but only one public class.
A Java file can have multiple non-public classes.
The name of the public class must match the name of the file.
Only the public class can be accessed from outside the file.
Q199. Scenario: Suppose a build is supposed to go live in 2 hrs but you just found a bug while monkey testing. What would you do now?
I would prioritize the bug based on its severity and impact on the build release.
Assess the severity and impact of the bug on the build release timeline.
Communicate with the development team to understand the root cause of the bug.
Determine if a quick fix can be implemented within the 2-hour timeframe.
If a quick fix is not possible, evaluate the option of delaying the build release or releasing with the known bug.
Document the bug and its impact on the build release for future...read more
Q200. What are the compliance we follow. Percentage of pf and esic
We follow all statutory compliance including PF and ESI. The percentage varies based on employee salary.
We comply with all statutory regulations related to PF and ESI
The percentage of contribution towards PF and ESI varies based on the employee's salary
For PF, the employer contributes 12% of the employee's basic salary and the employee contributes an equal amount
For ESI, the employer contributes 4.75% of the employee's gross salary and the employee contributes 1.75%
The thresh...read more
Top HR Questions asked in Vsmart World Communication
Interview Process at Vsmart World Communication
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month