TCS
40+ Circles.Life Interview Questions and Answers
Q1. Explain oops concepts with an example
Explanation of OOPs concepts with an example
OOPs stands for Object-Oriented Programming
Encapsulation - Binding data and functions that manipulate the data together
Inheritance - A class can inherit properties and methods from another class
Polymorphism - Ability of an object to take many forms
Abstraction - Hiding implementation details and showing only functionality
Example: A car is an object that has properties like color, model, and methods like start, stop, accelerate
Encapsu...read more
Q2. What id difference between procedure and function
A procedure is a set of instructions that performs a specific task, while a function is a procedure that returns a value.
Procedures are used to perform actions, while functions are used to calculate and return values.
Procedures do not have a return statement, while functions always have a return statement.
Functions can be called within expressions, while procedures cannot.
Procedures can have input parameters, while functions can have both input parameters and a return value.
Q3. What is trigger explain with syntax
A trigger is a special type of stored procedure that automatically executes in response to certain events.
Triggers are used to enforce business rules or to perform complex calculations.
Syntax: CREATE TRIGGER trigger_name {BEFORE | AFTER} {INSERT | UPDATE | DELETE} ON table_name FOR EACH ROW {trigger_body}
Example: CREATE TRIGGER audit_log AFTER INSERT ON employees FOR EACH ROW INSERT INTO audit VALUES (NEW.id, 'inserted', NOW())
Q4. What is polymorphism
Polymorphism is the ability of an object to take on many forms.
It allows objects of different classes to be treated as if they were objects of the same class.
It is achieved through method overriding and method overloading.
Example: A shape class can have different subclasses like circle, square, triangle, etc. and all of them can be treated as shapes.
Example: A method can have different implementations in different classes but can be called using the same name.
Example: The + o...read more
Q5. What are state management
State management is the process of managing the state of an application or system.
It involves storing and updating data that represents the current state of the application.
State can be managed locally or globally, depending on the architecture of the application.
Common techniques for state management include using local state, global state, and state containers like Redux.
Examples of state management in action include updating the UI based on user input, managing user authen...read more
Q6. Difference between interface and abastract, required and include, method overriding and method over loading
Interface vs abstract, required vs include, method overriding vs overloading
Interface is a contract that defines methods that must be implemented by a class, while abstract class can have implemented methods
Required is used to specify mandatory dependencies in a module, while include is used to import code from another file
Method overriding is when a subclass provides its own implementation of a method from its superclass, while overloading is when a class has multiple method...read more
Q7. how does view get to know that binded property has been changed in viewmodel
The view gets to know that a binded property has been changed in the viewmodel through data binding mechanisms.
Data binding mechanisms like two-way binding or event listeners are used to notify the view of property changes in the viewmodel.
Frameworks like Angular, React, or Vue.js provide built-in mechanisms for handling property changes in the viewmodel.
ViewModels often implement observable patterns or use libraries like RxJS to notify the view of property changes.
Q8. Explain about javascript selector
JavaScript selectors are used to select and manipulate HTML elements.
Selectors can be used with methods like getElementById(), getElementsByClassName(), and querySelector().
Selectors can target specific elements based on their tag name, class, ID, attributes, and more.
Selectors can also be combined to create more complex queries.
Examples: document.getElementById('myElement'), document.querySelector('.myClass')
Q9. What are constraints
Constraints are limitations or restrictions that are put in place to ensure certain requirements are met.
Constraints can be physical, such as the size of a database or the amount of memory available
Constraints can also be logical, such as business rules or security requirements
Constraints can help ensure data integrity and prevent errors or security breaches
Examples of constraints include primary keys, foreign keys, check constraints, and unique constraints
Q10. What is view state
View state is a feature in ASP.NET that preserves the state of server-side controls between postbacks.
View state is used to maintain the state of server-side controls between postbacks.
It is a hidden field on the page that stores the values of the controls.
View state can be disabled to improve performance, but it may cause issues with control state.
Example: A text box retains its value even after a postback due to view state.
Q11. What is different between java and C++
Java is platform-independent, object-oriented, and has automatic memory management, while C++ is platform-dependent, supports multiple inheritance, and requires manual memory management.
Java is platform-independent, while C++ is platform-dependent
Java is object-oriented, while C++ supports both procedural and object-oriented programming
Java has automatic memory management (garbage collection), while C++ requires manual memory management
Java does not support multiple inheritan...read more
Q12. Sql Join IIS server Project on which you worked
SQL Join is used to combine rows from two or more tables based on a related column between them.
INNER JOIN returns only the matching rows between tables
LEFT JOIN returns all rows from the left table and matching rows from the right table
RIGHT JOIN returns all rows from the right table and matching rows from the left table
FULL OUTER JOIN returns all rows from both tables
IIS server is a web server used to host web applications
Project details depend on individual experience
Q13. what is the execution order of ACLs?
ACLs (Access Control Lists) are evaluated in a specific order to determine access permissions for resources.
ACLs are processed in a top-down manner, meaning the first matching rule is applied.
Explicit Deny rules take precedence over Allow rules, meaning if a user is denied access, they cannot access the resource, regardless of Allow rules.
If no rules match, the default behavior (usually Deny) is applied.
Example: If an ACL has a rule to Deny access to 'User A' and another rule...read more
Q14. What is the advantage of helper file
Helper files provide reusable functions and code snippets to simplify development tasks.
Organizes code into separate files for better maintainability
Encapsulates common functions for easy reuse
Reduces code duplication and promotes DRY (Don't Repeat Yourself) principle
Improves readability and modularity of code
Example: A helper file containing functions for date formatting used across multiple components
Q15. Are u available for rotational shifts
Yes, I am available for rotational shifts.
I am flexible with my work schedule and can accommodate rotational shifts.
I understand the importance of being available during different times to support the team.
I have previous experience working in rotational shifts and have no issues with it.
Q16. what is callback hell and how to avoid
Callback hell refers to the difficulty of managing nested callbacks in asynchronous programming, leading to complex and unreadable code.
Use Promises: Instead of callbacks, use Promises to handle asynchronous operations, which can be chained for better readability.
Async/Await: Utilize async/await syntax to write asynchronous code that looks synchronous, making it easier to read and maintain.
Modularize Code: Break down complex functions into smaller, reusable functions to reduc...read more
Q17. write a python code to print pattern using stars
Python code to print a pattern using stars
Use nested loops to iterate through rows and columns
Use if-else statements to determine when to print a star or a space
Adjust the range and conditions to create different patterns
Example: Printing a pyramid pattern
Example: Printing a diamond pattern
Q18. Are you familiar with microservices?
Microservices are an architectural style that structures an application as a collection of loosely coupled services.
Microservices allow for independent deployment of services, enhancing agility.
Each service can be developed in different programming languages; for example, a service in Java and another in Python.
Microservices communicate over lightweight protocols, often using REST APIs or messaging queues.
They promote scalability; for instance, if one service experiences high...read more
Q19. Difference between String and StringBuffer
String is immutable, StringBuffer is mutable in Java.
String is immutable, meaning its value cannot be changed once it is created.
StringBuffer is mutable, meaning its value can be changed after it is created.
StringBuffer is synchronized, making it thread-safe for use in multi-threaded environments.
StringBuffer is slower than String for most operations due to synchronization.
Example: String str = "Hello"; StringBuffer sb = new StringBuffer("World");
Q20. what is hoisting in javascript?
Hoisting in JavaScript is the behavior where variable and function declarations are moved to the top of their containing scope during the compilation phase.
Variable declarations are hoisted to the top of their scope, but not their initializations.
Function declarations are fully hoisted, including their definitions.
Hoisting can lead to unexpected behavior if not understood properly.
Q21. Tell me something about AI
AI, or artificial intelligence, is the simulation of human intelligence processes by machines, especially computer systems.
AI involves the development of algorithms that can perform tasks that typically require human intelligence, such as visual perception, speech recognition, decision-making, and language translation.
Machine learning is a subset of AI that focuses on the development of algorithms that allow computers to learn from and make predictions or decisions based on d...read more
Q22. Write a program to reverse a string
Program to reverse a string using array of characters
Create a character array from the input string
Use two pointers to swap characters from start and end of the array
Continue swapping until the pointers meet in the middle
Q23. Mutable and Immutable objects in java
Mutable objects can be changed after creation, while immutable objects cannot be changed.
Mutable objects can have their state modified after creation, while immutable objects cannot.
String and Integer objects are immutable in Java.
Examples of mutable objects include ArrayList and StringBuilder.
Immutable objects are thread-safe by default.
Immutable objects are more secure as their state cannot be changed.
Q24. Are you ok for Hybrid working
Yes, I am open to hybrid working arrangements that combine remote and in-office work.
I am comfortable with a mix of working from home and in the office
I have experience successfully collaborating with team members remotely
I am adaptable and can manage my time effectively in different work environments
Q25. What is binding in wpf?
Binding in WPF is a way to connect the data in your application to the user interface elements.
Binding allows you to automatically synchronize the data between the source and the target.
You can use different types of bindings like one-way, two-way, and one-time.
Examples include binding a textbox to a property in a view model or binding a list to a listbox.
Q26. what are data templates?
Data templates are predefined structures used to organize and format data in a consistent manner.
Data templates help ensure data consistency and accuracy.
They provide a framework for organizing and presenting data in a standardized way.
Examples include HTML templates for web pages, document templates in word processors, and database templates for storing information.
Q27. What is inheritance? Types
Inheritance is a concept in object-oriented programming where a class inherits attributes and methods from another class.
Allows a class to inherit attributes and methods from another class
Types include single inheritance, multiple inheritance, and multilevel inheritance
Example: Class B inherits from Class A, gaining access to its attributes and methods
Q28. Write a program using java 8 stream
Program using Java 8 stream to filter even numbers from an array
Create an array of integers
Use Java 8 stream to filter even numbers
Print the filtered even numbers
Q29. what is cluster in nodejs
Cluster in Node.js allows you to create multiple child processes to handle concurrent requests, improving performance and scalability.
Node.js runs on a single thread, which can limit performance for CPU-intensive tasks.
The cluster module enables you to spawn multiple child processes (workers) that share the same server port.
Each worker runs in its own thread, allowing for better utilization of multi-core systems.
Example: You can create a simple HTTP server that forks multiple...read more
Q30. 2)What is cookies 3)laravel trait
Cookies are small pieces of data stored on the client's computer by the web server to track user activity.
Cookies are used to store user preferences, login information, and shopping cart items.
They can be set, retrieved, and deleted using JavaScript or server-side code.
Cookies have an expiration date and can be either session cookies (deleted when the browser is closed) or persistent cookies (stored for a longer period).
Q31. What is cloud computing
Cloud computing is the delivery of computing services over the internet, including storage, databases, networking, software, and more.
Allows users to access and use resources on-demand
Reduces the need for physical hardware and infrastructure
Examples: Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform
Q32. 1)What is session
A session is a way to store information (state) about a user's interactions with a website or application.
Sessions are used to maintain user-specific data across multiple pages or interactions.
Sessions typically involve a unique identifier (session ID) that is stored on the server and passed to the client.
Session data can include user preferences, shopping cart contents, login status, etc.
Sessions can be implemented using cookies, URL parameters, hidden form fields, or server...read more
Q33. What is Data table
A data table is a way to organize data in rows and columns for easy access and manipulation.
Data tables are commonly used in databases to store and organize large amounts of data.
Each row in a data table represents a single record or entry, while each column represents a specific attribute or field.
Data tables can be sorted, filtered, and searched to quickly find and analyze data.
Examples of data table software include Microsoft Excel, Google Sheets, and SQL databases.
Q34. Explain all oops concept
OOPs concepts are the pillars of object-oriented programming that help in building robust and scalable software applications.
Abstraction: Hiding the implementation details and showing only the necessary information.
Encapsulation: Binding data and functions together and restricting access to data from outside the class.
Inheritance: Acquiring properties and behavior of a parent class by a child class.
Polymorphism: Ability of an object to take many forms or have multiple behavio...read more
Q35. What is java
Java is a high-level, object-oriented programming language designed for portability and ease of use across platforms.
Platform-independent: Java code can run on any device with a Java Virtual Machine (JVM). Example: Write once, run anywhere.
Object-oriented: Supports concepts like inheritance, encapsulation, and polymorphism. Example: Class and object structures.
Rich API: Provides a vast set of libraries for various tasks. Example: Java Collections Framework for data structures...read more
Q36. what is servicenow
ServiceNow is a cloud-based platform that automates IT service management and business processes.
Provides IT service management (ITSM) solutions to streamline IT operations.
Offers modules for incident management, problem management, and change management.
Facilitates workflow automation across various business functions, not just IT.
Integrates with other tools and platforms, enhancing overall productivity.
Utilizes a user-friendly interface and customizable dashboards for bette...read more
Q37. what is module
A module is a self-contained unit of code that encapsulates functionality, promoting reusability and organization in software development.
Modules can contain functions, classes, and variables.
They help in organizing code into manageable sections, e.g., a 'math' module for mathematical operations.
In Python, a module is a .py file that can be imported using 'import' statement.
JavaScript uses modules (ES6) to encapsulate code, e.g., 'export' and 'import' keywords.
Modules can als...read more
Q38. what is reactjs
ReactJS is a JavaScript library for building user interfaces.
ReactJS is developed and maintained by Facebook.
It uses a component-based architecture for building reusable UI components.
ReactJS uses a virtual DOM for efficient rendering of components.
It allows for declarative programming, making it easier to reason about the UI.
ReactJS can be used for building single-page applications, mobile apps, and more.
Q39. WHAT IS NODE JS
Node.js is a runtime environment that allows you to run JavaScript on the server side.
Node.js is built on Chrome's V8 JavaScript engine.
It uses an event-driven, non-blocking I/O model.
Node.js is commonly used for building scalable network applications.
Q40. Hello world java program
The Hello World program in Java is a simple program that prints 'Hello, World!' to the console.
The program starts with the 'public class' declaration.
The 'main' method is the entry point of the program.
The 'System.out.println()' statement is used to print the message.
The program must be saved with a '.java' extension and compiled before execution.
Q41. Event loop in Node.js
Event loop in Node.js manages asynchronous operations by executing callback functions when certain events occur.
Event loop is responsible for handling I/O operations, timers, and callbacks in Node.js.
It allows Node.js to perform non-blocking operations, making it efficient for handling multiple requests.
Event loop continuously checks the event queue for any pending events and executes them in a loop.
Example: setTimeout() function in Node.js uses event loop to execute the call...read more
More about working at TCS
Top HR Questions asked in Circles.Life
Interview Process at Circles.Life
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month