
DXC Technology


20+ DXC Technology Software Engineer Interview Questions and Answers
Q1. 1. Describe project 2. What do you understand by OOPs. 3. What all Access modifiers are there in Java. 4. Difference between protected and default. 5. Overloading and overriding (difference, example and questio...
read moreInterview questions for Software Engineer position
Describe a project you have worked on
Explain OOPs concepts and access modifiers in Java
Differentiate between protected and default access modifiers
Provide examples and differences between overloading and overriding
Use Java 8 to find even numbers in a list and to find the square of elements in a list using lambda expressions
Write a template for a REST controller with different HTTP methods
Provide the URI for deleting a request
W...read more
Q2. Can you write the codee which is shown below in any of the languages which you know?
Yes, I can write the code in multiple languages.
I am proficient in multiple programming languages such as Java, Python, C++, and JavaScript.
I can write the code in any of these languages based on the requirements.
The code shown in the question is not provided, so I cannot provide an example.
However, I can assure you that I have the necessary skills to write the code in any language.
Q3. Write any code of your choice without even a minor error.
I wrote a Python code to find the sum of all even numbers in a given list.
Define a list of numbers
Use a for loop to iterate through the list
Use an if statement to check if the number is even
Add the even number to a variable that stores the sum
Return the sum of even numbers
Example: num_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] sum_even = 0 for num in num_list: if num % 2 == 0: sum_even += num print(sum_even)
Q4. What is server and client ?
Server and client are two entities in a client-server architecture where the server provides services to the client.
Server is a computer program or device that provides services to other computer programs or devices, known as clients.
Client is a computer program or device that requests services from a server.
Examples of servers include web servers, mail servers, and file servers.
Examples of clients include web browsers, email clients, and FTP clients.
Q5. what is list, dictionary, set and tuple and difference between them
List, dictionary, set, and tuple are data structures in Python with different characteristics and use cases.
List: ordered collection of items, mutable (can be changed), represented by square brackets []
Dictionary: unordered collection of key-value pairs, mutable, represented by curly braces {}
Set: unordered collection of unique items, mutable, represented by curly braces {}
Tuple: ordered collection of items, immutable (cannot be changed), represented by parentheses ()
Q6. what is networking?
Networking is the practice of connecting devices together to share resources and information.
Networking involves the use of hardware and software to connect devices together.
It allows for the sharing of resources such as printers and files.
Networking also enables communication between devices, such as sending emails or accessing websites.
Examples of networking technologies include Ethernet, Wi-Fi, and Bluetooth.
Q7. what is oops and explain each of the terms
OOPs stands for Object-Oriented Programming. It is a programming paradigm based on the concept of objects.
OOPs consists of four main principles: Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation refers to the bundling of data and methods that operate on the data into a single unit.
Abstraction focuses on hiding the internal implementation details of a class and showing only t...read more
Q8. Technologies used in Group project?
We used a variety of technologies including Java, Spring Boot, React, and MySQL.
Java was used for the backend development
Spring Boot was used to create RESTful APIs
React was used for the frontend development
MySQL was used as the database management system
Q9. Wap to find each character occurrence in string
Wap to find each character occurrence in string
Iterate through the string and use a dictionary to keep track of character counts
Use a for loop to iterate through the string and increment the count of each character in the dictionary
Print the dictionary to display the character counts
Q10. 2. Difference between DELETE and TRUNCATE and DROP
DELETE removes specific rows, TRUNCATE removes all rows, DROP removes entire table.
DELETE is a DML command, TRUNCATE and DROP are DDL commands.
DELETE can have a WHERE clause to specify which rows to delete.
TRUNCATE resets the table and cannot be undone.
DROP removes the table and all associated objects.
Example: DELETE FROM table WHERE id = 1;
Example: TRUNCATE table;
Example: DROP TABLE table;
Q11. What are 4 Pillars of OOPs
4 Pillars of OOPs are Abstraction, Encapsulation, Inheritance, and Polymorphism.
Abstraction: Hiding implementation details and showing only necessary information.
Encapsulation: Binding data and functions together and restricting access to them.
Inheritance: Creating new classes from existing ones, inheriting properties and methods.
Polymorphism: Ability of objects to take on multiple forms or behaviors.
Q12. What is Dns and what are its use
DNS stands for Domain Name System. It is a decentralized naming system for computers, services, or any resource connected to the Internet.
DNS translates domain names to IP addresses
It helps in locating resources on the Internet
DNS servers store domain name records like A, CNAME, MX, etc.
Examples: www.google.com translates to 172.217.3.196
Q13. What is prime number
A prime number is a positive integer greater than 1 that has no positive integer divisors other than 1 and itself.
Prime numbers are only divisible by 1 and themselves
Examples of prime numbers include 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, and 97
Prime numbers are important in cryptography and number theory
Q14. Write a question on ages problem
What is the average age of a group of people with ages ranging from 20 to 60?
Add up all the ages and divide by the number of people in the group
The age range is 40 years
Assuming an equal distribution of ages, the average age would be 40
Q15. 1. check if string is Palindrome.
Check if a given string is a palindrome or not.
A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward.
To check if a string is a palindrome, compare the first and last characters, then the second and second-to-last characters, and so on.
If all pairs match, the string is a palindrome. If any pair does not match, the string is not a palindrome.
Q16. Do you know how to create user
Yes, I know how to create user accounts in software applications.
Use a user interface to input user information such as username, password, and email.
Store user information securely in a database.
Implement authentication and authorization mechanisms to control user access.
Provide functionality for users to update their profiles and reset passwords.
Q17. What is class
A class is a blueprint for creating objects that have similar attributes and behaviors.
A class is a user-defined data type that encapsulates data and functions.
It provides a way to organize and structure code.
Objects are instances of a class.
Classes can inherit properties and methods from other classes.
Examples of classes in programming languages include String, Integer, and List.
Q18. Write a code on prime number
Code to check if a number is prime or not.
A prime number is only divisible by 1 and itself.
Start checking from 2 up to the square root of the number.
If the number is divisible by any number in the range, it's not prime.
Otherwise, it's prime.
Q19. Instructions that tell a computer
Instructions that tell a computer what to do.
Instructions are written in programming languages like Java, Python, C++
They can be executed by a computer or a virtual machine
Examples of instructions include printing text, performing calculations, and accessing data
Q20. What is software
Software is a set of instructions that tell a computer what to do.
Software is a collection of programs, data, and instructions that tell a computer how to perform specific tasks.
It can be categorized into system software, application software, and middleware.
Examples of software include Microsoft Office, Adobe Photoshop, and Google Chrome.
Q21. Method over loading
Method overloading is a feature in OOP where multiple methods can have the same name but different parameters.
Method overloading is used to improve code readability and reusability.
The methods must have different parameters, either in number or type.
Example: void print(int num), void print(String str), void print(int num1, int num2)
Method overloading is resolved at compile-time based on the number and type of arguments passed.
Q22. Oops concepts for java script
Oops concepts for java script include inheritance, encapsulation, polymorphism, and abstraction.
Inheritance allows objects to inherit properties and methods from other objects.
Encapsulation involves bundling data and methods that operate on the data into a single unit.
Polymorphism allows objects to be treated as instances of their parent class.
Abstraction involves hiding the implementation details and showing only the necessary features of an object.
Top HR Questions asked in DXC Technology Software Engineer
Interview Process at DXC Technology Software Engineer

Top Software Engineer Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

