Find Interview Questions for Top Companies
JustDial Interview Questions and Answers
Ques:- What is asp.net?
Right Answer:
ASP.NET is a web framework developed by Microsoft for building dynamic web applications and services. It allows developers to create web pages using languages like C# and VB.NET, and it provides tools and libraries for handling web-related tasks such as user authentication, database access, and session management.
Ques:- What difference between Web Design & Web Development ?
Right Answer:
Web design focuses on the visual aesthetics and user experience of a website, including layout, colors, and typography. Web development involves the technical aspects of building and maintaining the website, including coding, server-side scripting, and database management.
Ques:- How does Z index function?
Right Answer:
The `z-index` property in CSS controls the stacking order of elements that overlap. Elements with a higher `z-index` value are displayed in front of those with a lower value. It only works on positioned elements (those with a position value of `relative`, `absolute`, `fixed`, or `sticky`).
Ques:- WHAT IS HADOOP?
Right Answer:
Hadoop is an open-source framework that allows for the distributed processing of large data sets across clusters of computers using simple programming models. It is designed to scale up from a single server to thousands of machines, each offering local computation and storage.
Ques:- How do you send a message to the browser in JavaScript?
Comments
Admin May 17, 2020

Document.write("Message") It's the correct format

Admin May 17, 2020

Either use (document.write) or use web technology like php
and pass the value through url and get on that page.

Ques:- How does ‘setState’ function work?
Right Answer:
The `setState` function in React is used to update the component's state. It takes an object or a function as an argument and schedules a re-render of the component with the new state. When called, it merges the new state with the current state and triggers a re-render of the component to reflect the changes.
Comments
Admin Feb 3, 2020

‘setState’ function is used to update the state of a react component. If the UI of the component is dependent on the value we are updating, it will re-render the UI. For example :

setState({message : 'Hello'})

Ques:- Mention five benefits of ReactJS :
Right Answer:
1. Component-Based Architecture: React allows developers to build reusable UI components, promoting code reusability and maintainability.

2. Virtual DOM: React uses a virtual DOM to optimize rendering, improving performance by minimizing direct manipulation of the actual DOM.

3. Unidirectional Data Flow: React enforces a one-way data flow, making it easier to understand and debug the application state.

4. Strong Community Support: React has a large community and ecosystem, providing a wealth of resources, libraries, and tools for developers.

5. SEO Friendly: React can be rendered on the server side, improving search engine optimization and making it easier for search engines to index the content.
Comments
Admin Feb 3, 2020

<strong><em> Easy learning curve :</em></strong>

React is easy to learn. Anyone with a good understanding of HTML, CSS and Javascript can learn to react easily.

<strong><em> Readability :</em></strong>

React uses JSX that improves the readability of the code.

<strong><em> Performance :</em></strong>

React uses virtual DOM to update the UI that doesn’t require to update the whole webpage for every single change. That makes the application faster.

<strong><em> Reusable components :</em></strong>

We can use one component in many places without rewriting the code.

<strong><em> SSR :</em></strong>

React supports server-side rendering that improves the page load time.

Ques:- What is the use of ‘key’ in react list?
Right Answer:
The 'key' in a React list is a unique identifier for each element in the list, which helps React efficiently update and re-render components by tracking changes, additions, or removals.
Comments
Admin Feb 3, 2020

Keys are used to provide each list element with a stable identity. The keys should be unique. The best practice is to use ‘id’ of the data as the key.

Ques:- What is a React component?
Right Answer:
A React component is a reusable piece of code that defines how a part of a user interface should appear and behave. It can be a class or a function that returns a React element, typically using JSX syntax.
Comments
Admin Feb 3, 2020

React components are the basic building block of a react application. These are like functions that take inputs and returns one react element based on the inputs. Using the components, we can split an application into reusable, independent pieces.

Ques:- What will happen if you use set State() in constructor?
Right Answer:
Using `setState()` in the constructor will not work as expected because the component's state is not yet initialized. Instead, you should initialize the state directly in the constructor using `this.state = {}`.
Comments
Admin Feb 3, 2020

When you use set State(), then apart from assigning to the object state React also re renders the component and all its children. We would get error like this: Can only update a mounted or mounting component. Hence we need to use this. stateto initialize variables inside constructor.

Ques:- U have an array of +ve integers arranged in the descending order . Write a functionb thast take an integer & an integer array as an integer and returns the position of the given integer in the array , if the integer is not present in the array it should return -1 . the serching technique that u use should be very efficient both in terms of time & memory.
Asked In :- JustDial,
Ques:- Consider an array 'A' of n elements. Let A[0] to A[k-1] ( The first K members of the array A ) form the first window of the array where 0<k<n. Now you have to find the maximum number of the window and display it. After displaying it the wind...
Asked In :- JustDial, vertex solutions,
Ques:- What improvement you want to make in your unit.
Asked In :- JustDial,
Right Answer:
I want to improve collaboration and communication within the team to enhance project efficiency and ensure everyone is aligned on goals and expectations.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users