Emtec
10+ DXC Technology Interview Questions and Answers
Q1. what is difference between springboot and spring
Spring is a framework for building Java applications, while Spring Boot is a tool that simplifies the setup and configuration of Spring applications.
Spring is a comprehensive framework that provides support for various functionalities like dependency injection, aspect-oriented programming, and more.
Spring Boot is an opinionated tool that simplifies the setup and configuration of Spring applications by providing defaults and auto-configuration.
Spring Boot includes embedded ser...read more
Q2. how do you use JPA in your project write it
I use JPA in my project by defining entity classes, annotating them with JPA annotations, creating repositories, and using JPQL queries.
Define entity classes with @Entity annotation
Annotate fields with @Column, @Id, @GeneratedValue, etc.
Create repositories by extending JpaRepository interface
Use JPQL queries for custom database operations
Q3. How microservices communicate in your project
Microservices communicate through REST APIs and messaging queues in our project.
Microservices communicate with each other using REST APIs for synchronous communication.
Messaging queues like Kafka or RabbitMQ are used for asynchronous communication between microservices.
Service discovery tools like Eureka or Consul are used to locate and communicate with other microservices.
Microservices may also use gRPC for communication in some cases.
Q4. Given array: [1,3,4,[6,7,[8,5],9],2] Result array : [1,3,4,6,7,8,5,9,2]
The given array needs to be flattened to a single-level array.
Iterate through the array elements
If an element is an array, recursively flatten it
If an element is not an array, add it to the result array
Q5. what do you know about Emtec
Emtec is a global IT consultancy that provides technology solutions and services to help organizations drive digital transformation.
Provides IT consultancy services
Specializes in technology solutions
Helps organizations with digital transformation
Q6. Python - find max from array without using built in function
Find max from array in Python without using built-in function.
Iterate through the array and compare each element with a variable storing the current maximum value.
If the element is greater than the current maximum, update the variable.
Return the variable after iterating through the entire array.
Q7. What are array methods in Javascript
Array methods in Javascript are built-in functions that can be used to manipulate arrays.
Some common array methods are push(), pop(), shift(), unshift(), slice(), splice(), concat(), join(), indexOf(), and forEach().
push() adds one or more elements to the end of an array.
pop() removes the last element from an array.
shift() removes the first element from an array.
unshift() adds one or more elements to the beginning of an array.
slice() returns a new array with a portion of the ...read more
Q8. explaing springboot annotation
Spring Boot annotations are used to simplify the development process by providing shortcuts for common configurations and functionalities.
Annotations like @SpringBootApplication, @RestController, @Autowired, @ComponentScan are commonly used in Spring Boot applications.
Annotations help in reducing boilerplate code and configuring various aspects of the application.
For example, @SpringBootApplication is used to mark the main class of a Spring Boot application.
Annotations like @...read more
Q9. What js difference between === and ==
=== compares value and type, while == only compares value
=== is stricter than == in type checking
=== returns true only if both operands are of the same type and have the same value
== performs type coercion, which can lead to unexpected results
For example, '5' == 5 returns true, but '5' === 5 returns false
Q10. Promise in javascript
Promise is a way to handle asynchronous operations in JavaScript.
Promises represent a value that may not be available yet.
They have three states: pending, fulfilled, and rejected.
Promises can be chained using .then() and .catch() methods.
They help avoid callback hell and make code more readable.
Example: new Promise((resolve, reject) => {...})
Q11. State and props from react
State and props are two important concepts in React for managing data and passing data between components.
State is used to manage data within a component and can be updated using setState() method.
Props are used to pass data from parent component to child component.
State is mutable while props are immutable.
Example:
Example:
Q12. What is manual testing?
Manual testing is a process of verifying software manually without the use of automation tools.
Manual testing involves executing test cases manually
It requires human intervention to identify defects and issues
It is time-consuming and requires a lot of effort
It is useful for testing user interface, usability, and exploratory testing
Examples include ad-hoc testing, exploratory testing, and regression testing
Q13. What is Black Box Testing?
Black Box Testing is a software testing technique where the internal workings of the system are not known to the tester.
Tests are performed based on the system's specifications and requirements.
The tester does not have access to the source code or internal structure of the system.
The focus is on the system's functionality and user interface.
Examples include functional testing, regression testing, and acceptance testing.
More about working at Emtec
Top HR Questions asked in DXC Technology
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month