
HCLTech

HCLTech full stack .net developer Interview Questions and Answers
Q1. What is Singleton design patterns and how to implement?
Singleton design pattern ensures a class has only one instance and provides a global point of access to it.
Ensure a class has only one instance by providing a global access point to it
Use a private constructor to restrict instantiation of the class
Provide a static method to access the instance of the class
Q2. What is extension method and write the code.
Extension methods allow adding new methods to existing types without modifying the original type.
Extension methods must be defined in a static class.
The first parameter of an extension method specifies the type being extended and is preceded by the 'this' keyword.
Extension methods can be called as if they were instance methods of the extended type.
Q3. How to send data from child to parent component
Use event emitters or callback functions to send data from child to parent component in Angular
Use @Output decorator in Angular to create custom events in child component and emit data to parent component
Pass a function as a prop from parent to child component, which child can call to send data back to parent
Use services to share data between components in Angular
Q4. What's is css What's is css full form
CSS stands for Cascading Style Sheets. It is a styling language used to control the look and feel of a website.
CSS is used to style the layout and design of web pages.
It allows for the separation of content from presentation.
CSS can be applied inline, internally within an HTML document, or externally in a separate file.
Selectors are used to target specific elements on a webpage for styling.
CSS properties include color, font size, margin, padding, and more.
Q5. What's is html What's is html full form
HTML is a markup language used for creating and structuring web pages.
HTML stands for HyperText Markup Language
It is used to create the structure and content of web pages
HTML elements are surrounded by angle brackets, like <html>
Attributes can be added to HTML elements to provide additional information
Q6. What's is SQL What's is MySQL
SQL is a standard language for managing relational databases. MySQL is an open-source relational database management system.
SQL stands for Structured Query Language
SQL is used to communicate with databases to perform tasks like querying data, updating data, and creating databases
MySQL is a popular open-source relational database management system
MySQL is often used in web development for storing and retrieving data
Q7. Life cycle hooks in angular
Life cycle hooks in Angular are functions that are called at specific points in the component's life cycle.
ngOnChanges: Called when an input property changes
ngOnInit: Called once the component is initialized
ngOnDestroy: Called before the component is destroyed
Interview Process at HCLTech full stack .net developer



Reviews
Interviews
Salaries
Users/Month

