HCLTech preparation
HCLTech's fresher test usually has four equal sections: quantitative, logical, verbal and technical, each with its own timer.
Test pattern
| Section | Questions | Time |
|---|---|---|
| Quantitative Aptitude | 15 | 15 min |
| Logical Reasoning | 15 | 15 min |
| Verbal Ability | 15 | 15 min |
| Technical | 15 | 15 min |
Tips
- Each section has a separate time limit; move on quickly from hard questions.
- Technical questions cover C, OOP, DBMS and networking basics.
Mock tests
- HCLTech Mock Test 1 60 questions · 60 min
- HCLTech Mock Test 2 60 questions · 60 min
- HCLTech Mock Test 3 60 questions · 60 min
- HCLTech Mock Test 4 30 questions · 45 min
Coding practice
Second largest number
Read N integers and print the second largest distinct value. If it does not exist, print -1.
Input: 5
4 9 2 9 7
Output: 7Count vowels
Read a line of text and print how many vowels (a, e, i, o, u, either case) it contains.
Input: Osmania University
Output: 8Rotate an array
Read N, then N integers, then K. Rotate the array to the right by K positions and print it.
Input: 5
1 2 3 4 5
2
Output: 4 5 1 2 3