This article consists of the latest Recruitment Questions and Answers that appeared in DXC Technology On-Campus Recruitment.
DXC Technology is conducting recruitment on campus, and it’s visiting a lot of campuses. The latest placement papers and solutions in this article will help you prepare well if you’re taking the DXC Technology Recruitment Test.
It has been observed that FACE Prep’s students have done extremely well in the Recruitment Process. Here are some results to show.
The following are the rounds you need to qualify to land a job in DXC Technology.
@@table::2@@
To know about the Recruitment Process and Pattern in detail, please check out DXC Technology Recruitment Process.
Here are some latest placement papers and solutions that have appeared in the Recruitment Test of DXC Technology.
Fill in the blank(s) with the option that makes the sentence meaningfully complete.
@@question::QP_6910@@
Get more such exclusive questions to ace the latest DXC Recruitment by clicking the banner below
@@question::QP_6911@@
@@question::QP_6912@@
@@question::QP_6913@@
Fill in the blank(s) with the option that makes the sentence meaningfully complete.
@@question::QP_6914@@
Preparing for Placements? Need more such exclusive questions to prepare for the latest DXC Drive? Click Here
@@question::QP_6915@@
@@question::QP_6916@@
@@question::QP_6917@@
@@question::QP_6918@@
@@question::QP_6919@@
@@question::QP_6920@@
@@question::QP_6921@@
For more such exclusive questions from DXC along with an explanation, click here
@@question::QP_6922@@
Practising more such questions will boost your chance of getting hired by DXC, click here to practice more
@@question::QP_6923@@
@@question::QP_6924@@
@@question::QP_6925@@
@@question::QP_6926@@
@@question::QP_6927@@
Get familiar with Programming and DSA Questions with 1500+ Questions. Click here to learn how.
@@question::QP_6928@@
@@question::QP_6929@@
Q1. You are required to complete the given code. You can click on Compile & Run anytime to check the compilation/ execution status of the program. You can use cout to debug your code. The submitted code should be logically/ syntactically correct and pass all test cases. Do not write the main() function as it is not required.
Code Approach: For this question, you will need to complete the code as in the given implementation. We do not expect you to modify the approach.
The function/ method median accepts two arguments – size and input List, an integer representing the length of a list and a list of integers, respectively.
The function/method median is supposed to calculate and return an integer representing the median of elements in the input list. However, the function/method median works only for odd-length lists because of incomplete code.
You must complete the code to make it work for even-length lists as well. A couple of other functions/ methods are available, which you are supposed to use inside the function/method median to complete the code.
Helper Description
The following function is used to represent a quickselect and is already implemented in the default code (Do not write this definition again in your code):
int quick_select(int* inputList, int start_index, int end_index, int median_order)
{
/*It calculates the median value
This can be called as
quick_select(inputList, start_index, end_index, median_order)
where median_order is the half length of the inputList
}
Answer:
Q2. You are required to fix all logical errors in the given code. You can click on Compile & Run anytime to check the compilation/ execution status of the program. You can use cout to debug your code. The submitted code should be logically/ syntactically correct and pass all test cases. Do not write the main() function as it is not required.
Code Approach: For this question, you will need to correct the given implementation. We do not expect you to modify the approach or incorporate any additional library methods.
The function/method drawPrintPattern accepts num, an integer.
The function/method drawPrintPattern prints the first num lines of the pattern shown below.
For example, if num = 3, the pattern should be:
11
1111
111111
The function/method drawPrintPattern compiles successfully but fails to get the desired result for some test cases due to incorrect implementation of the function/method. Your task is to fix the code so that it passes all the test cases.
Answer:
DXC Technology Interview Questions
DXC Technology Aptitude Questions | Quantitative Aptitude
DXC Technology Aptitude Questions | Logical Reasoning
DXC Technology Questions and Answers | Verbal Ability