HCL Technologies interview experience Real time questions & tips from candidates to crack your interview

Trainee Technology

HCL Technologies
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Computer Network,DevOps, OOPS, System Design, Algorithms, Dynamic Programming
Tip
Tip

Tip 1 : Do 500 good quality questions
Tip 2 : Have some decent project in your resume

Application process
Where: Campus
Eligibility: Above 6.5 CGPA
Resume Tip
Resume tip

Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume.

Interview rounds

01
Round
Easy
Video Call
Duration45 minutes
Interview date21 Nov 2022
Coding problem1

1. Search In The Array

Easy
15m average time
85% success
0/40
Asked in companies
Goldman SachsHCL TechnologiesOYO

You are given two arrays ‘arr’ of size ‘n’ and ‘queries’ of size ‘q’. For each element ‘q’ in the array 'queries', your task is to find the sum of all elements in the array ‘arr’ which are less than or equal to ‘q’.

For example: given array ‘arr = { 1, 2, 3, 3, 4, 5, 6, 7, 9, 10}’ and ‘ queries= { 3, 5}’
Then the sum of all elements whose value is less than or equal to
‘queries[0] = 3’ is ‘ 1+2+3+3 =9’.
‘queries[1] = 5’ is ‘1+2+3+3+4+5 =18’.

You have to return the answer of every query { 9, 18}.

Problem approach

You are given two arrays ‘arr’ of size ‘n’ and ‘queries’ of size ‘q’. For each element ‘q’ in the array 'queries', your task is to find the sum of all elements in the array ‘arr’ which are less than or equal to ‘q’.
For Example: Given Array ‘Arr = { 1, 2, 3, 3, 4, 5, 6, 7, 9, 10}’ And ‘ Queries= { 3, 5}’
Then The Sum Of All Elements Whose Value Is Less Than Or Equal To
‘Queries[0] = 3’ Is ‘ 1+2+3+3 =9’.
‘Queries[1] = 5’ Is ‘1+2+3+3+4+5 =18’.
You have to return the answer of every query { 9, 18}.

Try solving now
02
Round
Easy
Video Call
Duration45 minutes
Interview date21 Nov 2022
Coding problem3

1. DBMS Questions

Mention the different languages present in DBMS

Problem approach

The different languages present in DBMS are as follows:

DDL(Data Definition Language) – Consists of commands which are used to define the database.
DML(Data Manipulation Language) – Consists of commands which are used to manipulate the data present in the database.
DCL(Data Control Language) – Consists of commands which deal with the user permissions and controls of the database system.
TCL(Transaction Control Language) – Consist of commands which deal with the transaction of the database.

2. OS Question

What are the different states of the process?

Problem approach

Processes can be in one of three states: running, ready, or waiting. The running state means that the process has all the resources it needs for execution and it has been given permission by the operating system to use the processor.

3. OS Question

What is a Thread?

Problem approach

A thread is a single sequence stream within a process. Because threads have some of the properties of processes, they are sometimes called lightweight processes.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
Software Engineer
2 rounds | 3 problems
Interviewed by HCL Technologies
0 views
2 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by HCL Technologies
1680 views
0 comments
0 upvotes
company logo
System Engineer
3 rounds | 6 problems
Interviewed by HCL Technologies
943 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 6 problems
Interviewed by HCL Technologies
1390 views
0 comments
0 upvotes