Join Regular Classroom : Visit ClassroomTech

HCL Overall Interview Questions – codewindow.in

Hot Topics

HCL Solution

Technical Round

What is the use of the finalize() method in Java?

finalize() method in Java is an object class method that the Garbage collector calls to perform cleanup activity before destroying any object.

What is the use of polymorphism in Java?

Polymorphism is briefly described as “one interface, many implementation”. Polymorphism is a characteristic of being able to assign a different meaning or usage to something in different contexts specifically, to allow an entity such as a variable, a function, or an object to have more than one form. There are two types of polymorphism:
  1. Compile time polymorphism
  2. Run time polymorphism

What is input-output (I/O) in C++?

In C++ input-output (I/O) is a library.

What is the difference between a constant variable and global variable?

The value of constant variable can not be altered.
The value of a global variable can be accessed through out the program.

What do you mean by nested class?

A nested class is a class which is declared inside another class. A nested class is a member and has the same rights to access as of any other member.

What are different cloud computing services models?

Cloud computing offer 3 different service models each of which satisfies a unique set of business requirements, these are:
  • Software as a Service (SaaS)
  • Platform as a Service (PaaS)
  • Infrastructure as a Service (IaaS)

What is the meaning of the term Big Data?

Big Data refers to a huge amount of data which is fast or complex so that it is difficult or impossible to process using traditional methods.

What is the major difference between structured English and Pseudo code?

Structured English and Pseudo code are both forms of expressing algorithms in a way that is easier for humans to understand than pure programming code. However, there are some key differences between the two:
  1. Language: Structured English uses a subset of the English language, while Pseudo code can use a mixture of programming concepts and natural language.
  2. Formality: Structured English is a more formal way of expressing algorithms, as it follows a specific syntax and grammar rules. Pseudo code is less formal and can be written in a more flexible way, allowing for a greater level of creativity and expression.
  3. Purpose: Structured English is often used as a documentation tool to describe algorithms in a clear and concise manner. Pseudo code, on the other hand, is often used as a tool for designing and testing algorithms before they are implemented in a programming language.
  4. Level of detail: Structured English is often more detailed than Pseudo code, as it follows a specific syntax and structure. Pseudo code is more high-level and abstract, focusing on the main concepts and ideas behind the algorithm.
In conclusion, both Structured English and Pseudo code have their own strengths and weaknesses, and the choice between them depends on the specific context and purpose of the algorithm being expressed.

What is the use of pointer in C?

Pointer is used as a variable to hold the address of another variable.

What are some differences between C & C++?

C
C++
1.    C was developed by Dennis Ritchie in 1972.
C++ was developed by Bjame Stroustrup in 1979.
2.    C is a Procedural Programming language.
C++ is an Object Oriented programming language.
3.    C is a subset of C++.
C++ is a superset of C.
4.    C contains 32 keywords.
C++ contains 52 keywords.
5.    C does not support inheritance, polymorphism, encapsulation and abstraction.
C++ supports inheritance, polymorphism, encapsulation and abstraction.
6.    Function and operator overloading is not supported in C.
Function and operator overloading is supported in C++.

What are the 4 pillars of Object-oriented programming system (OOPs)?

The 4 pillars of OOPs are:
  • Inheritance: It is a concept of Object Oriented Programming in which a new class is created from the existing one.
  • Polymorphism: Poly means many and morph means form. A concept that enables programmers to assign a different meaning or usage to a variable, function or an object in different context.
 
Polymorphism can be of two types:
  1. Runtime Polymorphism
  2. Compile Time Polymorphism
  • Abstraction: Creating a new data type using encapsulated items that is well suited for an application.
  • Encapsulation: It is called data hiding and encapsulation is the way of packing data and function into a single unit to hide the implementation details of a class from outer world.

What are aggregate functions in SQL?

In SQL aggregate functions perform mathematical operations on multiple values and returns a single value. There are many types of aggregate functions such as max, min, avg, count, sum, etc.

What are constraints in SQL?

Constraints in SQL are a set of rules that specifies what kind of data should be stored in the table so that we do not have redundancy of data in the table.

What do you mean by DBMS?

It is a collection of programs that enables users to create and maintain a database. In other words, it is a general purpose software that provides the users with the process of defining, constructing and manipulating the database for various applications.

How do you achieve multiple inheritances in Java?

In Java multiple inheritance can’t be achieved using classes i.e. a class cannot extend more than one class. But we can achieve the concept of multiple inheritance using interfaces.

What is init in Python?

Init is a method in python which works like constructor of C++ used every time when an object is created.

What is the role of domain name system (DNS)?

DNS is a service which that helps the user to communicate with other hosts using user-friendly names instead of remembering the IP addresses.

What is the difference between C & Java?

C
Java
1.    C was developed by Dennis Ritchie in 1972.
Java was developed by James Gosling in 1995.
2.    C is a Procedural Programming Language.
Java is Object Oriented Programming Language.
3.    C is broken down to functions.
Java is broken down to objects.
4.    C is a platform dependent language.
Java is a platform independent language.
5.    C supports the concept of pointers.
Java does not support the concept of pointers.
6.    C supports go to statement.
Java does not support the go to statement.

What is the difference between compiler, interpreter and assembler?

Compiler
Interpreter
Assembler
1.    A compiler converts high level language to machine language and then executes it.
Interpreter converts source code into the intermediate form and then convert that intermediate into machine language.
Assembler converts source code written in assembly language into machine code and then that machine code is executed by a computer.
2.    Compiler scans the entire program first before translating into machine code.
Interpreter scans and translates the program line by line to equivalent machine code.
Assembler converts assembly language to machine language at once.
3.    Compiler takes entire program as input.
Interpreter takes single instructions as input.
Input to assembler is assembly language code.
4.    Compiler is slow for debugging because errors are displayed after entire program has been checked.
Interpreter is good for last debugging.
It is difficult to debugging.
5.    C, C++, Java, etc.
Python, Perl, VB
GAS, GNU

Why is Java a platform independent language?

Java is platform independent because it’s bytecodes which run on any system irrespective of its underlying operating system.

Is it possible that the “finally” block will not be executed? If yes then list the case.

Yes, it is possible that the “finally” block in a try-catch-finally construct will not be executed. There are several cases where this can happen:
  1. System Exit: If the program terminates abruptly due to a call to System.exit(), the finally block may not be executed.
  2. Power Failure: If the power supply to the system is disrupted during the execution of a try-catch-finally block, the finally block may not be executed.
  3. Uncaught Exception: If an uncaught exception occurs in the try block, the finally block may not be executed if the uncaught exception results in the termination of the thread.
  4. Infinite Loop: If an infinite loop is present in the try block, the finally block may not be executed, as it will never reach the end of the try block.
It’s important to note that the finally block is executed whenever possible, as it provides a way to ensure that important clean-up or resource release code is executed, even if an exception is thrown. However, in the cases mentioned above, the execution of the finally block may not be guaranteed, due to the termination of the program or the current thread.

When can you use super keyword?

Super keyword is used to call the default constructor of the parent/base class and to access methods of the base class.

Nagarro Solved

Automata Fixing

      

We Love to Support you

Go through our study material. Your Job is awaiting.

Recent Posts
Categories