Accenture
100+ Hetero Interview Questions and Answers
Q1. Triplets with Given Sum Problem
Given an array or list ARR
consisting of N
integers, your task is to identify all distinct triplets within the array that sum up to a specified number K
.
Explanation:
A triplet i...read more
Q2. Kth Smallest and Largest Element Problem Statement
You are provided with an array 'Arr' containing 'N' distinct integers and a positive integer 'K'. Your task is to find the Kth smallest and Kth largest element...read more
Q3. Armstrong Number Problem Statement
You are provided an integer 'NUM'. Determine if 'NUM' is an Armstrong number.
Explanation:
An integer 'NUM' with 'k' digits is an Armstrong number if the sum of its digits, ea...read more
Q4. Palindrome String Validation
Determine if a given string 'S' is a palindrome, considering only alphanumeric characters and ignoring spaces and symbols.
Note:
The string 'S' should be evaluated in a case-insensi...read more
Q5. Tiling Problem Statement
Given a board with 2 rows and N columns, and an infinite supply of 2x1 tiles, determine the number of distinct ways to completely cover the board using these tiles.
You can place each t...read more
Q6. Equilibrium Index Problem Statement
Given an array Arr
consisting of N integers, your task is to find the equilibrium index of the array.
An index is considered as an equilibrium index if the sum of elements of...read more
Q7. Pair Sum Problem Statement
You are given an integer array 'ARR' of size 'N' and an integer 'S'. Your task is to find and return a list of all pairs of elements where each sum of a pair equals 'S'.
Note:
Each pa...read more
Q8. Chocolate Distribution Problem
You are given an array/list CHOCOLATES
of size 'N', where each element represents the number of chocolates in a packet. Your task is to distribute these chocolates among 'M' stude...read more
Q9. Balanced Parentheses Combinations
Given an integer N
representing the number of pairs of parentheses, find all the possible combinations of balanced parentheses using the given number of pairs.
Explanation:
Con...read more
Q10. One of the questions for Critical Reasoning was:- Two cars A and B cross a flyover in 10 minutes and 30 minutes respectively. Find the speed of Car A. Statements: Car B travels at the 50kmph Train A and B are t...
read moreCar A's speed is 90kmph
Use the formula: Speed = Distance/Time
Assume the distance to be the same for both cars
Calculate Car A's time using the given information
Substitute the values in the formula to get Car A's speed
Q11. Find Middle of Linked List
Given the head node of a singly linked list, your task is to return a pointer pointing to the middle node of the linked list.
When the number of elements is odd, return the middle ele...read more
Q12. Question 2 was, Find the sum of all numbers in range from 1 to m(both inclusive) that are not divisible by n. Return difference between sum of integers not divisible by n with sum of numbers divisible by n.
Find sum of numbers in range 1 to m (both inclusive) not divisible by n. Return difference between sum of non-divisible and divisible numbers.
Iterate through range 1 to m and check if number is divisible by n.
If not divisible, add to sum of non-divisible numbers.
If divisible, add to sum of divisible numbers.
Return difference between sum of non-divisible and divisible numbers.
Q13. Ways To Make Coin Change
Given an infinite supply of coins of varying denominations, determine the total number of ways to make change for a specified value using these coins. If it's not possible to make the c...read more
Q14. Replace Spaces in a String
Given a string STR
consisting of words separated by spaces, your task is to replace all spaces between words with the characters "@40".
Input:
The first line contains an integer ‘T’ d...read more
Q15. Stack using Two Queues Problem Statement
Develop a Stack Data Structure to store integer values using two Queues internally.
Your stack implementation should provide these public functions:
Explanation:
1. Cons...read more
Q16. Find the Second Largest Element
Given an array or list of integers 'ARR', identify the second largest element in 'ARR'.
If a second largest element does not exist, return -1.
Example:
Input:
ARR = [2, 4, 5, 6, ...read more
Q17. Check if Two Trees are Mirror
Given two arbitrary binary trees, your task is to determine whether these two trees are mirrors of each other.
Explanation:
Two trees are considered mirror of each other if:
- The r...read more
Q18. Ninja and Alien Language Order Problem
An alien dropped its dictionary while visiting Earth. The Ninja wants to determine the order of characters used in the alien language, based on the given list of words fro...read more
Q19. Postfix Expression Evaluation Problem Statement
Given a postfix expression, your task is to evaluate the expression. The operator will appear in the expression after the operands. The output for each expression...read more
Q20. Reverse the String Problem Statement
You are given a string STR
which contains alphabets, numbers, and special characters. Your task is to reverse the string.
Example:
Input:
STR = "abcde"
Output:
"edcba"
Input...read more
Q21. Write a code for the length of string without using strlen() function.
Code to find length of string without using strlen() function.
Use a loop to iterate through each character of the string
Increment a counter variable for each character in the string
Stop the loop when the null character '\0' is encountered
Return the counter variable as the length of the string
Q22. Apart from the programming languages in the engineering curriculum, what other languages have you learned?
I have learned Python, JavaScript, and SQL outside of my engineering curriculum.
I learned Python through online courses and used it for data analysis projects.
I learned JavaScript through building web applications and creating interactive user interfaces.
I learned SQL through database management and querying data.
Q23. On which platform have you learned the programming languages?
I have learned programming languages on multiple platforms.
I learned Java and Python on Windows platform using Eclipse and PyCharm IDEs respectively.
I learned C++ on Linux platform using g++ compiler.
I learned JavaScript on both Windows and Mac platforms using Visual Studio Code and Sublime Text editors respectively.
I also learned Swift on Mac platform using Xcode IDE.
Q26. Broadcasting of western serials on Indian channels should be banned? Why or Why not?
No, banning western serials on Indian channels is not necessary.
Western serials are popular among Indian audiences.
Banning them would limit the entertainment options for viewers.
It is up to individuals to decide what they want to watch.
Censorship should be limited to content that is harmful or offensive.
Banning western serials could also harm the business of Indian channels.
Instead, channels can choose to air a mix of western and Indian content.
Q27. Q3 If you can go back in time and change one thing what it would be?
I would change my decision to not pursue a computer science degree earlier in my education.
I would have started learning programming languages sooner.
I would have taken more computer science courses in college.
I would have sought out internships in software development earlier in my career.
Q28. Longest Factorial where I have to print the longest factorial .
The longest factorial that can be printed depends on the data type used to store the result.
Factorials grow very quickly, so the data type used to store the result is important.
For example, the largest factorial that can be stored in a 32-bit integer is 12!.
Using a 64-bit integer allows for larger factorials, such as 20!.
Using a floating-point data type allows for even larger factorials, but with reduced precision.
Printing the entire factorial may not be practical, so scienti...read more
Q29. What is your favorite coding language and why?
My favorite coding language is Python because of its simplicity and versatility.
Python has a clean and easy-to-read syntax, making it beginner-friendly.
It has a vast library of modules and frameworks for various applications.
Python is used in various fields such as web development, data science, and artificial intelligence.
It supports multiple programming paradigms such as object-oriented, functional, and procedural programming.
Python has a large and active community, providi...read more
Q30. Write a code for Octal to Decimal Conversion.
Code for Octal to Decimal Conversion
Start from the rightmost digit and move towards the leftmost digit
Multiply each digit with 8 raised to the power of its position
Add all the products obtained in the previous step to get the decimal equivalent
Q31. What are the advantages of OOPS?
OOPS provides modularity, reusability, and extensibility in software development.
Encapsulation ensures data security and prevents unauthorized access.
Inheritance allows for code reuse and reduces redundancy.
Polymorphism enables flexibility and allows for dynamic behavior.
Abstraction simplifies complex systems and hides implementation details.
OOPS promotes better organization and maintenance of code.
Examples: Java, C++, Python, Ruby, etc.
Q32. What is Exceptional Handling in Java?
Exceptional Handling is a mechanism to handle runtime errors in Java programs.
It is done using try-catch blocks.
It prevents the program from crashing due to errors.
It helps in debugging and maintaining the code.
Examples include NullPointerException, ArrayIndexOutOfBoundsException, etc.
Q33. Do you know about some recent trending technologies? Tell me about it.
Artificial Intelligence and Machine Learning are trending technologies.
AI and ML are being used in various industries like healthcare, finance, and retail.
AI-powered chatbots are becoming popular for customer service.
ML algorithms are being used for fraud detection and risk management.
Deep learning is being used for image and speech recognition.
Natural Language Processing (NLP) is being used for sentiment analysis and language translation.
Reinforcement learning is being used ...read more
Q34. What is a Friend Function in C++?
Friend function is a non-member function that has access to private and protected members of a class.
Declared inside the class but defined outside the class scope
Can access private and protected members of the class
Not a member of the class but has access to its private and protected members
Used to provide access to private or protected members to non-member functions or other classes
Example: friend void display(A);
Example: class A { friend void display(A); };
Q35. Which new technology did you learn recently?
I recently learned about React Native, a framework for building mobile apps using JavaScript.
React Native allows for cross-platform development, reducing the need for separate codebases for iOS and Android.
It uses a similar syntax to React, making it easy for web developers to transition to mobile development.
Some popular apps built with React Native include Facebook, Instagram, and Airbnb.
Q36. You are a team lead and there two team members doesn't have the same view on the topic. how will you resolve it?
As a team lead, I would facilitate open communication, encourage collaboration, and work towards finding a common ground.
Encourage open communication between team members to understand each other's perspectives
Facilitate a discussion to address differences and find common ground
Encourage collaboration and compromise to reach a consensus
Seek input from other team members or stakeholders to gain different perspectives
Provide guidance and support to help team members work throug...read more
Q37. What is your opinion about generative AI?
Generative AI has great potential in various industries, including art, music, and content creation.
Generative AI can be used to create realistic images, videos, and music compositions.
It has the potential to revolutionize content creation by automating the process and generating unique outputs.
Applications of generative AI include deepfakes, style transfer, and text generation.
While generative AI has great potential, ethical considerations and misuse must be carefully monito...read more
Q38. 5. If you have to learn new programming language ?How will you do it .
To learn a new programming language, I would start with understanding its syntax and basic concepts, practice coding, and seek help from online resources and experienced programmers.
Research and understand the syntax and basic concepts of the language
Practice coding in the language by working on small projects
Seek help from online resources such as documentation, forums, and tutorials
Collaborate with experienced programmers who are proficient in the language
Attend workshops o...read more
Q39. What is pandas in python, Numpy, list and set their differences
pandas is a Python library for data manipulation and analysis. Numpy is a library for numerical operations. List and set are data structures in Python.
pandas is used for data manipulation, analysis, and cleaning tasks.
Numpy provides support for large, multi-dimensional arrays and matrices.
Lists are ordered collections of items, while sets are unordered collections of unique items.
Lists are mutable, while sets are immutable.
Lists allow duplicate elements, while sets do not.
Lis...read more
Q40. Why did you use a CLI library in your project?
CLI library was used for user interaction and ease of use.
CLI library provided a simple and intuitive way for users to interact with the project.
It allowed for easy input and output handling.
Examples include argparse in Python and Commander.js in Node.js.
It also made it easier to automate tasks through scripts.
Overall, it improved the user experience and made the project more accessible.
Q41. Small jumbelled words arranged into meaningful sentences
The question is asking for small jumbled words to be arranged into meaningful sentences.
Read each word carefully and try to identify any patterns or connections between them.
Look for common parts of speech such as nouns, verbs, and adjectives.
Try rearranging the words in different orders to see if any make sense.
Use context clues to help determine the meaning of each word.
Practice with similar exercises to improve your skills.
Q42. What is MultiThreading?
Multithreading is the ability of a CPU to execute multiple threads concurrently.
Multithreading allows for better utilization of CPU resources.
It can improve application performance by allowing multiple tasks to run simultaneously.
Multithreading can be implemented in various programming languages such as Java, C++, and Python.
Examples of multithreaded applications include web servers, video games, and media players.
Q43. What are different types of collection and why do we get concurrent modification exception?
Different types of collection and reasons for concurrent modification exception.
Types of collections: List, Set, Map, Queue, Stack
Concurrent modification exception occurs when a collection is modified while iterating over it
Solution: use Iterator or synchronized collection
Q44. What is polymorphism? And real time examples
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 of the same class.
Polymorphism is achieved through method overriding and method overloading.
Real-time examples include function overloading, operator overloading, and inheritance.
In function overloading, multiple functions can have the same name but different parameters.
In operator overloading, operators like +, -, * can be overloaded to work wi...read more
Q45. Your thoughts on cloud and how it's effective for a country ?
Cloud computing enables efficient storage, processing, and access to data, benefiting countries through cost savings, scalability, and innovation.
Cost savings: Cloud services eliminate the need for expensive hardware and maintenance costs.
Scalability: Cloud resources can be easily scaled up or down based on demand, allowing countries to efficiently manage their IT infrastructure.
Innovation: Cloud platforms provide access to cutting-edge technologies and tools, fostering innov...read more
Q46. What is OOP? What are the four major OOPs concepts?
OOP stands for Object-Oriented Programming. The four major OOP concepts are encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: bundling of data and methods that manipulate the data within a single unit
Inheritance: creating new classes from existing ones, inheriting their properties and methods
Polymorphism: ability of objects to take on multiple forms or behaviors
Abstraction: hiding the implementation details of a class and exposing only the necessary inf...read more
Q47. Difference between polymorphism and abstraction.
Polymorphism is the ability of an object to take on many forms. Abstraction is the process of hiding implementation details.
Polymorphism allows objects of different classes to be treated as if they are of the same class.
Abstraction allows us to focus on the essential features of an object rather than its implementation details.
Polymorphism is achieved through method overriding and method overloading.
Abstraction is achieved through abstract classes and interfaces.
Example of po...read more
Q48. Remember small stories and recite and rephrase accordingly.
Recalling small stories and rephrasing them
Practice active listening to remember stories accurately
Use your own words to rephrase the story
Try to capture the main idea and important details
Use visualization techniques to help remember the story
Practice recalling stories with friends or family
Q49. what are the quality of tea to become a team lead?
The qualities of a tea lead include strong communication skills, leadership abilities, technical expertise, and the ability to collaborate effectively with team members.
Strong communication skills to effectively convey ideas and instructions to team members
Leadership abilities to guide and motivate team members towards common goals
Technical expertise to provide guidance and support on software development tasks
Ability to collaborate effectively with team members to ensure pro...read more
Q50. What are the technicalities related to the project(s).
The project involves developing a web-based application for managing inventory and sales.
The application will be built using Java and Spring framework.
It will have a user-friendly interface for adding, updating and deleting products.
The application will also generate reports on sales and inventory levels.
The database used will be MySQL.
The project will follow Agile methodology for development.
Q51. what is inheritance and explain the different types of it with code.
Inheritance is a concept in object-oriented programming where a class inherits properties and behaviors from another class.
Inheritance allows code reuse and promotes code organization.
There are different types of inheritance: single, multiple, multilevel, and hierarchical.
Single inheritance involves a class inheriting from a single base class.
Multiple inheritance involves a class inheriting from multiple base classes.
Multilevel inheritance involves a class inheriting from a d...read more
Q52. What are OOPS Concept?
OOPS stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.
OOPS is based on four main concepts: Encapsulation, Inheritance, Polymorphism, and Abstraction.
Encapsulation is the process of hiding the implementation details of an object from the outside world.
Inheritance allows a class to inherit properties and methods from another class.
Polymorphism allows objects of different classes to be treated as if they were of the same...read more
Q53. What is AI how you implement AI in your project
AI stands for Artificial Intelligence, which involves creating intelligent machines that can simulate human behavior and thinking.
AI is implemented in projects through machine learning algorithms like neural networks, decision trees, and support vector machines.
Natural language processing and computer vision are common AI techniques used in projects.
AI can be used in recommendation systems, chatbots, autonomous vehicles, and more.
Example: Implementing a chatbot using natural ...read more
Q54. What is your favorite programming language?
My favorite programming language is Python.
Python is a versatile and easy-to-learn language.
It has a simple and readable syntax, making it great for beginners.
Python has a large and active community, providing extensive libraries and frameworks.
It is widely used in various domains like web development, data analysis, and machine learning.
Python's extensive documentation and support make it a developer-friendly language.
Q55. Does the Indian government use cloud Technologies ?
Yes, the Indian government does use cloud technologies for various services and initiatives.
The Indian government has adopted cloud technologies for various e-governance initiatives to improve efficiency and accessibility.
Cloud services are used for data storage, processing, and analysis in government departments.
Examples include the National Informatics Centre (NIC) cloud services used by various government agencies and departments.
Cloud technologies are also utilized for ho...read more
Q56. Do you have any experience using AWS? What is SaaS
AWS is a cloud computing platform. SaaS is a software delivery model where software is hosted on the cloud and accessed via the internet.
AWS is a cloud computing platform that provides a wide range of services such as computing, storage, and databases.
SaaS stands for Software as a Service and is a software delivery model where software is hosted on the cloud and accessed via the internet.
Examples of SaaS include Salesforce, Dropbox, and Google Apps.
Using SaaS eliminates the n...read more
Q57. If you get a oppurtunity by mistake?how you take it ?
I would carefully evaluate the opportunity and consider if it aligns with my career goals and interests.
Assess the potential benefits and drawbacks of the opportunity
Consider how it fits into your long-term career plans
Seek advice from mentors or colleagues
Make an informed decision based on your evaluation
Q58. What do you mean by a jail project management?
Jail project management refers to managing projects within a constrained environment, often with limited resources and strict regulations.
Involves managing projects in a restricted environment, such as a correctional facility
Requires careful planning and coordination due to limited resources and strict regulations
Challenges include security concerns, communication barriers, and restricted access to technology
Examples include implementing educational programs for inmates, upgr...read more
Q59. Why did you switch from Mechanical to Software?
I switched from Mechanical to Software because I discovered my passion for coding and problem-solving.
Discovered passion for coding and problem-solving
Enjoyed programming courses and projects
Realized software development offered more opportunities for growth and innovation
Q60. Any new technology you're familiar with? (I said Cloud Computing)
Cloud computing is a technology that allows users to access and store data and applications over the internet.
Cloud computing eliminates the need for physical servers and hardware.
It offers scalability and flexibility to businesses.
Examples include Amazon Web Services, Microsoft Azure, and Google Cloud Platform.
Q61. Repeating sentences after an audio command.
Repeating sentences after an audio command
This is a common feature in voice assistants like Siri or Alexa
The device listens for a trigger word or phrase, then repeats the command back to the user
This can be useful for confirming that the device understood the command correctly
Q62. What is inheritance?
Inheritance is a mechanism in object-oriented programming where a class inherits properties and behaviors from another class.
Inheritance allows for code reuse and promotes modularity.
The class that inherits properties and behaviors is called the derived class or subclass.
The class from which properties and behaviors are inherited is called the base class or superclass.
Inheritance can be single, multiple, or multilevel depending on the number of classes involved.
Example: A 'Ca...read more
Q63. What is sorting in data structures
Sorting in data structures is the process of arranging data in a particular order, usually in ascending or descending order.
Sorting helps in organizing data for efficient searching and retrieval.
Common sorting algorithms include Bubble Sort, Selection Sort, Insertion Sort, Merge Sort, Quick Sort, etc.
Example: Sorting an array of numbers in ascending order - [5, 2, 8, 1, 3] becomes [1, 2, 3, 5, 8].
Q64. How do you implement exception handling in Java?
Exception handling in Java allows for graceful handling of errors and exceptions in code.
Use try-catch blocks to handle exceptions in Java.
Catch specific exceptions to handle them differently.
Use finally block to execute code regardless of whether an exception is thrown.
Throw custom exceptions using throw keyword.
Use throws keyword in method signature to declare exceptions that can be thrown by the method.
Q65. What is foriegn Key and Primary key? What is normalisation? What is abstraction, polymorphism?
Primary key uniquely identifies each record in a table, while foreign key establishes a link between two tables. Normalization is the process of organizing data in a database to reduce redundancy. Abstraction is hiding the implementation details, and polymorphism allows objects to be treated as instances of their parent class.
Primary key uniquely identifies each record in a table
Foreign key establishes a link between two tables
Normalization reduces redundancy in database desi...read more
Q66. What is polymorphism? What is encapsulation? Tell me about the memorable day of your life?
Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon. Encapsulation is the bundling of data and methods that operate on the data into a single unit.
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
Encapsulation helps in hiding the internal state of an object and restricting access to it.
Example of polymorphism: Overloading a method with different parameters in a class.
Ex...read more
Q67. Machine Learning,Types and Real life examples
Machine learning is a subset of artificial intelligence that involves the development of algorithms and statistical models to perform specific tasks without explicit instructions.
Types of machine learning include supervised learning, unsupervised learning, and reinforcement learning.
Supervised learning involves training a model on labeled data to make predictions.
Unsupervised learning involves finding patterns in unlabeled data.
Reinforcement learning involves training a model...read more
Q68. What is oops in programming language
OOPs stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.
OOPs focuses on creating objects that contain data and methods to manipulate that data.
It allows for encapsulation, inheritance, and polymorphism.
Examples of OOP languages include Java, C++, and Python.
Q69. What do you mean by break function?
A break function is a statement used to exit a loop or switch statement.
It is used to terminate a loop or switch statement before its natural end.
It can be used with conditions to exit a loop when a certain condition is met.
Examples include 'break' in Java and C++ and 'exit' in Python.
Q70. What are the scopes of beans in Spring ?
Beans in Spring have three scopes: Singleton, Prototype, and Request.
Singleton scope creates only one instance of the bean and is the default scope.
Prototype scope creates a new instance of the bean every time it is requested.
Request scope creates a new instance of the bean for every HTTP request.
Other scopes include Session, Global Session, and WebSocket.
Scopes can be defined using the @Scope annotation.
Q71. Tell about AI and Various concepts
AI stands for Artificial Intelligence, which involves the development of machines that can perform tasks that typically require human intelligence.
AI involves the use of algorithms and data to enable machines to learn from experience.
Machine learning is a subset of AI that focuses on the development of algorithms that allow machines to learn from and make predictions or decisions based on data.
Deep learning is a subset of machine learning that uses neural networks with many l...read more
Q72. What are APIs, and how do you use them?
APIs are sets of rules and protocols that allow different software applications to communicate with each other.
APIs stand for Application Programming Interfaces.
They define the methods and data formats that applications can use to request and exchange information.
APIs can be used to access services or data from external sources, such as social media platforms or payment gateways.
Examples of APIs include the Google Maps API, Twitter API, and PayPal API.
Q73. which is better java or Python?
Both Java and Python have their own strengths and weaknesses, and the choice depends on the specific requirements of the project.
Java is a statically-typed language known for its performance and scalability.
Python is a dynamically-typed language known for its simplicity and readability.
Java is commonly used for building large-scale enterprise applications.
Python is popular for web development, data analysis, and scripting tasks.
Java has a strong ecosystem and extensive librar...read more
Q74. Define OOPs Concept
OOPs (Object-Oriented Programming) is a programming paradigm that organizes code into objects with properties and behaviors.
OOPs focuses on creating reusable code by encapsulating data and methods within objects.
It emphasizes the concepts of inheritance, polymorphism, and encapsulation.
Objects are instances of classes, which define their structure and behavior.
Inheritance allows classes to inherit properties and methods from other classes.
Polymorphism enables objects to take ...read more
Q75. Any Higher studies Plan, If no Why?
No plans for higher studies at the moment, focusing on gaining practical experience.
Currently focusing on gaining practical experience in the field
Considering pursuing higher studies in the future for career advancement
No immediate plans for higher studies due to financial constraints
Prefer gaining industry experience before considering higher studies
Q76. swaping 2 variables with out 3rd variable in diff approaches
Swapping two variables without a third variable can be achieved using arithmetic operations or bitwise XOR operation.
Using arithmetic operations: a = a + b; b = a - b; a = a - b;
Using bitwise XOR operation: a = a ^ b; b = a ^ b; a = a ^ b;
Q77. What will happen if the server crashes
If the server crashes, the website or application will become unavailable until the server is restored.
Website or application will be inaccessible to users
Data may be lost if not properly backed up
Potential impact on business operations and revenue
Need to investigate the cause of the crash and implement measures to prevent future occurrences
Q78. Do you know any programming languages
Yes, I am proficient in Java, Python, and C++.
Proficient in Java for backend development
Experienced in Python for data analysis and scripting
Familiar with C++ for system programming
Q79. tell me coding language you know
I am proficient in Java, Python, C++, and JavaScript.
Java
Python
C++
JavaScript
Q80. 2. what is oops ? explain
OOPs stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.
OOPs is based on the four main concepts: Encapsulation, Inheritance, Polymorphism, and Abstraction.
Encapsulation is the process of hiding the implementation details from the user.
Inheritance is the process of inheriting the properties of one class by another class.
Polymorphism is the ability of an object to take on many forms.
Abstraction is the process of hiding the unnec...read more
Q81. string using loop
To create a string using loop
Declare an empty string variable
Use a loop to concatenate desired strings to the variable
Use the loop condition to control the number of iterations
Q82. What is stack in data structure
A stack is a linear data structure that follows the Last In First Out (LIFO) principle.
Elements are added and removed from the top of the stack.
Common operations include push (add element) and pop (remove element).
Example: Undo functionality in text editors uses a stack to store previous states.
Q83. Write a basic code in C++
A basic code in C++
Use the 'int main()' function as the entry point of the program
Declare an array of strings using the syntax 'string arrayName[size]'
Initialize the array with values
Access and manipulate the elements of the array using indexing
Q84. Find the only unique elements in an array
Find unique elements in an array of strings
Create a hashmap to store the frequency of each element in the array
Iterate through the array and update the frequency in the hashmap
Iterate through the hashmap and return elements with frequency 1
Q85. What the difference between C and C++
C is a procedural programming language while C++ is an object-oriented programming language.
C is a procedural programming language, focusing on functions and procedures.
C++ is an object-oriented programming language, allowing for classes, objects, and inheritance.
C++ is an extension of C, adding features like classes, templates, and exception handling.
C++ supports both procedural and object-oriented programming paradigms.
C++ is often used for developing complex applications a...read more
Q86. Explain DBMS concept to a four year child
DBMS is like a big box where we keep all our information organized so we can find it easily.
DBMS stands for Database Management System
It helps us store and organize information in a structured way
We can easily search, add, delete or modify information in DBMS
Examples of DBMS are MySQL, Oracle, SQL Server
Q87. What do you like in Software Engineering
I enjoy the problem-solving aspect of software engineering and the satisfaction of creating functional and efficient solutions.
I like the challenge of solving complex problems through coding
I enjoy the creativity involved in designing and implementing software solutions
I appreciate the continuous learning and growth opportunities in the field
I find satisfaction in seeing my code come to life and make a positive impact
Q88. How would you interact with client
I would interact with clients by actively listening to their needs, providing clear communication, and offering solutions to their problems.
Actively listen to the client's needs and concerns
Provide clear and concise communication about project progress and updates
Offer solutions to any problems or challenges the client may be facing
Maintain a professional and friendly demeanor at all times
Follow up with the client to ensure their satisfaction with the project
Q89. Say a few lines on vaccum in 5 minutes
A vacuum is a device that uses suction to remove dirt and debris from surfaces.
Vacuums work by creating a partial vacuum to generate suction.
They are commonly used for cleaning floors, carpets, and upholstery.
There are different types of vacuums, such as upright, canister, and robotic vacuums.
Some vacuums also have additional features like HEPA filters for allergen removal.
Examples of popular vacuum brands include Dyson, Shark, and Hoover.
Q90. ai tell a story and you have to repeat it.
The candidate is asked to listen to a story and then repeat it.
Listen carefully to the story being told
Pay attention to key details and events in the story
Repeat the story in your own words, focusing on accuracy and clarity
Q91. Ai tell sentense you have find out the error
Identify and correct errors in a given sentence.
Read the sentence carefully to identify any grammatical or spelling errors.
Check for subject-verb agreement, punctuation, and word usage.
Consider the context of the sentence to determine the intended meaning.
Consult a grammar guide or dictionary for assistance if needed.
Q92. Explain oops pillars with real life example
OOPs pillars are the four main principles of Object-Oriented Programming: Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance: A child inherits properties and behaviors from its parent. Example: A car is a type of vehicle and inherits properties like color and behaviors like driving from the Vehicle class.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: A capsule is a container that encapsulates medicine.
Abstract...read more
Q93. Differnence between C and Java
C is a procedural programming language while Java is an object-oriented programming language.
C is a low-level language while Java is a high-level language.
C requires manual memory management while Java has automatic memory management.
C supports pointers while Java does not.
C is platform-dependent while Java is platform-independent.
C has a simpler syntax compared to Java.
Q94. What is Cloud ? What is Saas and Iaas ?
Cloud computing is the delivery of computing services over the internet. SaaS is software accessed via the internet, IaaS is infrastructure provided over the internet.
Cloud computing involves delivering computing services over the internet
SaaS (Software as a Service) is software accessed via the internet on a subscription basis
IaaS (Infrastructure as a Service) is providing virtualized computing resources over the internet
Examples: SaaS - Google Workspace, IaaS - Amazon Web S...read more
Q95. What is impact of IT in covid
IT has played a crucial role in managing the impact of COVID-19 through remote work, telemedicine, contact tracing apps, and data analysis.
Facilitated remote work and online learning through video conferencing tools like Zoom and Microsoft Teams
Enabled telemedicine services for patients to consult with healthcare providers remotely
Developed contact tracing apps to track and contain the spread of the virus
Utilized data analysis and AI to predict outbreaks and optimize healthca...read more
Q96. Favourite subject and least favourit subject
Favorite subject is Computer Science, least favorite is History.
Favorite subject: Computer Science - enjoy coding and problem-solving
Least favorite subject: History - not interested in memorizing dates and events
Q97. The current technology you are aware about
I am aware of various programming languages, databases, frameworks, and tools used in software development.
Programming languages: Java, Python, C++, JavaScript
Databases: MySQL, MongoDB, PostgreSQL
Frameworks: Spring Boot, React, Angular
Tools: Git, Jenkins, Docker
Q98. What is exception propagation?
Exception propagation is the process of passing an exception from one method to another in the call stack.
When an exception is thrown in a method, it can be caught and handled in the same method or propagated to the calling method.
Propagation continues until the exception is caught or the top-level method is reached.
Propagation can be done implicitly or explicitly using the 'throw' keyword.
Example: If a method calls another method that throws an exception, the calling method ...read more
Q99. real-time application for a current issue
Developing a real-time application to track COVID-19 cases and provide updates
Utilize APIs to fetch real-time data on COVID-19 cases
Implement data visualization to display statistics in a user-friendly manner
Incorporate push notifications to alert users about new updates
Include a feature for users to report their own symptoms or test results
Q100. Self introduction Project done in Engineering
I am a recent graduate with a degree in Computer Science. I have experience working on a project that involved developing a web application for a local non-profit organization.
Developed a web application using HTML, CSS, and JavaScript
Implemented user authentication and authorization features
Integrated a database to store user information and donation records
Collaborated with a team of developers to meet project deadlines
More about working at Accenture
Top HR Questions asked in Hetero
Interview Process at Hetero
Top Associate Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month