HCLTech
10+ Interview Questions and Answers
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. How many coding language do you know
I am proficient in 5 coding languages including Java, Python, C++, HTML, and CSS.
Java
Python
C++
HTML
CSS
Q4. 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
Q5. 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
Q6. 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.
Q7. What are technical skills?
Technical skills are abilities and knowledge needed to perform specific tasks in a technical field.
Technical skills are practical skills that are gained through training, education, and experience.
They are specific to a particular job or industry, such as programming, engineering, or data analysis.
Examples of technical skills include coding, software development, mechanical design, and troubleshooting.
Technical skills are essential for success in technical roles and are often...read more
Q8. 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
Q9. Write code for Fabonacci series?
The Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.
Initialize an array to store the Fibonacci series
Set the first two numbers in the series as 0 and 1
Use a loop to calculate the next numbers by adding the previous two numbers
Continue the loop until reaching the desired length of the series
Q10. 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.
Interview Process at null
Top Graduate Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month