HCLTech preparation

HCLTech's fresher test usually has four equal sections: quantitative, logical, verbal and technical, each with its own timer.

Test pattern

SectionQuestionsTime
Quantitative Aptitude1515 min
Logical Reasoning1515 min
Verbal Ability1515 min
Technical1515 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

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: 7

Count vowels

Read a line of text and print how many vowels (a, e, i, o, u, either case) it contains.

Input: Osmania University
Output: 8

Rotate 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