Filter interviews by
I applied via Naukri.com and was interviewed in Sep 2024. There was 1 interview round.
OOPS concepts in C++ include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: bundling data and methods that operate on the data into a single unit (class)
Inheritance: creating new classes based on existing classes, allowing for code reuse
Polymorphism: ability for objects of different classes to be treated as objects of a common superclass
Abstraction: hiding complex implementation details and sh
Multi threading is a programming concept where multiple threads run concurrently within a single process.
Multi threading allows for better utilization of CPU resources by running multiple tasks simultaneously.
Threads share the same memory space, which can lead to synchronization issues if not handled properly.
Examples of multi threading implementations include Java's Thread class, C#'s Task Parallel Library, and Python
Diamond problem occurs in multiple inheritance when a class inherits from two classes that have a common base class.
Diamond problem can be resolved using virtual inheritance in C++.
Virtual inheritance ensures that only one instance of the common base class is inherited by the derived class.
Example: class A is inherited by classes B and C, then class D inherits from both B and C. Using virtual inheritance for class A re
Types of inheritance include single, multiple, multilevel, hierarchical, hybrid, and multipath inheritance.
Single inheritance: a class inherits from only one base class.
Multiple inheritance: a class inherits from more than one base class.
Multilevel inheritance: a class inherits from a class which in turn inherits from another class.
Hierarchical inheritance: multiple classes inherit from a single base class.
Hybrid inher...
Top trending discussions
posted on 10 May 2015
Multi tasking, multi processing, and multi programming are different approaches to managing tasks in an operating system.
Multi tasking allows multiple tasks to run concurrently on a single processor.
Multi processing involves multiple processors running tasks simultaneously.
Multi programming allows multiple programs to be loaded into memory and executed concurrently.
Examples of multi tasking operating systems include Wi...
Memory allocation refers to the process of assigning memory to programs during runtime.
Stack allocation is done automatically and is limited in size.
Heap allocation is done manually and is larger in size.
Stack memory is used for local variables and function calls.
Heap memory is used for dynamic memory allocation.
Memory leaks can occur if heap memory is not properly managed.
Use a shared variable and synchronization mechanisms to ensure natural order printing of numbers.
Create two threads, one for printing even numbers and the other for printing odd numbers.
Use a shared variable to keep track of the current number to be printed.
Implement synchronization mechanisms like locks or semaphores to ensure only one thread can access the shared variable at a time.
Each thread should check if it is i...
Printing a matrix in spiral order
Start from the first element and print it
Move in a spiral order towards the center of the matrix
Repeat until all elements are printed
Thread class and Runnable Interface are used for multithreading in Java.
Thread class is a predefined class in Java that provides methods to create and control threads.
Runnable interface is used to define a task that can be executed by a thread.
Thread class implements Runnable interface.
Thread class provides more control over threads than Runnable interface.
Example: Thread t = new Thread(new MyRunnable()); t.start();
Exa...
Linked List is a dynamic data structure while ArrayList is a static data structure.
Linked List is best for frequent insertion and deletion operations.
ArrayList is best for frequent access operations.
Linked List uses more memory than ArrayList.
ArrayList is faster than Linked List for accessing elements.
Use Linked List when you need to frequently add or remove elements from the list.
Use ArrayList when you need to frequen
I am not interested in a career in investment banking.
I am more interested in a career in software development
I enjoy problem-solving and creating innovative solutions through coding
Investment banking does not align with my passion and skill set
I have chosen to apply to J.P. Morgan because of their reputation, global presence, and opportunities for growth.
J.P. Morgan has a strong reputation in the financial industry.
They have a global presence with offices in multiple countries.
The company offers various opportunities for career growth and development.
J.P. Morgan is known for its innovative technology solutions in the financial sector.
I am impressed by their ...
Yes, I have made a mistake in my previous project.
I underestimated the complexity of a task and ended up missing the deadline.
I failed to properly test a feature, resulting in a bug that affected user experience.
I accidentally deleted an important file without having a backup.
I misunderstood a requirement and implemented a feature incorrectly.
Multithreading is the ability of a program to perform multiple tasks concurrently.
Multithreading allows for better utilization of CPU resources
It can improve program performance and responsiveness
Examples include running multiple downloads simultaneously or updating a GUI while performing a background task
Synchronization is important to prevent race conditions and ensure thread safety
Multithreading in Java allows concurrent execution of multiple threads.
Java provides built-in support for multithreading through the java.lang.Thread class.
Threads can be created by extending the Thread class or implementing the Runnable interface.
The start() method is used to start a new thread, which calls the run() method.
Synchronization mechanisms like synchronized blocks and locks can be used to control access to ...
No, Java does not support multiple inheritance. However, interfaces can inherit multiple interfaces.
Java does not allow a class to inherit from multiple classes.
This is because multiple inheritance can lead to ambiguity and conflicts.
However, a class can implement multiple interfaces in Java.
An interface can extend multiple interfaces, allowing for inheritance of multiple interfaces.
This is known as interface inheritan
DO-WHILE loop executes the code block at least once, while WHILE loop executes only if the condition is true.
DO-WHILE loop checks the condition at the end of the loop
WHILE loop checks the condition at the beginning of the loop
DO-WHILE loop executes the code block at least once
WHILE loop may not execute the code block at all if the condition is false
I would rate myself as an 8 on a scale of 1-10.
I have a strong understanding of software development principles and practices.
I have experience working with multiple programming languages and frameworks.
I am skilled in problem-solving and debugging.
I have successfully delivered complex software projects in the past.
I continuously strive to learn and improve my skills.
Display data of two tables by joining them using a common column.
Use SQL JOIN statement to combine data from two tables based on a common column.
Choose the appropriate type of JOIN based on the relationship between the tables.
Specify the columns to be displayed in the SELECT statement.
Use aliases to differentiate between columns with the same name in both tables.
Apply any necessary filters or sorting to the result set.
Multithreading is the ability of a program to perform multiple tasks concurrently.
Multithreading allows for better utilization of CPU resources
It can improve program performance and responsiveness
Examples include running multiple downloads simultaneously or updating a GUI while performing a background task
Synchronization is important to prevent race conditions and ensure thread safety
Java supports multithreading through the java.lang.Thread class and java.util.concurrent package.
Java threads are created by extending the Thread class or implementing the Runnable interface.
Threads can be started using the start() method.
Synchronization can be achieved using synchronized keyword or locks.
Java provides several classes and interfaces to support concurrent programming such as Executor, ExecutorService, F...
Java does not support multiple inheritance, but interfaces can inherit multiple interfaces.
Java does not allow a class to inherit from multiple classes, but it can implement multiple interfaces.
Interfaces can inherit from multiple interfaces using the 'extends' keyword.
For example, interface C can extend interfaces A and B: 'interface C extends A, B {}'
Do-While loop executes the code block once before checking the condition, while loop checks the condition first.
Do-While loop is used when the code block needs to be executed at least once.
While loop is used when the code block may not need to be executed at all.
Do-While loop is less efficient than While loop as it always executes the code block at least once.
Example of Do-While loop: do { //code block } while (conditi...
Join the tables on a common column and display the combined data.
Identify the common column in both tables
Use JOIN statement to combine the tables
Select the columns to display
Apply any necessary filters or sorting
Display the data in a table or list format
Primary key uniquely identifies a record in a table, while unique key ensures uniqueness of a column.
Primary key cannot have null values, while unique key can have one null value.
A table can have only one primary key, but multiple unique keys.
Primary key is used as a foreign key in other tables, while unique key is not.
Example: Employee ID can be a primary key, while email address can be a unique key.
I have a strong background in software development, excellent problem-solving skills, and a passion for learning new technologies.
Extensive experience in programming languages such as Java, Python, and C++
Proven track record of delivering high-quality software solutions on time and within budget
Strong analytical and problem-solving skills, with the ability to quickly adapt to new technologies and frameworks
Excellent co...
My hobbies include coding, reading, and playing video games. My strengths are problem-solving, attention to detail, and teamwork. My weaknesses are impatience and a tendency to overthink.
Hobbies: Coding, reading, playing video games
Strengths: Problem-solving, attention to detail, teamwork
Weaknesses: Impatience, tendency to overthink
I am a software developer with experience in Java and Python.
Graduated with a degree in Computer Science
Worked on multiple projects using Java and Python
Familiar with Agile methodology
Strong problem-solving skills
Constantly learning and improving
Multithreading is the ability of a CPU to execute multiple threads concurrently.
Multithreading improves performance by utilizing idle CPU time.
Threads share the same memory space, allowing for efficient communication.
Examples include web servers handling multiple requests and video games rendering graphics while processing user input.
The question is asking about how a specific implementation is done in Java.
Explain the implementation details of the specific feature or functionality in Java
Provide code examples if applicable
Discuss any relevant libraries or frameworks used in the implementation
While loop executes only if the condition is true, do-while loop executes at least once before checking the condition.
While loop checks the condition first, then executes the code block
Do-while loop executes the code block first, then checks the condition
While loop may not execute at all if the condition is false initially
Do-while loop always executes at least once before checking the condition
No, Java does not support multiple inheritance. However, interfaces can inherit multiple interfaces.
Java does not allow a class to inherit from multiple classes, which is known as multiple inheritance.
However, a class can implement multiple interfaces, which is known as multiple interface inheritance.
By implementing multiple interfaces, a class can inherit the abstract methods defined in those interfaces.
For example, c...
To display data of two tables, we can use JOIN operation in SQL.
Identify the common column(s) between the two tables.
Use JOIN operation to combine the data from both tables based on the common column(s).
Choose the appropriate type of JOIN operation (INNER, LEFT, RIGHT, FULL) based on the requirement.
Use SELECT statement to display the required columns from the combined table.
Example: SELECT t1.column1, t2.column2 FROM ...
Primary key uniquely identifies a record in a table, while unique key ensures uniqueness of a column.
Primary key is a column or set of columns that uniquely identifies each record in a table
Primary key cannot have null values
A table can have only one primary key
Unique key ensures that a column or set of columns have unique values
Unique key can have null values
A table can have multiple unique keys
I would rate myself as an 8 on a scale of 1-10.
I have a strong understanding of software development principles and practices.
I have experience working with multiple programming languages and frameworks.
I am skilled in problem-solving and debugging.
I have successfully delivered complex software projects in the past.
I continuously strive to learn and improve my skills.
4
Extensive experience in C programming
Proficient in writing efficient and optimized code
Familiar with memory management and pointers
Comfortable with low-level programming and system-level development
I know several programming languages including Java, Python, and C++.
Java
Python
C++
Yes, I have completed a certification course in Java programming.
Completed Oracle Certified Associate, Java SE 8 Programmer certification
Attended a course on Advanced Java Programming at XYZ Institute
Certified in Agile Development Methodology
TCS is a multinational IT services, consulting and business solutions organization.
Founded in 1968 by Tata Group
Headquartered in Mumbai, India
Operates in 46 countries
Provides services in areas such as IT, engineering, BPO, and consulting
Has over 469,000 employees worldwide
Listed among the top IT services companies globally
My ambition is to become a highly skilled software engineer and contribute to the development of innovative and impactful software solutions.
To continuously learn and improve my skills in software development
To work on challenging projects that push me to think creatively and outside the box
To collaborate with talented individuals and contribute to a team's success
To make a positive impact on society through the develo...
I am a software engineer with experience in developing web applications and a passion for learning new technologies.
Experienced in developing web applications using technologies such as HTML, CSS, JavaScript, and React
Proficient in programming languages such as Java and Python
Passionate about learning new technologies and staying up-to-date with industry trends
Strong problem-solving skills and ability to work in a team...
Yes, TCS has certain criteria for hiring software engineers.
TCS has a minimum academic requirement of 60% throughout the education.
They also have an age limit of 28 years for freshers.
TCS conducts a written test, technical interview, and HR interview during the hiring process.
They also have certain eligibility criteria for experienced professionals.
TCS also looks for candidates with good communication and interpersonal
My family is a close-knit group of individuals who support and care for each other.
My parents have been married for over 30 years.
I have two siblings, a younger brother and an older sister.
We enjoy spending time together, whether it's watching movies or going on vacations.
My family has always been supportive of my career aspirations.
Yes, what is the company culture like and what opportunities are there for professional development?
Ask about work-life balance
Inquire about mentorship programs
Ask about opportunities for attending conferences or training sessions
I enjoy reading, hiking, and playing video games.
Reading: I love getting lost in a good book, especially science fiction and fantasy.
Hiking: I enjoy exploring new trails and challenging myself physically.
Video games: I like playing both single-player and multiplayer games, and I find it a great way to unwind after work.
based on 1 interview
Interview experience
based on 6 reviews
Rating in categories
Senior Software Engineer
515
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
284
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Associate Software Engineer
103
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Software Engineer
102
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Business Analyst
93
salaries
| ₹0 L/yr - ₹0 L/yr |
Fiserv
FIS
Global Payments
First Data Corporation