Add office photos
DXC Technology logo
Engaged Employer

DXC Technology

Verified
3.7
based on 10k Reviews
Video summary
Filter interviews by
Software Engineer
Fresher
Clear (1)

20+ DXC Technology Software Engineer Interview Questions and Answers

Updated 21 Sep 2024

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 more
Ans.

Interview 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

Add your answer
right arrow

Q2. Can you write the codee which is shown below in any of the languages which you know?

Ans.

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.

Add your answer
right arrow
DXC Technology Software Engineer Interview Questions and Answers for Freshers
illustration image

Q3. Write any code of your choice without even a minor error.

Ans.

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)

Add your answer
right arrow

Q4. What is server and client ?

Ans.

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.

Add your answer
right arrow
Discover DXC Technology interview dos and don'ts from real experiences

Q5. what is list, dictionary, set and tuple and difference between them

Ans.

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 ()

Add your answer
right arrow

Q6. what is networking?

Ans.

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.

View 1 answer
right arrow
Are these interview questions helpful?

Q7. what is oops and explain each of the terms

Ans.

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

Add your answer
right arrow

Q8. Technologies used in Group project?

Ans.

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

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q9. Wap to find each character occurrence in string

Ans.

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

Add your answer
right arrow

Q10. 2. Difference between DELETE and TRUNCATE and DROP

Ans.

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;

Add your answer
right arrow

Q11. What are 4 Pillars of OOPs

Ans.

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.

Add your answer
right arrow

Q12. What is Dns and what are its use

Ans.

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

Add your answer
right arrow

Q13. What is prime number

Ans.

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

Add your answer
right arrow

Q14. Write a question on ages problem

Ans.

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

Add your answer
right arrow

Q15. 1. check if string is Palindrome.

Ans.

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.

Add your answer
right arrow

Q16. Do you know how to create user

Ans.

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.

Add your answer
right arrow

Q17. What is class

Ans.

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.

Add your answer
right arrow

Q18. Write a code on prime number

Ans.

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.

Add your answer
right arrow

Q19. Instructions that tell a computer

Ans.

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

Add your answer
right arrow

Q20. What is software

Ans.

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.

Add your answer
right arrow

Q21. Method over loading

Ans.

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.

Add your answer
right arrow

Q22. Oops concepts for java script

Ans.

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.

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at DXC Technology Software Engineer

based on 20 interviews
4 Interview rounds
Resume Shortlist Round
Aptitude Test Round
Technical Round
HR Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

Paytm Logo
3.3
 • 79 Interview Questions
Coforge Logo
3.3
 • 17 Interview Questions
View all
Recently Viewed
INTERVIEWS
Axxela Research & Analytics
No Interviews
INTERVIEWS
Axxela Research & Analytics
No Interviews
INTERVIEWS
Aditya Birla Fashion and Retail
60 top interview questions
INTERVIEWS
Aditya Birla Fashion and Retail
No Interviews
INTERVIEWS
Axxela Research & Analytics
No Interviews
INTERVIEWS
Aditya Birla Fashion and Retail
No Interviews
LIST OF COMPANIES
Aditya Birla Fashion and Retail
Locations
INTERVIEWS
Axxela Research & Analytics
No Interviews
SALARIES
Aditya Birla Fashion and Retail
INTERVIEWS
Accenture
20 top interview questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter