
HCLTech

HCLTech Graduate Engineer Interview Questions and Answers for Freshers
Q1. There is a string input that is email address. You have to print the email id such that before @ few letters should be replaced with star.
Replace few letters before @ in email id with star and print the email id.
Identify the position of @ in the email address
Replace few letters before @ with *
Print the modified email id
Q2. Libraries of python and how to add python with database.
Python has libraries like SQLAlchemy, psycopg2 for database connectivity. Use these libraries to connect Python with databases.
Use SQLAlchemy library for ORM (Object Relational Mapping) to interact with databases.
Use psycopg2 library for direct interaction with PostgreSQL database.
Install the required libraries using pip install
. Establish connection to the database using appropriate credentials.
Execute SQL queries using Python code to interact with the database.
Q3. Introduce and showcase your result.
I successfully designed and implemented a new software system for optimizing energy consumption in buildings.
Researched current energy consumption trends in buildings
Developed algorithms to analyze and optimize energy usage
Implemented software system using Python and SQL
Conducted testing and validation to ensure accuracy
Resulted in 20% reduction in energy consumption in test buildings
Q4. Write a program to print Even numbers
Program to print even numbers
Use a loop to iterate through numbers
Check if each number is even using modulo operator
Print the even numbers
Q5. what is port no. of http
The port number of HTTP is 80.
The default port number for HTTP is 80.
Port 80 is used for unencrypted communication over HTTP.
Port 443 is used for encrypted communication over HTTPS.
Q6. what is cloud computing
Cloud computing is the delivery of computing services over the internet, including storage, servers, databases, networking, software, and more.
Cloud computing allows users to access and use resources on-demand without the need for physical infrastructure.
Examples of cloud computing services include Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform.
Cloud computing offers scalability, flexibility, cost-effectiveness, and increased collaboration and productiv...read more
Q7. Find Fibonacci sequence?
Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones.
The sequence starts with 0 and 1, and each subsequent number is the sum of the previous two numbers.
The first ten numbers in the Fibonacci sequence are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34.
The Fibonacci sequence has many applications in mathematics, science, and nature.
Top HR Questions asked in HCLTech Graduate Engineer for Freshers
Interview Process at HCLTech Graduate Engineer for Freshers

Top Graduate Engineer Interview Questions from Similar Companies



Reviews
Interviews
Salaries
Users/Month

