TCS
20+ CapeStart Interview Questions and Answers
Q1. What are the different types of complexities?
There are various types of complexities, such as time complexity, space complexity, algorithmic complexity, and computational complexity.
Time complexity refers to the amount of time taken by an algorithm to run, often measured in terms of the input size.
Space complexity refers to the amount of memory space required by an algorithm to run, also measured in terms of the input size.
Algorithmic complexity refers to the efficiency of an algorithm in terms of time and space require...read more
Q2. What is your favorite programming language?
My favorite programming language is Python.
I love Python's simplicity and readability.
It has a vast library of modules and frameworks.
Python is versatile and can be used for web development, data analysis, and more.
It's also great for automation and scripting tasks.
Examples: Flask, Django, NumPy, Pandas, BeautifulSoup
Q3. What are lists and tuples? Difference between them like that.
Lists and tuples are both data structures in Python, but lists are mutable while tuples are immutable.
Lists are denoted by square brackets [] while tuples are denoted by parentheses ().
Lists can be modified after creation, while tuples cannot be modified.
Lists are used for collections of items that may need to be changed, while tuples are used for fixed collections of items.
Example: list = [1, 2, 3] ; tuple = (4, 5, 6)
Q4. Difference between Merge sort and Heap sort?
Merge sort and Heap sort are both comparison-based sorting algorithms, but they differ in their approach and performance.
Merge sort is a divide-and-conquer algorithm that divides the input array into two halves, recursively sorts them, and then merges the sorted halves.
Heap sort is based on the concept of a binary heap, which is a complete binary tree where each node is greater than or equal to its children. It involves building a max heap and repeatedly extracting the maximu...read more
Q5. Different methods of using CSS in Web pages?
CSS can be used in web pages through inline, internal, and external methods.
Inline CSS is used within the HTML tag using the style attribute.
Internal CSS is used within the head section of the HTML document using the style tag.
External CSS is used in a separate file and linked to the HTML document using the link tag.
CSS preprocessors like Sass and Less can also be used to write CSS in a more efficient way.
CSS frameworks like Bootstrap and Foundation provide pre-written CSS co...read more
Q6. Describe the code vita problems you solved from your Btech 2nd year to till now and your approach to the questions solved.
I have solved multiple CodeVita problems from 2nd year till now using various approaches.
Solved problems using dynamic programming, recursion, and brute force methods.
One of the problems I solved was to find the shortest path in a maze using BFS algorithm.
Another problem was to find the maximum sum subarray using Kadane's algorithm.
Approached problems by breaking them down into smaller sub-problems and solving them individually.
Used online resources and peer discussions to im...read more
Q7. Which programming languages you are comfortable in?
I am comfortable in programming languages such as Java, Python, and C++.
Java
Python
C++
Q8. How Java Script works?
JavaScript is a scripting language used to create interactive web pages.
JavaScript code is embedded in HTML and executed by web browsers.
It can manipulate HTML and CSS to create dynamic effects.
It supports object-oriented programming and functional programming.
JavaScript can be used for client-side and server-side scripting.
Popular JavaScript frameworks include React, Angular, and Vue.
Q9. Tell me the features of those programming languages
The features of programming languages vary, but some common ones include syntax, data types, control structures, and libraries.
Syntax: Programming languages have their own unique syntax for writing code.
Data Types: Languages support different data types such as integers, strings, and booleans.
Control Structures: Languages provide control structures like loops and conditionals for program flow.
Libraries: Many languages have libraries or frameworks that provide pre-written code...read more
Q10. How do you store a ArrayList of Object in database ref JDBC
To store an ArrayList of Object in a database using JDBC, create a table with columns for each object property.
Create a table with columns for each object property
Use PreparedStatement to insert data into the table
Retrieve data using SELECT statement and ResultSet
Convert ResultSet to ArrayList of Objects
Q11. Stack, Queues and their implementations?
Stacks and queues are data structures used to store and retrieve elements in a specific order.
Stacks follow the Last-In-First-Out (LIFO) principle, where the last element added is the first one to be removed.
Queues follow the First-In-First-Out (FIFO) principle, where the first element added is the first one to be removed.
Stacks can be implemented using arrays or linked lists.
Queues can also be implemented using arrays or linked lists.
Examples of stack usage include the undo ...read more
Q12. 1.encapsulations 2.differnce b/w structure and class 3.difference b/w array and pointer 4.explain project
The interview questions cover topics like encapsulation, structures vs classes, arrays vs pointers, and project explanation.
Encapsulation refers to bundling data and methods that operate on the data into a single unit. Example: a class in object-oriented programming.
Structures are used to group different data types into a single unit, while classes can also include methods to operate on the data. Example: struct vs class in C++.
Arrays are collections of elements of the same d...read more
Q13. What is encapsulation with day to day example
Encapsulation is the concept of bundling data and methods that operate on the data into a single unit.
Encapsulation helps in hiding the internal state of an object and only exposing the necessary functionalities.
For example, a car can be seen as an encapsulated object where the internal details like engine, transmission, etc. are hidden and only the methods like start, stop, accelerate are accessible.
Encapsulation also helps in achieving data abstraction and data hiding in ob...read more
Q14. Difference between Java and C?
Java is an object-oriented programming language while C is a procedural programming language.
Java is platform-independent while C is platform-dependent.
Java has automatic garbage collection while C requires manual memory management.
Java has built-in support for multithreading while C requires external libraries.
Java has a larger standard library compared to C.
Java is more secure than C due to its strong type checking and exception handling.
C is faster than Java in terms of ex...read more
Q15. What you know about Programming languages
Programming languages are used to write instructions for computers to execute tasks.
Programming languages allow developers to communicate with computers
Different languages have different syntax and rules
Examples include Java, Python, C++, and JavaScript
Q16. what is ml? what is data structure
ML stands for machine learning, a branch of artificial intelligence that focuses on developing algorithms to learn from and make predictions based on data. Data structure refers to the way data is organized and stored in a computer system.
ML (machine learning) is a subset of AI that uses algorithms to learn from and make predictions based on data.
Data structure refers to the way data is organized and stored in a computer system, such as arrays, linked lists, trees, etc.
Exampl...read more
Q17. Explain DBMS, and some basic concepts of oop
DBMS is a software system that manages databases, while OOP is a programming paradigm based on objects and classes.
DBMS stands for Database Management System, which is software used to manage databases.
DBMS allows users to create, retrieve, update, and manage data in a database.
OOP stands for Object-Oriented Programming, a programming paradigm based on objects and classes.
OOP concepts include encapsulation, inheritance, polymorphism, and abstraction.
Examples of OOP languages ...read more
Q18. wokring in other technologies unix linux sap
Yes, I have experience working with Unix, Linux, and SAP.
Proficient in Unix and Linux command line interface
Experience with SAP modules such as FI/CO and MM
Familiarity with shell scripting and automation tools
Knowledge of system administration and troubleshooting
Examples: Configuring and maintaining Linux servers, writing shell scripts to automate tasks, working with SAP to manage financial transactions and inventory
Q19. What you know about TCS
TCS (Tata Consultancy Services) is an Indian multinational IT services and consulting company.
TCS is one of the largest IT services companies in the world.
It is a part of the Tata Group, a conglomerate based in India.
TCS offers services in areas such as consulting, software development, and business process outsourcing.
The company has a global presence with offices in multiple countries.
TCS is known for its innovation and digital transformation solutions.
Q20. 1 short code inJava
Print 'Hello, World!' in Java
Use System.out.println() to print the message
Enclose the message in double quotes
More about working at TCS
Top HR Questions asked in CapeStart
Interview Process at CapeStart
Reviews
Interviews
Salaries
Users/Month