Paisabazaar.com
TCS Interview Questions and Answers
Q1. Tell the output among various for loops using var, let and bind.
Output comparison of for loops using var, let, and bind in JavaScript.
Using var: variable is function-scoped, may lead to unexpected behavior in loops.
Using let: variable is block-scoped, recommended for loop iterations.
Using bind: creates a new function with a specified 'this' value and initial arguments.
Q2. What do you do on daily basis, and how to decide a tech-stack on high level.
I work on coding, debugging, testing, and collaborating with team members. Tech stack decisions are based on project requirements, scalability, performance, and team expertise.
Daily tasks include coding, debugging, testing, and collaborating with team members
Tech stack decisions are based on project requirements, scalability, performance, and team expertise
Consider factors like language compatibility, libraries/frameworks availability, community support, and future scalabilit...read more
Q3. Tell the order of output, among process, promise, setTimeout, fs, setInterval.
The order of output is fs, process, setTimeout, setInterval, promise.
fs module is synchronous and will output first
process is next in line
setTimeout will be executed after process
setInterval will be executed after setTimeout
promise will be executed last
Q4. Design an online scalable, real-time document sharing application like google docs.
Design a scalable, real-time document sharing app like Google Docs.
Use websockets for real-time collaboration
Implement version control to track changes
Utilize a distributed database for scalability
Include user authentication and access control
Support offline editing with automatic sync
Q5. What is event loop, how it works.
Event loop is a mechanism in programming that allows for asynchronous execution of code by continuously checking for and handling events.
Event loop is commonly used in JavaScript to handle asynchronous operations like setTimeout, setInterval, and AJAX requests.
It works by continuously checking the event queue for any pending events, executing them one by one, and then moving on to the next event.
Event loop helps in preventing blocking of the main thread by allowing non-blocki...read more
Q6. How to handle images also in the future.
Utilize cloud storage for scalability, implement image compression techniques, and regularly update image processing libraries.
Utilize cloud storage for scalability
Implement image compression techniques
Regularly update image processing libraries
Q7. JavaScript usages compiler or interpreter.
JavaScript is an interpreted language.
JavaScript is an interpreted language, meaning it is executed line by line at runtime.
There is no separate compilation step in JavaScript like in languages that use compilers.
Examples of interpreted languages include Python, Ruby, and PHP.
Interview Process at TCS
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month