Add office photos
DXC Technology logo
Engaged Employer

DXC Technology

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

DXC Technology Software Engineer Interview Questions and Answers for Freshers

Updated 5 Feb 2024

Q1. 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

Q2. 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

Q3. 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

Q4. 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
Discover DXC Technology interview dos and don'ts from real experiences

Q5. 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

Q6. 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
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 for Freshers

based on 1 interviews
Interview experience
4.0
Good
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

Infosys Logo
3.6
 • 184 Interview Questions
ivy Logo
3.6
 • 20 Interview Questions
Deloitte Logo
3.8
 • 20 Interview Questions
Apexon Logo
3.3
 • 10 Interview Questions
View all
Recently Viewed
INTERVIEWS
Aditya Birla Fashion and Retail
Fresher
10 top interview questions
CAMPUS PLACEMENT
Indian Institute of Management (IIM), Lucknow
CAMPUS PLACEMENT
National Institute of Fashion Technology (NIFT), Kolkata
INTERVIEWS
Aditya Birla Fashion and Retail
No Interviews
INTERVIEWS
Axxela Research & Analytics
No Interviews
LIST OF COMPANIES
Discover companies
Find best workplace
CAMPUS PLACEMENT
Indian Institute of Management (IIM), Ranchi
CAMPUS PLACEMENT
Asian Academy of Film and Television, Noida
INTERVIEWS
Aditya Birla Fashion and Retail
No Interviews
INTERVIEWS
Ittiam Systems
10 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