DXC Technology Written Test: Prepare with Sample Aptitude Questions
This resource provides sample aptitude questions similar to those found in the DXC Technology written test. Prepare for the aptitude, verbal, and technical sections, and practice your problem-solving skills with these example questions covering various mathematical and logical reasoning topics. Ace your DXC Technology written exam!
DXC Technology Interview Questions: Aptitude and Technical
Written Test
Question 1: DXC Technology Written Test
The DXC Technology written test typically includes aptitude, verbal, and technical sections, along with an essay. The test generally lasts for one hour and contains approximately 100 questions.
Aptitude Questions
Aptitude Questions (Examples)
Question 1: Work Problem
Shyam takes 20 days to complete a task. Ram is 25% more efficient. How many days will Ram take?
Solution
Shyam's work rate: 1/20 per day
Ram's work rate: (1/20) * 1.25 = 1/16 per day
Ram takes 16 days.
Answer
16 days
Question 2: Age Problem
Manish is three times older than Suresh. In 8 years, Manish will be 2.5 times Suresh's age. How many times older will Manish be after another 8 years?
Solution
Let Suresh's current age = x
Manish's current age = 4x
After 8 years: 4x + 8 = 2.5(x + 8)
Solving for x: x = 8
After another 8 years:
Suresh's age = 24
Manish's age = 48
Ratio: 48/24 = 2
Answer
2 times
Question 3: Percentage Error in Area
There's a 2% excess error in measuring a square's side. What's the percentage error in the calculated area?
Solution
Let the side be x. Area = x²
With a 2% error, the new side is 1.02x.
New area = (1.02x)² = 1.0404x²
Percentage error = (1.0404 - 1) * 100% = 4.04%
Answer
4.04%
Question 4: Probability with Dice
What's the probability of getting a sum of 9 when rolling two dice?
Solution
Total possible outcomes: 6 * 6 = 36
Outcomes that sum to 9: (3, 6), (4, 5), (5, 4), (6, 3) = 4 outcomes
Probability: 4/36 = 1/9
Answer
1/9
Question 5: Compound Interest
The compound interest on Rs. 30,000 at 7% per annum is Rs. 4347. What's the time period (in years)?
Solution
Amount = Principal + Interest = 34347
A = P(1 + r/100)^n
34347 = 30000(1 + 7/100)^n
1.1449 = (1.07)^n
Solving for n (using logarithms or trial and error): n = 2 years
Answer
2 years
Reasoning Questions
Reasoning Questions (Examples)
Question 6: Analogy
Odometer : Mileage :: Compass : ?
Answer
Direction
Intuit Aptitude Questions
Question 1: Compound Interest
What's the compound interest on Rs. 5000 in 2 years if the simple interest on the same sum at the same rate for 5 years is Rs. 2000?
Solution
Simple Interest (SI) = (P * R * T) / 100
2000 = (5000 * R * 5) / 100
R = 8% per annum
Compound Interest (CI) = P(1 + r/100)^n - P
CI = 5000(1 + 8/100)² - 5000 = 816
Answer
Rs. 816
Question 2: Number Problem
One candidate scored 9 marks more than another. Their scores were 56% of the total marks. What were their scores?
Solution
Let the scores be x and x + 9.
0.56 * Total Marks = 2x + 9
Let's assume 56% is approximately half. Then 2x + 9 ≈ Total Marks / 2
4x + 18 ≈ Total Marks
Solving this equation would involve additional information or clarification about the total marks available.
Answer (requires clarification about total marks)
Requires additional information
Question 3: Number Problem
The difference between a two-digit number and the number formed by reversing its digits is 36. What's the difference between the digits?
Solution
Let the number be 10a + b, where a and b are the digits.
(10a + b) - (10b + a) = 36
9a - 9b = 36
a - b = 4
Answer
4
Question 4: Number Problem
The difference between a two-digit number and the number formed by reversing its digits is 36. The ratio of the digits is 1:2. What's the difference between the sum and the difference of the digits?
Solution
Let the digits be x and 2x.
(20x + x) - (10x + 2x) = 36
9x = 36
x = 4
Digits: 8 and 4
Sum: 12
Difference: 4
Difference between sum and difference: 12 - 4 = 8
Answer
8
Question 5: Simple Interest and True Discount
An investor's discount on Rs. 1600 at 15% per annum is equal to the true discount on Rs. 1680 for the same time and rate. Find the time period.
Question 6: Number Series
Find the next number: 7, 13, 25, 49, 97, 194, 385
Solution
The pattern is: double the previous number and subtract 1.
7 * 2 - 1 = 13
13 * 2 - 1 = 25
25 * 2 - 1 = 49
49 * 2 - 1 = 97
97 * 2 - 1 = 193 (The number 194 is incorrect)
193 * 2 - 1 = 385
Answer
193
Question 7: Number Series
Find the missing number: 1, 4, 9, 16, 20, 36, 49
Solution
The series consists of perfect squares (1, 4, 9, 16, 49) and 20, which seems to be out of sequence.
Answer
25 (assuming the 20 is an error)
Intuit Technical Questions
Intuit Technical Questions (Examples)
Question 1: C Program Output
C Code
#include <stdio.h>
int main() {
int a = 300, b, c;
if (a >= 400)
b = 300;
c = 200;
printf("%d %d\n", b, c);
return 0;
}
Output
some garbage value 200
Question 2: C Program Output
C Code
#include <stdio.h>
int main() {
int a = 500, b, c;
if (a >= 400)
b = 300;
c = 200;
printf("%d %d\n", b, c);
return 0;
}
Output
300 200
Question 3: C Program Error
C Code
#include <stdio.h>
int main() {
int j = 10, k = 12;
{
{
k = j;
j = k;
}
}
return 0;
}
Output
No Error
Question 4: C Program Error
C Code
#include <stdio.h>
int main() {
int i = 1;
for (;;) {
printf("%d\n", i++);
if (i > 10)
break;
}
return 0;
}
Output
No Error
Question 5: C Program Output
C Code
#include <stdio.h>
int main() {
int x = 4, y, z;
y = --x;
z = x--;
printf("%d %d %d\n", x, y, z);
return 0;
}
Output
2 3 3
Question 6: Postfix Expression Evaluation
Evaluate the postfix expression: 5, 4, 6, +, *, 4, 9, 3, /, +, *
Solution (Requires step-by-step postfix evaluation)
Step-by-step evaluation of the postfix expression is required to get the answer.
Answer
350
Question 7: Linked Lists
What is the minimum number of fields in a linked list node?
Answer
Two (data and a pointer to the next node)
Question 8: Queue Implementation
When does a queue implemented using an array of size MAX_SIZE get full?
Answer
When `rear` equals `MAX_SIZE - 1`
Question 9: Doubly Linked List Insertion
(This question requires code to be evaluated to find the correct solution. The correct answer is A.)
Answer
A
Question 10: Circular Linked Lists
Which application uses circular linked lists?
Answer
Implementing an Undo operation in a text editor.
Question 11: Queue Insertion
In a linked list implementation of a queue, which pointer(s) change when inserting into a non-empty queue?
Answer
Only the rear pointer changes.
Question 12: Matrix Allocation in C
How to allocate a matrix using a single pointer in C (assuming r rows and c columns)?
Answer
int *arr = (int *)malloc(r * c * sizeof(int));
Question 13: Disadvantages of Matrices
Disadvantages of using matrices include space inefficiency, increased complexity in searching and manipulation, and the potential for internal fragmentation (depending on the implementation).
Question 14: Pointer Declaration
What does `int (*ptr)[10];` mean?
Answer
ptr is a pointer to an array of 10 integers.
Question 15: Garbage Collection
Can you explicitly invoke garbage collection in C/C++?
Answer
No (Garbage collection is not typically available in C/C++.)
Question 16: Preventing Object Creation
Can you prevent object creation using zero-argument constructors?
Answer
Yes (by making the constructor private)
Question 17: Memory Allocation
Consolidate: `char *p; p = (char*)malloc(100);`
Answer
char *p = (char*)malloc(100);
Question 18: Pointers
What does the following C code do? `int i = 10; int *j = &i;`
Answer
j is a pointer to an integer that stores the address of i.
Question 19: SQL Joins
Which join is used to include rows that don't have matching values in related tables?
Answer
Outer join (Left, Right, or Full outer join)
Question 20: System Data in RDBMS
What's true about system data in an RDBMS?
Answer
All of the above (It's stored in system tables; it's accessed using SQL; and it's generally not updatable by users.)
Question 21: Data Scrubbing
What is data scrubbing?
Answer
Improving data quality *before* loading it into a data warehouse.
Question 22: Operational Data Store (ODS)
What is an operational data store?
Answer
A real-time system that uses current data to support business operations.
Question 23: Data Consistency in Operational Systems
Is data in operational systems typically fragmented and inconsistent?
Answer
True
Question 24: Surrogate Keys in Data Warehousing
Are all keys used to join fact and dimension tables in a data warehouse surrogate keys?
Answer
True (Surrogate keys are typically used for joining fact and dimension tables in a data warehouse.)
Question 15: Work Problem
A fast typist takes 2 hours, a moderate typist 3 hours. How long would it take them together?
Solution
Fast typist's rate: 1/2 task per hour
Slow typist's rate: 1/3 task per hour
Combined rate: 1/2 + 1/3 = 5/6 task per hour
Time: 1 / (5/6) = 6/5 hours = 1.2 hours
Answer
1.2 hours
Question 16: Train Problem
Two trains pass a man in 27s and 17s respectively. They pass each other in 23s. Find the ratio of their speeds (assuming trains have equal length).
Solution
Let speeds be v1 and v2, and length be L.
v1 = L/27
v2 = L/17
v1 + v2 = 2L/23
Solving: v1/v2 = 17/27
Answer
17:27
Question 17: Sum of Numbers Divisible by 14
Find the sum of all numbers between 100 and 1000 divisible by 14.
Solution
First number: 112
Last number: 994
Number of terms: (994 - 112)/14 + 1 = 63.
Sum = n/2(a + l) = 63/2 (112 + 994) = 35391
Answer
35391
Question 18: Cricket Runs
Gavaskar's average over 50 innings was 50. After the 51st innings, his average was 51. How many runs did he score in his 51st innings?
Solution
Total runs after 50 innings: 50 * 50 = 2500
Total runs after 51 innings: 51 * 51 = 2601
Runs in 51st innings: 2601 - 2500 = 101
Answer
101
Question 19: Average Speed
Driving 60 km at 30 kmph and then 60 km at 50 kmph, what's the average speed for the whole journey?
Solution
Time for first 60km: 60/30 = 2 hrs
Time for second 60km: 60/50 = 1.2 hrs
Total time: 3.2 hrs
Average speed: 120km / 3.2 hrs = 37.5 kmph
Answer
37.5 kmph
Question 20: Work Problem
A's work rate equals B and C's combined rate. A and B together take 10 days, C takes 50 days. How long would B take alone?
Solution
A = B + C
A + B = 1/10 per day
C = 1/50 per day
B + 1/50 = 1/10
B = 2/25 per day
Time for B: 25/2 = 12.5 days
Answer
12.5 days
Question 21: Boat Problem
A boat travels at 13 km/hr in still water and the stream speed is 4 km/hr. Find the time to travel 68 km downstream.
Solution
Downstream speed = 13 + 4 = 17 km/hr
Time = Distance / Speed = 68 km / 17 km/hr = 4 hours
Answer
4 hours
Question 22: Profit Sharing
Rs. 1360 is divided among A, B, and C such that A gets 2/3 of B's share, and B gets 1/4 of C's share. Find B's share.
Solution (Requires solving equations)
Let C's share be x.
B's share: x/4
A's share: (2/3)(x/4) = x/6
x/4 + x/6 + x = 1360
Solving for x: x = 720 (C's share)
B's share = 720/4 = 180
Answer
Rs. 180
Fully Functional Dependency
Question 7: Fully Functional Dependency
In a relational database, attribute Y is fully functionally dependent on attribute X if:
- Y is functionally dependent on X (each value of X determines a unique value of Y).
- Y is not functionally dependent on any proper subset of X.
B-Trees
Question 8: B-Trees
A B-tree is a self-balancing tree data structure that maintains sorted data and allows searches, sequential access, insertions, and deletions in logarithmic time. It's commonly used in databases for indexing.
Properties of a B-tree of order m:
- All leaf nodes are at the same level.
- The root node has at least two children and at most m children.
- Non-root nodes have at least ⌈m/2⌉ children and at most m children.
- The number of keys in a node is one less than the number of children.
(A diagram of a B-tree would be helpful here, but cannot be directly created in HTML.)
Object-Oriented Data Model
Question 9: Object-Oriented Data Model
An object-oriented data model represents data as objects, which encapsulate data and methods that operate on that data. This model supports concepts like classes, inheritance, and polymorphism.
Disadvantages of OODBMS
Question 10: Disadvantages of OODBMS
Potential drawbacks of OODBMS (Object-Oriented Database Management Systems):
- Limited support for ad-hoc queries.
- Lack of a universally accepted data model.
- Challenges in query optimization.
- Security concerns.
Data Warehouses
Question 11: What is a Data Warehouse?
A data warehouse is a central repository of integrated data from multiple sources. It's designed for analytical processing (OLAP) to support business decision-making. The data is designed for querying and analysis.
Advantages of Data Warehouses
Question 12: Advantages of Data Warehouses
Advantages:
- Improved decision-making.
- Better business insights.
- Enhanced customer service.
- Competitive advantage.
Limitations of Data Warehouses
Question 13: Limitations of Data Warehouses
Limitations:
- High cost of implementation and maintenance.
- Complexity of integration from multiple sources.
- Potential for data inconsistencies if not properly managed.
- Increased user demands and expectations.
DBMS vs. RDBMS
Question 14: DBMS vs. RDBMS
Key differences:
Feature | DBMS | RDBMS |
---|---|---|
Data Model | Various models (hierarchical, network, relational, etc.) | Relational model (tables) |
Data Structure | Files | Tables |
Relationships | Relationships are not central to the database organization | Relationships are central to the database organization |
Query Language | Varies depending on the DBMS | SQL (Structured Query Language) |
Data Structures
Question 15: What is a Data Structure?
A data structure is a way of organizing and storing data in a computer so that it can be used efficiently. Different data structures are suitable for different tasks.
Algorithms
Question 16: Need for Algorithms
Algorithms are essential for:
- Defining how to solve a problem.
- Improving efficiency.
- Understanding problem structure.
- Designing and implementing solutions.
Asymptotic Notation
Question 17: Asymptotic Notation
Asymptotic notation describes the performance (time or space complexity) of an algorithm as the input size grows very large (Big O notation).
NULL vs. VOID
Question 18: NULL vs. VOID
In programming:
NULL
: Represents an empty or non-existent value (for pointers).void
: Represents an absence of type.
Singleton Class
Question 19: Singleton Class
A singleton class restricts the number of instances to one. It ensures that only one object of the class exists at any given time. This is often used in situations where only one instance of an object should exist.
Private Constructor
Question 20: Private Constructor in Java
A private constructor prevents a class from being instantiated from outside the class itself. It's often used in the singleton design pattern.
IBM HR Interview Questions
Question 21: Tell Me About Yourself
Provide a concise and personalized overview of your skills and experience, focusing on aspects relevant to the role and IBM.
Question 22: Why This Company (IBM)?
Explain your genuine interest in IBM, highlighting how your career goals align with the company's mission, values, and opportunities.
Question 23: Software Packages
List specific software packages and tools you're proficient in, including versions where applicable (e.g., Python 3.9, Microsoft SQL Server 2019, AWS S3). Be comprehensive and tailor the list to the job requirements.
Question 24: Salary Expectations
State a realistic and researched salary range based on industry standards, your experience level, and the specific role at IBM. Avoid being too specific or too vague.
Question 25: Working Under Pressure
Describe your strategies for handling pressure effectively, emphasizing your ability to maintain focus, productivity, and composure in challenging situations. Provide specific examples if possible.
Question 26: Confidence vs. Overconfidence
Confidence is a realistic assessment of one's abilities, while overconfidence is an inflated and often inaccurate self-perception. Confidence is grounded in experience and leads to well-informed decisions, whereas overconfidence can lead to mistakes and misjudgments.
Question 27: Hard Work vs. Smart Work
Hard work emphasizes effort and dedication, while smart work focuses on efficiency, strategy, and maximizing output with available resources. Ideally, both are combined for optimal results.
Question 28: Inspirational Figure
Share a concise story about an inspirational figure and explain how their qualities and actions have positively influenced your life and career aspirations.
Question 29: Strengths and Weaknesses
Highlight your key strengths relevant to the position and honestly address a weakness, framing it positively and demonstrating how you're actively working to improve in that area.
Question 30: Anger Management
Describe your approach to managing anger constructively in professional settings, emphasizing your ability to remain calm, respectful, and solution-oriented.