TCS
40+ Vamosys Interview Questions and Answers
Q1. What are the functions used in a particular code.
The functions used in the code are calculateSum, displayResult, and validateInput.
calculateSum - calculates the sum of two numbers
displayResult - displays the result of the calculation
validateInput - checks the validity of user input
Q2. What is pointers and what is tree and a program to print pattern
Pointers are variables that store memory addresses. Trees are data structures consisting of nodes connected by edges. A program to print pattern can vary depending on the desired pattern.
Pointers are used to manipulate memory and create dynamic data structures.
They can be used to pass values by reference instead of by value.
Example: int *ptr; ptr = # *ptr = 10; //num now equals 10
Trees are used to represent hierarchical relationships between data.
They consist of nodes connect...read more
Q3. Write a program to sort the elements( Bubble sorting technique)
Bubble sort program for sorting an array of strings.
Create a function to perform bubble sort
Loop through the array and compare adjacent elements
Swap elements if they are in the wrong order
Repeat until no more swaps are needed
Return the sorted array
Q4. Different between primary key and foreign key
Primary key uniquely identifies a record in a table, while foreign key refers to a field in another table.
Primary key is unique and cannot be null
Foreign key is used to establish a relationship between two tables
Primary key can be used as a foreign key in another table
Foreign key can have null values
Example: CustomerID in Orders table is a foreign key referencing CustomerID in Customers table
Q5. Why you want to join tcs OOPs concepts , what is jvm and jdk
I want to join TCS because of its reputation and opportunities. OOPs concepts are fundamental to object-oriented programming. JVM and JDK are essential components of Java programming.
TCS is a well-known and respected company in the IT industry
TCS offers a wide range of opportunities for career growth and development
OOPs concepts are important for creating modular and reusable code
JVM is the virtual machine that executes Java bytecode
JDK is the Java Development Kit that includ...read more
Q6. Two coding question-program for anagrams and find the number is prime or not.
Two coding questions - program for anagrams and finding if a number is prime or not.
For anagrams, compare sorted versions of the two strings.
For prime numbers, check if the number is divisible by any number less than its square root.
Use a loop to iterate through the numbers less than the square root of the number.
Q7. difference between template driven and reactive form
Template driven forms are based on directives while reactive forms are based on reactive programming.
Template driven forms are easier to use and require less code.
Reactive forms are more flexible and allow for more complex validation.
Template driven forms are suitable for simple forms while reactive forms are better for complex forms.
Template driven forms use two-way data binding while reactive forms use observable streams.
Template driven forms are synchronous while reactive ...read more
Q8. What is MVC? Explain how it is work
MVC stands for Model-View-Controller. It is a software design pattern used to separate an application's concerns.
Model represents the data and business logic
View displays the data to the user
Controller handles user input and updates the model and view accordingly
MVC promotes separation of concerns and modularity
Examples include Ruby on Rails, ASP.NET MVC, and Spring MVC
Q9. Explain how to connect DB with API
To connect a database with an API, you need to establish a connection between the database and the API server.
Create an API endpoint that will handle database operations such as CRUD (Create, Read, Update, Delete) operations.
Use database drivers or ORM (Object-Relational Mapping) libraries to interact with the database from the API code.
Establish a secure connection between the API server and the database by configuring authentication and authorization mechanisms.
Handle error...read more
Q10. What is pointer in c?
A pointer in C is a variable that stores the memory address of another variable.
Pointers are used to manipulate memory and create dynamic data structures.
They can be used to pass values by reference to functions.
Pointer arithmetic can be used to iterate over arrays and manipulate data.
Null pointers are used to indicate that a pointer does not point to a valid memory address.
Q11. what are angular life cycle?
Angular lifecycle hooks are methods that get called at specific stages of a component's life.
There are eight lifecycle hooks in Angular
ngOnInit() is called after the component is initialized
ngOnChanges() is called when the component's input properties change
ngDoCheck() is called during every change detection cycle
ngAfterViewInit() is called after the component's view has been initialized
ngOnDestroy() is called just before the component is destroyed
Q12. Why pointer is not in Java?
Java doesn't have pointers because of security and memory allocation issues.
Java uses references instead of pointers.
Pointers can cause security vulnerabilities and memory leaks.
Java's garbage collector manages memory allocation automatically.
Java's lack of pointers makes it more secure and easier to use than languages like C++.
Q13. how does angular application starts
Angular application starts by bootstrapping the AppModule.
Angular application is a single page application that runs in the browser.
The AppModule is the root module of the application.
The AppModule is bootstrapped by calling the bootstrapModule method in main.ts file.
The bootstrapModule method creates an instance of the AppModule and starts the application.
Q14. What TCS do? Tell me about TCS.
TCS (Tata Consultancy Services) is a global IT services, consulting, and business solutions company.
TCS provides IT services, consulting, and business solutions to clients worldwide.
It is one of the largest IT services companies in the world.
TCS offers a wide range of services including application development, infrastructure services, and digital transformation.
The company is known for its innovation and expertise in emerging technologies like AI, IoT, and blockchain.
TCS has...read more
Q15. what is Inheritance . Give some example
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
Promotes code reusability and reduces redundancy
Derived class can add its own attributes and methods or override existing ones
Example: Parent class 'Animal' with attributes 'name' and method 'eat', Child class 'Dog' inherits 'Animal' and adds method 'bark'
Q16. Tell me something which is not in resume
I have experience in troubleshooting complex network issues.
I have successfully resolved network connectivity issues for a large organization.
I am skilled in using network monitoring tools to identify and resolve network problems.
I have implemented network security measures to protect against cyber threats.
I have experience in configuring and managing routers, switches, and firewalls.
I have a strong understanding of TCP/IP protocols and network protocols such as DNS, DHCP, an...read more
Q17. What is Oops? Explain
Oops stands for Object-Oriented Programming System. It is a programming paradigm based on objects.
Oops is a programming paradigm that focuses on objects and their interactions.
It allows for encapsulation, inheritance, and polymorphism.
Encapsulation refers to the hiding of implementation details within an object.
Inheritance allows for the creation of new classes based on existing ones.
Polymorphism allows for the use of a single interface to represent multiple types of objects....read more
Q18. What is malloc calloc?
malloc and calloc are functions used in C programming language to dynamically allocate memory.
malloc stands for memory allocation and is used to allocate a block of memory of specified size.
calloc stands for contiguous allocation and is used to allocate multiple blocks of memory of specified size.
Both functions return a pointer to the first byte of the allocated memory.
It is important to free the allocated memory using the free() function to avoid memory leaks.
Q19. What are the latest technologies
Some of the latest technologies include artificial intelligence, machine learning, blockchain, Internet of Things (IoT), and 5G.
Artificial intelligence (AI) - technology that enables machines to learn from experience and perform tasks that typically require human intelligence.
Machine learning - subset of AI that allows systems to learn and improve from experience without being explicitly programmed.
Blockchain - decentralized and secure way of recording transactions across mul...read more
Q20. Explain about sort using python
Sorting in Python can be done using built-in functions like sorted() or sort() method.
Use sorted() function to return a new sorted list without modifying the original list.
Use sort() method to sort the list in-place.
You can specify key function to customize the sorting order.
Example: nums = [3, 1, 4, 1, 5, 9, 2]; sorted_nums = sorted(nums); nums.sort()
Q21. What is Machine Learning.
Machine learning is a branch of artificial intelligence that involves developing algorithms and models that allow computers to learn from and make predictions or decisions based on data.
Machine learning involves training algorithms to learn patterns and make predictions or decisions without being explicitly programmed.
It uses data to improve performance on a specific task over time.
Examples include recommendation systems, image recognition, and natural language processing.
Typ...read more
Q22. What is multithreading
Multithreading is the ability of a CPU to execute multiple threads concurrently.
Multithreading allows for parallel processing and can improve performance.
Threads share the same memory space and can communicate with each other.
Examples of multithreaded applications include web servers and video games.
Multithreading can also lead to synchronization issues and race conditions.
Q23. linkedlist to get middle of element
To get the middle element of a linked list, use two pointers - one slow and one fast.
Initialize two pointers - slow and fast
Move slow pointer one step at a time and fast pointer two steps at a time
When fast pointer reaches the end, slow pointer will be at the middle element
Q24. rxjs operators in angular
RxJS operators are used in Angular to handle asynchronous data streams.
Operators are functions that manipulate the data streams
They can be used for filtering, mapping, reducing, and more
Common operators include map, filter, switchMap, and mergeMap
Q25. Internal implementation of springboot
Spring Boot provides a default internal implementation for various features such as auto-configuration, embedded server, etc.
Spring Boot uses auto-configuration to automatically configure various components based on the dependencies present in the classpath.
The embedded server provided by Spring Boot is Tomcat by default, but can be changed to Jetty or Undertow.
Spring Boot also provides a default implementation for various other features such as logging, security, data access...read more
Q26. What's your intrest on coading
I have a strong interest in coding as it allows me to solve complex problems and create innovative solutions.
I enjoy the logical thinking and problem-solving aspect of coding
I find satisfaction in seeing my code come to life and work efficiently
Coding allows me to continuously learn and improve my skills
I have experience in languages such as Java, Python, and C++
Q27. explain different directives
Directives are instructions given to the compiler to perform specific tasks during compilation.
There are different types of directives such as include, define, pragma, and ifdef
Include directive is used to include header files in the program
Define directive is used to define constants or macros
Pragma directive is used to provide additional information to the compiler
Ifdef directive is used to check if a particular macro is defined or not
Q28. core constructs of angular
Angular has core constructs like components, modules, services, directives, pipes, and templates.
Components are the building blocks of Angular applications.
Modules are used to organize the application into cohesive blocks of functionality.
Services are used to share data or functionality across components.
Directives are used to add behavior to an existing DOM element or create a new one.
Pipes are used to transform data before displaying it in the view.
Templates are used to def...read more
Q29. auth guards in angular
Auth guards in Angular are used to protect routes from unauthorized access.
Auth guards are used to check if a user is authenticated before allowing access to a route.
They can also be used to check if a user has certain permissions before allowing access.
Angular provides built-in auth guards like CanActivate, CanActivateChild, CanLoad, and CanDeactivate.
Custom auth guards can also be created by implementing the CanActivate interface.
Example: canActivate: [AuthGuard] in the rou...read more
Q30. What is oops?
OOPs stands for Object-Oriented Programming. It is a programming paradigm that uses objects to design applications.
OOPs focuses on creating reusable code and organizing it into objects.
It allows for encapsulation, inheritance, and polymorphism.
Examples of OOPs languages include Java, C++, and Python.
Q31. Explain web api concepts
Web API concepts involve creating interfaces for communication between different software systems over the internet.
Web API stands for Application Programming Interface, which allows different software systems to communicate with each other over the internet.
Web APIs use HTTP protocols to define a set of rules for communication between systems.
Web APIs can be used to access data, services, or functionality from a remote server.
Examples of Web APIs include RESTful APIs, SOAP A...read more
Q32. Type of joining in SQL
There are two types of joining in SQL: Inner Join and Outer Join.
Inner Join returns only the matching rows from both tables.
Outer Join returns all the rows from both tables, with NULL values for non-matching rows.
Outer Join has three sub-types: Left Join, Right Join, and Full Outer Join.
Q33. What is C language
C language is a high-level programming language used for system programming, embedded systems, and software development.
C language was developed by Dennis Ritchie at Bell Labs in the early 1970s.
It is a procedural programming language with a rich set of built-in functions and operators.
C is widely used for developing operating systems, compilers, and applications where performance is crucial.
Example: printf("Hello, World!");
Q34. Final and static keyword difference
Final keyword is used to restrict the modification of a variable, while static keyword is used to declare a variable as class-level.
Final keyword is used to make a variable constant and cannot be reassigned.
Static keyword is used to declare a variable that belongs to the class itself, not to instances of the class.
Final keyword can be applied to variables, methods, and classes.
Static keyword can be applied to variables, methods, and classes.
Q35. Different Storages available in AWS
AWS offers various storage options including EBS, S3, Glacier, EFS, and Storage Gateway.
EBS - Elastic Block Store for persistent block storage
S3 - Simple Storage Service for object storage
Glacier - Low-cost archival storage
EFS - Elastic File System for scalable file storage
Storage Gateway - Hybrid storage service for on-premises access to AWS cloud storage
Q36. ML project example
Developed a machine learning model to predict customer churn in a telecom company.
Collected and cleaned customer data including usage patterns and demographics.
Used classification algorithms like Random Forest and Logistic Regression to train the model.
Evaluated model performance using metrics like accuracy, precision, and recall.
Implemented the model in a production environment to monitor and predict customer churn.
Q37. Find elements and Xpath
To find elements and Xpath, use developer tools in browser or automation tools like Selenium.
Use browser developer tools to inspect elements and generate Xpath
In automation testing, use tools like Selenium to locate elements using Xpath
Xpath is a syntax used to navigate through elements in XML or HTML documents
Q38. Different between get and set
Get is used to retrieve a value, while set is used to assign a value.
Get is used to access the value of a variable or property, while set is used to change or update the value.
Example: getAge() vs setAge(30)
Get is often used in getter methods to return the value of a private variable, while set is used in setter methods to update the value of a private variable.
Q39. Explain about structures in c
Structures in C are user-defined data types that allow you to group different variables under a single name.
Structures are used to represent a record.
They can contain variables of different data types.
You can access the members of a structure using the dot operator.
Structures are defined using the 'struct' keyword.
Q40. Steps in software development
Software development involves several steps including planning, designing, coding, testing, and deployment.
Planning: Define project goals, requirements, and timelines.
Designing: Create a blueprint of the software architecture and user interface.
Coding: Write the actual code based on the design.
Testing: Verify that the software functions correctly and meets requirements.
Deployment: Release the software to users and maintain it as needed.
Q41. Define polymorphism
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they are objects of the same class.
It is achieved through method overriding and method overloading.
Example: A shape class can have multiple subclasses like circle, square, triangle, etc. and all of them can be treated as shapes.
Polymorphism makes code more flexible and reusable.
Q42. vraiables in python
Variables in Python are used to store data values and can be assigned different types of data.
Variables in Python do not need to be declared with a specific data type.
Variables are assigned using the = operator.
Variables can be reassigned to different values throughout the program.
Variable names must start with a letter or underscore, followed by letters, numbers, or underscores.
Q43. Logic for factorial
Factorial is the product of all positive integers up to a given number.
Factorial of 0 is 1.
Factorial of a negative number is not defined.
Factorial can be calculated recursively or iteratively.
Example: 5! = 5 * 4 * 3 * 2 * 1 = 120.
Q44. Assert and verify
Assert and verify are used in software testing to validate expected outcomes and actual results.
Assert is used to validate expected outcomes in the code
Verify is used to validate actual results during testing
Assert throws an error if the condition is false
Verify does not throw an error but logs a message if the condition is false
More about working at TCS
Top HR Questions asked in Vamosys
Interview Process at Vamosys
Reviews
Interviews
Salaries
Users/Month