i
HCLTech
Filter interviews by
I applied via Naukri.com and was interviewed in Oct 2021. There was 1 interview round.
Inheritance is a mechanism in object-oriented programming where a new class is created from an existing class.
Allows for code reuse and avoids redundancy
The new class (subclass) inherits properties and methods from the existing class (superclass)
Subclass can add new properties and methods or override existing ones
Example: A Car class can inherit properties and methods from a Vehicle class
Lambda functions are anonymous functions that can be defined without a name.
Lambda functions are defined using the lambda keyword.
They can take any number of arguments, but can only have one expression.
They are often used as arguments for higher-order functions.
Example: lambda x: x**2 defines a lambda function that squares its input.
Numpy is a Python library for numerical computing with support for large, multi-dimensional arrays and matrices.
Numpy provides efficient mathematical operations on arrays.
It is widely used in scientific computing, data analysis, and machine learning.
Numpy arrays are homogeneous and can be indexed and sliced like lists.
Broadcasting allows for element-wise operations on arrays of different shapes.
Numpy also includes line...
Pandas is a Python library used for data manipulation and analysis.
Pandas provides data structures for efficiently storing and manipulating large datasets.
It offers tools for data cleaning, merging, reshaping, and visualization.
Pandas can handle various data formats such as CSV, Excel, SQL databases, and JSON.
It is widely used in data science, finance, economics, and other fields.
Example: df = pd.read_csv('data.csv') c
There are 7 types of operators in Python.
Arithmetic operators (+, -, *, /, %, //, **)
Comparison operators (==, !=, >, <, >=, <=)
Assignment operators (=, +=, -=, *=, /=, %=, //=, **=)
Logical operators (and, or, not)
Bitwise operators (&, |, ^, ~, <<, >>)
Identity operators (is, is not)
Membership operators (in, not in)
What people are saying about HCLTech
Python is a high-level programming language known for its simplicity, readability, and versatility. It is widely used for web development, data analysis, artificial intelligence, and more.
Python is easy to learn and read, making it a great choice for beginners and experienced developers alike.
Python has a large standard library and many third-party packages, making it suitable for a wide range of applications.
Python is...
I applied via Company Website and was interviewed before Feb 2020. There was 1 interview round.
I applied via Naukri.com and was interviewed before Oct 2020. There were 3 interview rounds.
I applied via LinkedIn and was interviewed before Jan 2021. There was 1 interview round.
I applied via Recruitment Consultant and was interviewed before Nov 2020. There were 3 interview rounds.
I applied via Campus Placement and was interviewed before Aug 2020. There were 4 interview rounds.
Factorial can be calculated using a loop by multiplying numbers from 1 to n.
Initialize a variable to 1
Use a loop to multiply the variable with numbers from 1 to n
Return the variable
based on 1 review
Rating in categories
Software Engineer
23.5k
salaries
| ₹1.9 L/yr - ₹8 L/yr |
Technical Lead
21.6k
salaries
| ₹7 L/yr - ₹28 L/yr |
Senior Software Engineer
16.1k
salaries
| ₹4.5 L/yr - ₹17 L/yr |
Lead Engineer
15.8k
salaries
| ₹4.1 L/yr - ₹14 L/yr |
Analyst
14.7k
salaries
| ₹0.8 L/yr - ₹6.5 L/yr |
TCS
Wipro
Accenture
Cognizant