IT Campus Recruitment Test Pattern
IT Campus Recruitment Test Pattern
(Topics: percentages, profit & loss, time & work, probability, permutations, speed-distance-time, ratios, algebra)
(Puzzles, seating arrangement, blood relations, coding-decoding, syllogisms, data interpretation)
(Reading comprehension, synonyms/antonyms, error spotting, sentence improvement, fill in the blanks)
Duration: Usually 90–120 minutes
Total Questions: About 60–80
1. Quantitative Aptitude
1.Time and Work
Q1: A can complete a work in 12 days and B in 18 days. If they work together, how many days will it take to complete the work?
Solution:
A's 1 day work = 1/12
B's 1 day work = 1/18
Together = 1/12 + 1/18 = (3 + 2)/36 = 5/36
So, total time = 36/5 = 7.2 days
2. Time, Speed and Distance
Q2: A train 180 meters long is running at 54 km/h. How much time will it take to cross a platform 120 meters long?
Solution:
Total distance = 180 + 120 = 300 m
Speed = 54 km/h = (54 × 1000)/3600 = 15 m/s
Time = Distance / Speed = 300 / 15 = 20 seconds
3. Profit and Loss
Q3: A man sells an article for ₹240, making a profit of 20%. Find the cost price.
Solution:
Let CP = x
SP = x + 20% of x = x × 1.2 = 240
x = 240 / 1.2 = ₹200
4. Simple Interest
Q4: Find the simple interest on ₹5000 at 6% per annum for 2 years.
Solution:
SI = (P × R × T) / 100 = (5000 × 6 × 2)/100 = ₹600
5. Compound Interest
Q5: What is the compound interest on ₹4000 for 2 years at 10% per annum?
Solution:
Amount = P(1 + R/100)^T = 4000(1 + 10/100)^2
= 4000 × (1.1)^2 = 4000 × 1.21 = ₹4840
CI = 4840 - 4000 = ₹840
6. Percentages
Q6: 25% of a number is 45. What is the number?
Solution:
25% of x = 45 → (25/100)×x = 45
x = 45 × (100/25) = 180
7. Averages
Q7: The average of 5 numbers is 44. If one number is 64, what is the average of the remaining 4?
Solution:
Total = 44 × 5 = 220
Remaining = 220 - 64 = 156
Average = 156 / 4 = 39
8. Ratio and Proportion
Q8: If the ratio of boys to girls is 3:2 and there are 120 students in total, how many are girls?
Solution:
Total parts = 3 + 2 = 5
Girls = (2/5) × 120 = 48
9. Number Series
Q9: Find the next number: 2, 6, 12, 20, ?
Solution:
Differences: 4, 6, 8 → next difference = 10
Next number = 20 + 10 = 30
10. Algebra (Equations)
Q10: Solve for x: 2x + 3 = 11
Solution:
2x = 11 - 3 = 8
x = 8 / 2 = 4
11. Mixtures and Alligations
Q11: In what ratio must water be mixed with milk to get milk worth ₹6/litre from milk worth ₹8/litre and water (free)?
Solution:
Using alligation:
Milk : Water = (8 - 6):(6 - 0) = 2:6 = 1:3
Answer: 1:3
12. Boats and Streams
Q12: A boat goes 30 km downstream in 2 hours and the same distance upstream in 3 hours. Find speed of boat and stream.
Solution:
Downstream speed = 30/2 = 15 km/h
Upstream speed = 30/3 = 10 km/h
Boat speed = (15 + 10)/2 = 12.5 km/h
Stream speed = (15 - 10)/2 = 2.5 km/h
13. Pipes and Cisterns
Q13: Pipe A fills tank in 12 hrs, B in 6 hrs. If both are opened, how long to fill the tank?
Solution:
A’s 1 hr work = 1/12, B’s = 1/6
Together = 1/12 + 1/6 = (1 + 2)/12 = 3/12 = 1/4
Time = 4 hours
14. Geometry – Area
Q14: Find area of a triangle with base 10 cm and height 8 cm.
Solution:
Area = ½ × base × height = ½ × 10 × 8 = 40 cm²
15. Geometry – Volume
Q15: Find the volume of a cube with side 5 cm.
Solution:
Volume = side³ = 5³ = 125 cm³
16. Permutations and Combinations
Q16: In how many ways can 3 people be selected from 5?
Solution:
= 5C3 = 5! / (3! × 2!) = 10 ways
17. Probability
Q17: A coin is tossed. What is the probability of getting a tail?
Solution:
Sample space = {H, T} → 2 outcomes
Favorable = 1 → P(Tail) = 1/2 = 0.5
18. HCF and LCM
Q18: Find LCM of 12 and 18.
Solution:
12 = 2² × 3
18 = 2 × 3²
LCM = 2² × 3² = 36
19. Logarithms
Q19: If log₁₀(x) = 2, find x.
Solution:
log₁₀(x) = 2 → x = 10² = 100
20. Data Interpretation (Tabular)
Q20: A table shows sales of 5 months: Jan = 100, Feb = 120, Mar = 150, Apr = 130, May = 100. What is average?
Solution:
Sum = 100 + 120 + 150 + 130 + 100 = 600
Average = 600 / 5 = 120
Logical Aptitude questions (with solutions)These cover topics like coding-decoding, number series, directions, puzzles, syllogisms, blood relations, and more.
1. Number Series
Q1: Find the missing number:
2, 6, 12, 20, 30, ?
Solution:
+4, +6, +8, +10, +12 → Next = 30 + 12 = 42
2. Coding-Decoding
Q2: If FIRE is coded as ELQD, how is MOVE coded?
Solution:
F → E (–1), I → L (+3), R → Q (–1), E → D (–1)
Same pattern in MOVE:
M (–1) = L, O (+3) = R, V (–1) = U, E (–1) = D
Answer = LRUD
3. Direction Sense
Q3: A person walks 10 m north, turns right and walks 5 m, turns right and walks 10 m. Where is he now from the start?
Solution:
Net displacement: 5 m to the right (east)
Answer: 5 meters East
4. Blood Relation
Q4: A is the brother of B. B is the sister of C. How is C related to A?
Solution:
A and C are siblings (gender of C unknown)
Answer: Can't be determined
5. Syllogism
Q5: Statements:
Conclusion:
Solution:
Only Conclusion 1 follows
Answer: Only 1 follows
6. Odd One Out
Q6: Find the odd one:
3, 5, 11, 14, 17, 21
Solution:
All are prime except 14
Answer: 14
7. Letter Series
Q7: Find the next:
A, D, G, J, ?
Solution:
+3 each time: A → D → G → J → M
8. Analogy
Q8: Cup : Lip :: Bird : ?
Solution:
Cup touches lip, bird touches nest
Answer: Nest
9. Puzzle
Q9: If two hens lay two eggs in two days, how many eggs do 6 hens lay in 6 days?
Solution:
1 hen lays 1 egg in 2 days → in 6 days = 3 eggs
6 hens = 6 × 3 = 18 eggs
10. Calendar
Q10: If 1st Jan 2021 was a Friday, what day is 1st Jan 2022?
Solution:
2021 is not a leap year → +1 day
Friday + 1 = Saturday
11. Clock
Q11: At what time between 2 and 3 o'clock will the hands be opposite to each other?
Solution:
Angle = 180°
Relative speed = 5.5°/min
Angle at 2:00 = 60°
Time = (180 - 60)/5.5 = 120/5.5 ≈ 21.82 minutes
So, at 2:21:49
12. Mathematical Puzzle
Q12: If 1 = 3, 2 = 3, 3 = 5, 4 = 4, 5 = 4, then 6 = ?
Solution:
Count of letters in number:
Six = 3
13. Cube Cutting
Q13: A cube is painted on all sides and cut into 64 equal cubes. How many small cubes have 3 painted faces?
Solution:
Only corner cubes have 3 faces painted
Cube has 8 corners → Answer: 8
14. Statement & Assumption
Q14: Statement: "Children should play more outdoor games."
Assumption:
Solution:
Only Assumption 1 is valid
Answer: Only 1 is implicit
15. Matrix Reasoning
Q15: Complete the pattern:
A Z C X E V ? ?
Solution:
Letters move: A(+2)=C(+2)=E; Z(–2)=X(–2)=V
Next: E(+2)=G, V(–2)=T
Answer: G T
16. Ranking
Q16: Ram is 10th from the left and 15th from the right. How many students are there?
Solution:
Total = Left + Right – 1 = 10 + 15 – 1 = 24
17. Series Completion
Q17: 1, 4, 9, 16, 25, ?
Solution:
Squares: 1², 2², 3²... → Next = 6² = 36
18. Coding-Decoding (Word Logic)
Q18: If WHITE is coded as VGHSC, how is BLACK coded?
Solution:
–1 for each letter:
B → A, L → K, A → Z, C → B, K → J → AKZBJ
19. Directions
Q19: A man walks 5 km north, then 3 km east, then 5 km south. How far is he from the starting point?
Solution:
Net north-south = 0
Only 3 km east
Answer: 3 km
20. Alphabet Test
Q20: Which letter is 3rd to the right of the 10th letter from the left in the alphabet?
Solution:
10th from left = J
3rd to right = M
20 Verbal Aptitude Questions with Solutions
1. Synonym
Q1: Choose the synonym of ABANDON.
A) Keep
B) Leave
C) Protect
D) Save
Answer: B) Leave
2. Antonym
Q2: Choose the antonym of BENEFICIAL.
A) Harmful
B) Useful
C) Effective
D) Careful
Answer: A) Harmful
3. Fill in the Blanks
Q3: He is ______ honest man.
A) the
B) a
C) an
D) one
Answer: C) an
("Honest" starts with a vowel sound.)
4. Sentence Correction
Q4: Identify the error:
She don't like coffee.
A) She
B) don't
C) like
D) coffee
Answer: B) don't
Correct sentence: She doesn’t like coffee.
5. Spot the Error
Q5: One of my friend is going to Canada.
A) One
B) of my friend
C) is going
D) to Canada
Answer: B) of my friend
Correct: One of my friends
6. Idioms and Phrases
Q6: What is the meaning of “hit the nail on the head”?
A) To make a mistake
B) To guess
C) To be accurate
D) To hurt someone
Answer: C) To be accurate
7. Reading Comprehension
Passage:
The sun rises in the east and sets in the west. It provides energy to all life on Earth.
Q7: What does the sun provide?
A) Food
B) Water
C) Energy
D) Oxygen
Answer: C) Energy
8. Para Jumbles
Q8: Rearrange to form a correct sentence:
A) It rains heavily in July
B) In July it rains heavily
C) July rains heavily in it
D) Heavily it rains in July
Answer: A) It rains heavily in July
9. Word Meaning
Q9: What is the meaning of Reluctant?
A) Unwilling
B) Happy
C) Eager
D) Brave
Answer: A) Unwilling
10. One-word Substitution
Q10: One who loves books
A) Bibliophile
B) Philatelist
C) Linguist
D) Biographer
Answer: A) Bibliophile
11. Sentence Completion
Q11: If I had money, I ______ buy a car.
A) will
B) can
C) would
D) shall
Answer: C) would
12. Spelling Error
Q12: Pick the correctly spelled word:
A) Occurance
B) Occurrence
C) Ocurrance
D) Occurence
Answer: B) Occurrence
13. Active-Passive Voice
Q13: Change to passive voice:
“They wrote a letter.”
A) A letter is written
B) A letter was written
C) A letter were written
D) A letter writes
Answer: B) A letter was written
14. Direct-Indirect Speech
Q14: She said, “I am tired.”
A) She said that she is tired.
B) She said that I was tired.
C) She said that she was tired.
D) She said she had tired.
Answer: C) She said that she was tired.
15. Subject-Verb Agreement
Q15: Neither of the boys ______ present.
A) are
B) were
C) have
D) is
Answer: D) is
16. Cloze Test (Grammar)
Q16: It is better to ____ late than never.
A) be
B) being
C) been
D) are
Answer: A) be
17. Synonym
Q17: Choose the synonym of BRILLIANT.
A) Dull
B) Intelligent
C) Normal
D) Poor
Answer: B) Intelligent
18. Antonym
Q18: Choose the antonym of FREQUENT.
A) Rare
B) Often
C) Usual
D) Repeat
Answer: A) Rare
19. Error Spotting
Q19: He didn’t knew the correct answer.
A) He
B) didn’t
C) knew
D) correct
Answer: C) knew
Correct: He didn’t know
20. Idioms
Q20: Meaning of “Once in a blue moon”?
A) Often
B) Rarely
C) Regularly
D) Always
Answer: B) Rarely
25 Technical interview questions:
1. What is the difference between a process and a thread?
Answer:
A process is an independent program in execution with its own memory space, while a thread is a lightweight sub-process within a process sharing the same memory space.
2. What is polymorphism in OOP?
Answer:
Polymorphism allows objects to be treated as instances of their parent class rather than their actual class. It supports method overriding and method overloading.
3. Explain the OSI model layers.
Answer:
The OSI model has 7 layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application — each with distinct roles in network communication.
4. What is a deadlock? How can it be prevented?
Answer:
Deadlock is a situation where two or more processes are waiting indefinitely for resources held by each other. It can be prevented by resource allocation strategies like avoiding circular wait, hold and wait, etc.
5. What is the difference between SQL and NoSQL databases?
Answer:
SQL databases are relational, use structured schemas, and support ACID transactions. NoSQL databases are non-relational, flexible schema, and designed for scalability.
6. What is a REST API?
Answer:
REST (Representational State Transfer) API is a web service architecture that uses HTTP methods (GET, POST, PUT, DELETE) to perform CRUD operations on resources.
7. What are the different types of joins in SQL?
Answer:
Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL OUTER JOIN, CROSS JOIN.
8. Explain virtual memory.
Answer:
Virtual memory allows the system to use disk storage as an extension of RAM, providing an illusion of a large memory space.
9. What is the difference between stack and queue?
Answer:
Stack is LIFO (Last In First Out), queue is FIFO (First In First Out).
10. What is garbage collection in Java?
Answer:
Garbage collection automatically frees memory by removing objects that are no longer referenced.
11. Explain the concept of inheritance in OOP.
Answer:
Inheritance allows a class to acquire properties and behavior (methods) from another class.
12. What is multithreading?
Answer:
Multithreading allows concurrent execution of two or more threads to maximize CPU utilization.
13. What is a deadlock in database transactions?
Answer:
Deadlock occurs when two or more transactions wait indefinitely for locks held by each other.
14. What is Agile methodology?
Answer:
Agile is an iterative software development process emphasizing collaboration, customer feedback, and small, rapid releases.
15. What is a constructor in OOP?
Answer:
A constructor is a special method used to initialize objects when they are created.
16. Explain difference between HTTP and HTTPS.
Answer:
HTTPS is HTTP with encryption (SSL/TLS) providing secure communication over the network.
17. What is a binary tree?
Answer:
A tree data structure where each node has at most two children.
18. What is normalization in databases?
Answer:
Normalization organizes database tables to reduce redundancy and dependency by dividing tables into smaller ones.
19. Explain exception handling in Java.
Answer:
Exception handling manages runtime errors using try, catch, and finally blocks to maintain normal program flow.
20. What is a hash table?
Answer:
A hash table is a data structure that maps keys to values for efficient lookup using a hash function.
21. What is the difference between TCP and UDP?
Answer:
TCP is connection-oriented and reliable, UDP is connectionless and faster but less reliable.
22. What is the use of 'final' keyword in Java?
Answer:
'final' makes a variable constant, a method un-overridable, or a class non-inheritable.
23. What are microservices?
Answer:
Microservices architecture structures an application as a collection of loosely coupled services.
24. What is CI/CD?
Answer:
CI/CD stands for Continuous Integration and Continuous Deployment, automating code integration and release processes.
25. Explain the difference between abstract class and interface in Java.
Answer:
Abstract class can have both abstract and concrete methods; interfaces only have abstract methods (until Java 8). A class can implement multiple interfaces but inherit from one abstract class.
20 coding interview questions along with their solutions in Python
1. Reverse a String
Problem: Reverse a given string.
def reverse_string(s):
return s[::-1]
# Example
print(reverse_string("L&T")) # Output: "T&L"
2. Check if a number is prime
def is_prime(n):
if n <= 1:
return False
for i in range(2, int(n**0.5)+1):
if n % i == 0:
return False
return True
print(is_prime(29)) # True
3. Find factorial of a number
def factorial(n):
if n == 0:
return 1
return n * factorial(n-1)
print(factorial(5)) # 120
4. Find the Fibonacci sequence up to n terms
def fibonacci(n):
fib = [0, 1]
for i in range(2, n):
fib.append(fib[i-1] + fib[i-2])
return fib[:n]
print(fibonacci(7)) # [0, 1, 1, 2, 3, 5, 8]
5. Check if a string is a palindrome
def is_palindrome(s):
return s == s[::-1]
print(is_palindrome("madam")) # True
6. Find maximum element in an array
def find_max(arr):
max_val = arr[0]
for num in arr:
if num > max_val:
max_val = num
return max_val
print(find_max([3, 9, 2, 7])) # 9
7. Merge two sorted arrays
def merge_sorted(arr1, arr2):
i, j, merged = 0, 0, []
while i < len(arr1) and j < len(arr2):
if arr1[i] < arr2[j]:
merged.append(arr1[i])
i += 1
else:
merged.append(arr2[j])
j += 1
merged.extend(arr1[i:])
merged.extend(arr2[j:])
return merged
print(merge_sorted([1,3,5], [2,4,6])) # [1,2,3,4,5,6]
8. Find the second largest element in an array
def second_largest(arr):
first = second = float('-inf')
for num in arr:
if num > first:
second = first
first = num
elif first > num > second:
second = num
return second
print(second_largest([10, 5, 8, 12, 9])) # 10
9. Count the number of vowels in a string
def count_vowels(s):
vowels = "aeiouAEIOU"
count = 0
for char in s:
if char in vowels:
count += 1
return count
print(count_vowels("L&T Technologies")) # 6
10. Check if two strings are anagrams
def are_anagrams(s1, s2):
return sorted(s1) == sorted(s2)
print(are_anagrams("listen", "silent")) # True
11. Find the missing number in an array of size n containing numbers from 1 to n+1
def find_missing(arr, n):
total = (n+1)*(n+2)//2
return total - sum(arr)
print(find_missing([1, 2, 4, 5], 4)) # 3
12. Implement binary search
def binary_search(arr, target):
left, right = 0, len(arr)-1
while left <= right:
mid = (left + right)//2
if arr[mid] == target:
return mid
elif arr[mid] < target:
left = mid + 1
else:
right = mid - 1
return -1
print(binary_search([1, 2, 3, 4, 5], 3)) # 2
13. Remove duplicates from a list
def remove_duplicates(arr):
return list(set(arr))
print(remove_duplicates([1, 2, 2, 3, 4, 4])) # [1, 2, 3, 4]
14. Find the GCD (Greatest Common Divisor) of two numbers
def gcd(a, b):
while b:
a, b = b, a % b
return a
print(gcd(48, 18)) # 6
15. Check if a linked list has a cycle (Floyd’s Cycle detection)
class Node:
def __init__(self, val):
self.val = val
self.next = None
def has_cycle(head):
slow = fast = head
while fast and fast.next:
slow = slow.next
fast = fast.next.next
if slow == fast:
return True
return False
# You can create a linked list and test accordingly.
16. Print all permutations of a string
def permute(s, answer=""):
if len(s) == 0:
print(answer)
return
for i in range(len(s)):
ch = s[i]
left = s[:i]
right = s[i+1:]
permute(left+right, answer+ch)
permute("ABC")
17. Check if a number is a power of two
def is_power_of_two(n):
return n > 0 and (n & (n - 1)) == 0
print(is_power_of_two(16)) # True
print(is_power_of_two(18)) # False
18. Find the longest substring without repeating characters
def longest_unique_substring(s):
start = maxLength = 0
used_char = {}
for i, char in enumerate(s):
if char in used_char and start <= used_char[char]:
start = used_char[char] + 1
else:
maxLength = max(maxLength, i - start + 1)
used_char[char] = i
return maxLength
print(longest_unique_substring("abcabcbb")) # 3
19. Find the sum of digits of a number
def sum_digits(n):
total = 0
while n > 0:
total += n % 10
n //= 10
return total
print(sum_digits(123)) # 6
20. Check if two strings are rotations of each other
def are_rotations(s1, s2):
return len(s1) == len(s2) and s2 in s1 + s1
print(are_rotations("ABCD", "CDAB")) # True
print(are_rotations("ABCD", "ACBD")) # False
Comments
Post a Comment