Top 250 Web Development Interview Questions and Answers

Updated 28 Feb 2025

Q1. How to get the count of all text box in a web page?

Ans.

Use Selenium WebDriver to find and count all text boxes on a web page.

  • Use Selenium WebDriver to locate all text boxes on the web page

  • Use findElements method with input tag and type attribute as text to find all text boxes

  • Get the size of the list of elements to get the count of text boxes

View 5 more answers
right arrow
Frequently asked in

Q2. What is nodejs and difference between nodejs and javascript

Ans.

Node.js is a server-side JavaScript runtime environment.

  • Node.js is built on top of the V8 JavaScript engine from Google Chrome.

  • It allows developers to write server-side code in JavaScript.

  • Node.js has a non-blocking I/O model, making it efficient for handling large amounts of data.

  • Node.js has a vast library of modules available through npm (Node Package Manager).

View 1 answer
right arrow
Frequently asked in

Q3. How can you optimize a React App?

Ans.

Optimizing a React app involves reducing bundle size, using lazy loading, and optimizing rendering performance.

  • Reduce bundle size by code splitting and using dynamic imports

  • Use lazy loading to load components only when needed

  • Optimize rendering performance by using shouldComponentUpdate and PureComponent

  • Use React.memo to memoize functional components

  • Avoid unnecessary re-renders by using useMemo and useCallback

  • Use performance profiling tools like React DevTools and Chrome DevTo...read more

Add your answer
right arrow

Q4. How do you call REST APIs in angular?

Ans.

To call REST APIs in Angular, use the HttpClient module and its methods like get(), post(), put(), delete().

  • Import the HttpClientModule in your Angular module

  • Inject the HttpClient service in your component or service

  • Use the HttpClient methods to make HTTP requests to the REST APIs

  • Handle the response using observables and subscribe to them

  • Example: httpClient.get('https://api.example.com/data')

  • Example: httpClient.post('https://api.example.com/data', postData)

View 2 more answers
right arrow
Are these interview questions helpful?
Q5. How do you enable debugging logs in a Spring Boot application?
Ans.

Enable debugging logs in a Spring Boot application

  • Add 'logging.level.root=DEBUG' in application.properties file

  • Use '@Slf4j' annotation in the Java class to enable logging

  • Set logging level for specific packages or classes using 'logging.level.packageName=DEBUG'

Add your answer
right arrow
Frequently asked in

Q6. How do you deploy your Nodejs application?

Ans.

Nodejs application can be deployed using various tools like Heroku, AWS, DigitalOcean, etc.

  • Use a cloud platform like Heroku, AWS, DigitalOcean, etc.

  • Create a production build of the application

  • Configure environment variables

  • Use a process manager like PM2 to manage the application

  • Use a reverse proxy like Nginx to handle incoming requests

  • Set up SSL/TLS certificates for secure communication

Add your answer
right arrow
Frequently asked in
Share interview questions and help millions of jobseekers 🌟
Q7. What are the advantages of using Redux?
Ans.

Redux helps manage application state in a predictable way.

  • Centralized state management

  • Predictable state changes with actions and reducers

  • Time-travel debugging with Redux DevTools

  • Ecosystem of middleware for additional functionality

Add your answer
right arrow

Q8. 1. What is the difference between Absolute & Relative Xpaths?

Ans.

Absolute Xpath is the complete path from the root element to the desired element, while Relative Xpath is the path based on the current element.

  • Absolute Xpath starts with a single slash (/) and is more specific but less flexible.

  • Relative Xpath starts with a double slash (//) and is more flexible but less specific.

  • Absolute Xpath is more prone to breaking if the structure of the page changes.

  • Relative Xpath is easier to maintain and update as it is based on the element's positio...read more

View 1 answer
right arrow

Web Development Jobs

Automation Engineer 2-4 years
Ericsson India Global Services Pvt. Ltd.
4.1
Noida
Application Developer-Experience Front End 5-8 years
IBM India Pvt. Limited
4.0
Bangalore / Bengaluru
Application Developer-Experience Front End 5-8 years
IBM India Pvt. Limited
4.0
New Delhi

Q9. What is Lazy Loading, Suspense. How do they work?

Ans.

Lazy Loading and Suspense are techniques used to improve performance by loading components and data only when needed.

  • Lazy Loading delays the loading of non-critical resources until they are needed, reducing initial load time.

  • Suspense allows components to wait for data to load before rendering, improving user experience.

  • Lazy Loading and Suspense can be used together to optimize performance and user experience.

  • Example: A website with a large image gallery can use Lazy Loading t...read more

Add your answer
right arrow
Frequently asked in

Q10. What are pseudo classes and pseudo elements in CSS?

Ans.

Pseudo classes and pseudo elements are CSS selectors that target specific states or parts of an element.

  • Pseudo classes target specific states of an element, such as :hover, :active, and :focus.

  • Pseudo elements target specific parts of an element, such as ::before and ::after.

  • Pseudo classes and pseudo elements are denoted by a colon (:) or double colon (::) preceding the selector.

  • They can be used to add special effects, such as changing the color of a link when it is hovered ov...read more

Add your answer
right arrow

Q11. What is api? Where we use

Ans.

API stands for Application Programming Interface. It is a set of rules and protocols that allows different software applications to communicate with each other.

  • APIs are used to enable interaction between different software systems or components.

  • They define the methods and data formats that applications can use to request and exchange information.

  • APIs are commonly used in web development to integrate third-party services or access data from external sources.

  • Examples of APIs in...read more

View 3 more answers
right arrow

Q12. which authentication methods used to secure rest api

Ans.

Various authentication methods can be used to secure REST API, including OAuth, JWT, Basic Authentication, and API Keys.

  • OAuth is a popular authentication method that allows users to grant access to third-party applications without sharing their credentials.

  • JWT (JSON Web Tokens) is a stateless authentication mechanism that uses a token to authenticate users.

  • Basic Authentication uses a username and password to authenticate users.

  • API Keys are unique identifiers that are used to ...read more

View 1 answer
right arrow
Frequently asked in

Q13. what is an API? how to deploy it

Ans.

API stands for Application Programming Interface. It is a set of protocols and tools for building software applications.

  • API is a way for different software components to communicate with each other

  • It defines how software components should interact with each other

  • API can be deployed on a server or cloud platform

  • API can be accessed through HTTP requests

  • API documentation is important for developers to understand how to use it

Add your answer
right arrow

Q14. How to import views in django

Ans.

To import views in Django, you need to create a views.py file and import it in urls.py

  • Create a views.py file in your Django app directory

  • Define your views in the views.py file

  • Import your views in urls.py using the 'from . import views' syntax

  • Map your views to URLs in urls.py using the 'path()' function

Add your answer
right arrow
Q15. What is CORS in MVC and how does it work?
Ans.

CORS in MVC is Cross-Origin Resource Sharing, a mechanism that allows restricted resources on a web page to be requested from another domain.

  • CORS is a security feature implemented in web browsers to prevent cross-origin requests by default.

  • It works by adding specific HTTP headers to the server's response, indicating which origins are allowed to access the resources.

  • In MVC, CORS can be configured using the 'EnableCors' attribute on controllers or by configuring it in the 'Web....read more

Add your answer
right arrow
Frequently asked in

Q16. What are cookies in PHP?

Ans.

Cookies in PHP are small text files that are stored on the user's computer to track and store information about the user's activities on a website.

  • Cookies are used to remember user preferences and login information.

  • They can be set, retrieved, and deleted using PHP's setcookie(), $_COOKIE, and setcookie() functions respectively.

  • Cookies can have an expiration date and can be set to be accessible only over a secure connection.

  • They are commonly used for tracking user behavior, pe...read more

Add your answer
right arrow
Frequently asked in

Q17. Difference between put patch and post

Ans.

PUT is used to update an existing resource, PATCH is used to partially update an existing resource, and POST is used to create a new resource.

  • PUT replaces the entire resource with the new one, while PATCH only updates the specified fields

  • PUT and PATCH are idempotent, meaning multiple identical requests will have the same effect as a single request

  • POST is not idempotent and creates a new resource

  • PUT and PATCH require the resource identifier in the URL, while POST does not

Add your answer
right arrow
Q18. What are the phases of each component in the React lifecycle?
Ans.

The phases of each component in the React lifecycle include mounting, updating, and unmounting.

  • Mounting phase: constructor, static getDerivedStateFromProps, render, componentDidMount

  • Updating phase: static getDerivedStateFromProps, shouldComponentUpdate, render, getSnapshotBeforeUpdate, componentDidUpdate

  • Unmounting phase: componentWillUnmount

Add your answer
right arrow
Frequently asked in

Q19. Difference between asp and asp.net

Ans.

ASP is a scripting language while ASP.NET is a web application framework.

  • ASP is interpreted while ASP.NET is compiled

  • ASP uses VBScript or JScript while ASP.NET uses C# or VB.NET

  • ASP is outdated while ASP.NET is the current technology

  • ASP.NET has better performance and security features than ASP

Add your answer
right arrow

Q20. what are fragments in react js

Ans.

Fragments in React.js are used to group multiple elements without adding an extra node to the DOM.

  • Fragments are a way to group multiple elements without using a wrapper element.

  • They help in avoiding unnecessary divs in the DOM.

  • Fragments can improve performance by reducing the number of DOM nodes.

  • They are useful when returning multiple elements from a component's render method.

  • Fragments can be written using the syntax or the shorthand <> syntax.

View 1 answer
right arrow
Frequently asked in

Q21. Clone a Todo Application UI using ReactJS, Sass

Ans.

Clone a Todo Application UI using ReactJS, Sass

  • Create a new ReactJS project using create-react-app

  • Design the UI using Sass and implement it in ReactJS

  • Use state and props to manage the todo list

  • Add functionality to add, delete and mark tasks as complete

  • Implement local storage to persist data

  • Test the application thoroughly

Add your answer
right arrow

Q22. Write xpath and css selectors for some elements present on that element.

Ans.

The candidate is asked to write XPath and CSS selectors for elements on a webpage.

  • XPath is a language used to navigate XML documents and can be used to locate elements on a webpage.

  • CSS selectors are patterns used to select elements on a webpage based on their attributes.

  • XPath selectors start with a forward slash (/) and can traverse the DOM hierarchy.

  • CSS selectors can select elements based on their tag name, class, ID, or other attributes.

  • Examples of XPath selector: /html/bod...read more

View 1 answer
right arrow
Frequently asked in

Q23. how to work laravel

Ans.

Laravel is a PHP web application framework that follows the Model-View-Controller (MVC) architectural pattern.

  • Install Laravel using Composer

  • Create a new Laravel project using the command 'laravel new project-name'

  • Define routes in the 'routes/web.php' file

  • Create controllers in the 'app/Http/Controllers' directory

  • Define database connections in the '.env' file

  • Use Laravel's built-in Blade templating engine for views

  • Use Laravel's Eloquent ORM for database operations

Add your answer
right arrow

Q24. Difference between DOM and Virtual DOM how are they different?

Ans.

DOM is a tree-like structure representing the HTML document, while Virtual DOM is a lightweight copy of the DOM.

  • DOM is the actual representation of the HTML document in the browser's memory.

  • Virtual DOM is a concept where a lightweight copy of the DOM is created and manipulated instead of directly modifying the actual DOM.

  • Changes made to the Virtual DOM are compared with the actual DOM, and only the necessary updates are applied to the real DOM, resulting in better performance...read more

View 1 answer
right arrow

Q25. What do you know about validations that can be put in login feature of Salesforce?

Ans.

Validations in the login feature of Salesforce ensure secure access and prevent unauthorized entry.

  • Validations can be used to enforce password complexity requirements.

  • IP range restrictions can be implemented to allow access only from specific locations.

  • Two-factor authentication can be enforced for an additional layer of security.

  • Login hours can be set to restrict access during specific time periods.

  • Login IP restrictions can be applied to allow access only from trusted IP addr...read more

View 2 more answers
right arrow
Q26. How does the MVC (Model-View-Controller) architecture work in Spring?
Ans.

MVC architecture in Spring separates the application into three main components: Model, View, and Controller.

  • Model represents the data and business logic of the application.

  • View is responsible for displaying the data to the user.

  • Controller acts as an intermediary between Model and View, handling user input and updating the Model accordingly.

  • Spring MVC framework provides support for implementing MVC architecture in web applications.

  • Annotations like @Controller, @RequestMapping...read more

Add your answer
right arrow
Frequently asked in

Q27. Code a React app to change name state on a click of a button on code sandbox.

Ans.

Code a React app to change name state on a click of a button on code sandbox.

  • Create a functional component with a state for name

  • Render a button with an onClick event to update the name state

  • Display the name state in the component

  • Use CodeSandbox to test the app

Add your answer
right arrow
Frequently asked in

Q28. How to solve google recaptcha technique in SEO?

Ans.

Google reCAPTCHA is a security measure to prevent spam and bots. It cannot be solved in SEO.

  • Google reCAPTCHA is designed to prevent automated bots from accessing websites.

  • It is not possible to solve reCAPTCHA in SEO as it is a security measure.

  • SEO analysts can optimize websites to improve user experience and reduce bounce rates.

  • Using ethical SEO techniques can help improve website ranking and visibility.

  • Avoid using black hat SEO techniques that violate Google's guidelines.

View 2 more answers
right arrow
Frequently asked in

Q29. How do you connect a component to Redux store? Which function in Redux is used to connect to store? What are the parameters in connect?

Ans.

To connect a component to Redux store, we use the connect function from the react-redux library.

  • Import the connect function from react-redux.

  • Use the connect function to wrap the component and connect it to the Redux store.

  • The connect function takes two parameters: mapStateToProps and mapDispatchToProps.

  • mapStateToProps is a function that maps the state from the Redux store to the component's props.

  • mapDispatchToProps is an optional function that maps the dispatch function to th...read more

View 1 answer
right arrow
Frequently asked in

Q30. What is lazy loading and write syntax for routing path

Ans.

Lazy loading is a technique to load modules on demand instead of loading everything at once.

  • Lazy loading improves the initial load time of the application.

  • It splits the application into smaller chunks that can be loaded when needed.

  • In Angular, lazy loading is achieved by configuring the routes with loadChildren property.

  • Syntax for routing path with lazy loading: { path: 'lazy', loadChildren: () => import('./lazy/lazy.module').then(m => m.LazyModule) }

View 3 more answers
right arrow
Frequently asked in

Q31. What is status code

Ans.

A status code is a two-digit code used in medical billing to indicate the status of a claim or service.

  • Status codes are used to indicate whether a claim has been accepted, rejected, or is pending.

  • They can also indicate the reason for a denial or rejection.

  • Examples of status codes include 22 (processed, no payment), 29 (denied, unable to locate), and 30 (payment adjusted).

Add your answer
right arrow

Q32. How will you design a sign in option? How can you make it secure?

Ans.

A secure sign-in option can be designed by implementing multi-factor authentication and using encryption techniques.

  • Implement multi-factor authentication such as using a password and a one-time code sent to the user's phone or email.

  • Use encryption techniques such as hashing and salting to protect user passwords.

  • Implement rate limiting to prevent brute force attacks.

  • Use HTTPS protocol to encrypt data in transit.

  • Regularly update and patch the sign-in system to address any secur...read more

Add your answer
right arrow

Q33. What is session? Wht is the uses of session?

Ans.

Session is a way to store information (variables) on the server to be used across multiple pages.

  • Session is used to maintain user-specific data across multiple pages.

  • It is created when a user logs in and destroyed when the user logs out.

  • Session data can be accessed and manipulated using the $_SESSION superglobal variable.

  • Examples of session data include user ID, username, and shopping cart items.

Add your answer
right arrow
Frequently asked in

Q34. what are the implicit objects in Jsp servlets ?

Ans.

Implicit objects in JSP servlets are pre-defined objects that can be accessed without any declaration.

  • Implicit objects are created by the container and are available to the JSP page.

  • Some of the implicit objects are request, response, session, application, out, pageContext, config, exception, etc.

  • These objects can be used to perform various operations like accessing request parameters, setting attributes, forwarding requests, etc.

Add your answer
right arrow

Q35. How to handle security in rest api

Ans.

Security in REST API can be handled by implementing authentication, authorization, encryption, and input validation.

  • Implement authentication using tokens or OAuth2

  • Implement authorization by defining roles and permissions

  • Encrypt sensitive data using SSL/TLS

  • Validate input data to prevent injection attacks

  • Implement rate limiting to prevent DDoS attacks

Add your answer
right arrow

Q36. Difference between jQuery post and Ajax post in MVC?

Ans.

jQuery post is a shorthand method for Ajax post in MVC.

  • jQuery post is a shorthand method for Ajax post in MVC

  • jQuery post uses the $.post() method while Ajax post uses $.ajax() method

  • jQuery post is simpler and easier to use than Ajax post

  • Both methods are used to send data to the server without reloading the page

Add your answer
right arrow
Frequently asked in

Q37. What is sapui5?

Ans.

SAPUI5 is a JavaScript UI library for building web applications with a consistent user experience.

  • Developed by SAP for building web applications

  • Uses HTML5, CSS3, and JavaScript

  • Provides a consistent user experience across devices

  • Includes pre-built UI controls and templates

  • Supports data binding and model-view-controller architecture

Add your answer
right arrow
Frequently asked in

Q38. 1) What is HTML5 and why we using it

Ans.

HTML5 is the latest version of the Hypertext Markup Language used for structuring and presenting content on the web.

  • HTML5 introduces new elements and attributes for better structuring of web content.

  • It supports multimedia elements like <video> and <audio> for seamless integration of media.

  • HTML5 provides better support for mobile devices and responsive web design.

  • It includes features like local storage, geolocation, and canvas for enhanced user experience.

  • HTML5 is widely adopt...read more

View 2 more answers
right arrow

Q39. Implement DOM Manipulation

Ans.

DOM Manipulation is the process of dynamically changing the structure or content of a web page using JavaScript.

  • Use document.getElementById() to select an element by its ID

  • Use element.innerHTML to modify the HTML content of an element

  • Use element.style.property to change the CSS style of an element

  • Use element.addEventListener() to attach event handlers to elements

Add your answer
right arrow

Q40. How many tables generates after installing wordpress?

Ans.

The number of tables generated after installing WordPress varies depending on the plugins and themes installed.

  • The default installation of WordPress generates 12 tables in the database.

  • Additional tables may be created by plugins and themes.

  • Examples of additional tables include wp_users, wp_posts, wp_comments, etc.

View 1 answer
right arrow

Q41. What is session and cookies

Ans.

Sessions and cookies are used to store and retrieve data in web applications.

  • Sessions are used to store data on the server side and are identified by a unique session ID.

  • Cookies are used to store data on the client side and are stored as small text files.

  • Sessions are more secure as the data is stored on the server, while cookies can be manipulated by the client.

  • Sessions are typically used to store sensitive information like user login details, while cookies are used for perso...read more

View 1 answer
right arrow

Q42. Display the list of array by fetching data from api

Ans.

Fetch data from API to display array list of strings

  • Use fetch() method to retrieve data from API

  • Parse the response data using JSON.parse()

  • Loop through the array and create a list element for each item

  • Append the list elements to the DOM

Add your answer
right arrow

Q43. Difference between tempdata and session in MVC

Ans.

TempData stores data for a single request while Session stores data for multiple requests.

  • TempData is used to store data temporarily for a single request.

  • Session is used to store data for multiple requests.

  • TempData is cleared after a single request while Session data persists until the session expires or is cleared.

  • TempData is useful for passing data between actions while Session is useful for maintaining user-specific data across multiple requests.

Add your answer
right arrow

Q44. How do you handle exceptions in Rest APIs

Ans.

Exceptions in Rest APIs are handled using try-catch blocks and appropriate error responses.

  • Use try-catch blocks to catch exceptions that may occur during API execution.

  • Handle different types of exceptions separately to provide specific error responses.

  • Return appropriate HTTP status codes and error messages in the response.

  • Log the exception details for debugging purposes.

  • Consider using a global exception handler to centralize exception handling logic.

View 1 answer
right arrow
Frequently asked in

Q45. How to embed power bi reports into sharepoint

Ans.

Power BI reports can be embedded into SharePoint using the Power BI web part.

  • Add the Power BI web part to the SharePoint page

  • Enter the URL of the Power BI report in the web part properties

  • Configure the web part settings to customize the report display

  • Ensure that the SharePoint site and Power BI report are in the same organization

  • Use the Power BI service to manage report permissions

Add your answer
right arrow

Q46. Difference between UI police and client script.

Ans.

UI policy and client script are both used in ServiceNow for controlling field behavior and data on forms.

  • UI policy is used to dynamically change field properties, visibility, and mandatory status based on certain conditions.

  • Client script is used to add custom logic and behavior to forms, such as field validation, calculations, and UI interactions.

  • UI policy is executed on the server side, while client script is executed on the client side.

  • UI policy is defined using a simple dr...read more

View 1 answer
right arrow
Frequently asked in

Q47. What are features of React JS?

Ans.

React JS is a JavaScript library for building user interfaces.

  • Virtual DOM for efficient updates

  • Component-based architecture for reusability

  • JSX syntax for easy rendering

  • Unidirectional data flow for predictable state management

  • Server-side rendering for SEO optimization

Add your answer
right arrow

Q48. what is angular js

Ans.

AngularJS is a JavaScript framework for building dynamic web applications.

  • AngularJS is a client-side MVC framework.

  • It allows developers to build single-page applications.

  • It extends HTML with new attributes and tags.

  • AngularJS uses two-way data binding to automatically synchronize data between the model and the view.

  • It provides dependency injection and modularization features.

  • Some popular examples of websites built with AngularJS are Gmail, YouTube, and Netflix.

View 1 answer
right arrow
Frequently asked in

Q49. What are the different layers of Springboot application? What are the webservers that comes with Springboot? What is the default webserver? How to change the default webserver? What are the different ways to co...

read more
Ans.

The different layers of Springboot application, webservers that come with Springboot, default webserver, changing default webserver, and configuring port on spring-boot.

  • The different layers of Springboot application are presentation layer, service layer, business layer, and data access layer.

  • The webservers that come with Springboot are Tomcat, Jetty, and Undertow.

  • The default webserver is Tomcat.

  • To change the default webserver, exclude the default starter and add the desired s...read more

Add your answer
right arrow
Frequently asked in

Q50. What are the use of web services?

Ans.

Web services are used to exchange data between different applications over the internet.

  • Allows communication between different platforms and programming languages

  • Enables sharing of data and functionality

  • Can be used for integration with third-party applications

  • Examples include REST, SOAP, and JSON-RPC

Add your answer
right arrow
Frequently asked in
Q51. What is the difference between JSON and XML?
Ans.

JSON is lightweight, easy to read, and commonly used for web APIs. XML is more verbose, structured, and used for data interchange.

  • JSON is lightweight and easy to read compared to XML

  • XML is more verbose and structured than JSON

  • JSON is commonly used for web APIs, while XML is used for data interchange

  • JSON supports only text and number data types, while XML supports various data types including text, numbers, dates, and arrays

Add your answer
right arrow

Q52. what is DOM ? virtual

Ans.

DOM (Document Object Model) is a programming interface for web documents that represents the structure of a document as a tree of objects.

  • DOM stands for Document Object Model.

  • It is a programming interface for web documents.

  • DOM represents the structure of a document as a tree of objects.

  • It allows programs and scripts to dynamically access and update the content, structure, and style of a document.

  • Example: Using DOM, JavaScript can manipulate the elements of an HTML document.

Add your answer
right arrow
Frequently asked in

Q53. Why we used bs 4. Engine

Ans.

BS 4 engines are used for their improved fuel efficiency and reduced emissions.

  • BS 4 engines comply with the latest emission norms set by the government.

  • They have improved fuel efficiency due to advanced technology.

  • BS 4 engines are more environment-friendly compared to older engines.

  • They have better performance and durability.

  • Examples of vehicles using BS 4 engines are Maruti Suzuki Swift, Hyundai Creta, etc.

Add your answer
right arrow

Q54. What is basic web development

Ans.

Basic web development involves creating and maintaining websites using HTML, CSS, and JavaScript.

  • Basic web development includes creating web pages using HTML, CSS, and JavaScript.

  • It involves structuring the content of a website using HTML.

  • CSS is used to style and format the web pages.

  • JavaScript is used to add interactivity and dynamic features to the website.

  • Web development also includes knowledge of web servers, databases, and frameworks.

  • Examples of basic web development tas...read more

View 1 answer
right arrow
Frequently asked in

Q55. What is mern stack?

Ans.

MERN stack is a full stack development framework that consists of MongoDB, Express.js, React, and Node.js.

  • MERN stands for MongoDB, Express.js, React, and Node.js.

  • MongoDB is a NoSQL database used for storing data.

  • Express.js is a web application framework for Node.js.

  • React is a JavaScript library for building user interfaces.

  • Node.js is a JavaScript runtime environment for server-side development.

Add your answer
right arrow
Q56. What are the main return types supported in Web API?
Ans.

Main return types in Web API include HttpResponseMessage, IHttpActionResult, and void.

  • HttpResponseMessage: Represents an HTTP response message.

  • IHttpActionResult: Represents an HTTP response that can be returned from a controller action.

  • void: Indicates that the action does not return a value.

Add your answer
right arrow
Frequently asked in

Q57. How to add new property in google analytics?

Ans.

To add a new property in Google Analytics, follow these steps:

  • Log in to your Google Analytics account

  • Click on the Admin button in the bottom left corner

  • Select the account and property where you want to add the new property

  • Click on the Create Property button

  • Follow the prompts to set up the new property

Add your answer
right arrow

Q58. What are ajax calls?

Ans.

Ajax calls are asynchronous HTTP requests made by JavaScript to a server without reloading the page.

  • Ajax stands for Asynchronous JavaScript and XML

  • Used to update parts of a web page without reloading the entire page

  • Can be used to fetch data from a server and display it on a web page

  • Examples: Google Maps, Facebook News Feed

Add your answer
right arrow

Q59. What is asp. Net MVC?

Ans.

ASP.NET MVC is a web application framework that implements the model-view-controller pattern.

  • It separates an application into three main components: Model, View, and Controller.

  • It provides better control over HTML, CSS, and JavaScript.

  • It supports test-driven development and dependency injection.

  • It is built on top of ASP.NET and uses the .NET Framework.

  • Examples of websites built with ASP.NET MVC include Stack Overflow and GitHub.

Add your answer
right arrow

Q60. How to create custom components in AEM?

Ans.

Custom components in AEM can be created using the CRXDE Lite or Eclipse IDE.

  • Create a new folder under /apps//components

  • Create a new .content.xml file with the component's metadata

  • Create a .html file with the component's markup

  • Create a .clientlib file with the component's client-side dependencies

  • Register the component in the OSGi bundle's pom.xml file

Add your answer
right arrow
Frequently asked in

Q61. Explain about Request Delegate

Ans.

Request Delegate is a middleware component in ASP.NET Core pipeline.

  • Request Delegate is responsible for handling HTTP requests and generating HTTP responses.

  • It is a function that takes an HttpContext object as input and returns a Task.

  • It can be used to modify the request or response, or to pass the request to the next middleware component in the pipeline.

  • Example: app.Use(async (context, next) => { await next(); });

Add your answer
right arrow
Frequently asked in

Q62. Difference between search engine and directory

Ans.

A search engine is a tool that allows users to search for information on the internet, while a directory is a curated list of websites organized by categories.

  • Search engines use algorithms to crawl and index web pages, providing a comprehensive search experience.

  • Directories are human-curated and organized by categories, providing a more focused and selective approach.

  • Search engines provide results based on relevance and popularity, while directories provide a structured list ...read more

View 1 answer
right arrow

Q63. What is the use of deep entity in Odata

Ans.

Deep entities in OData are used to represent complex data structures with nested properties.

  • Deep entities allow for modeling complex relationships between entities in OData services

  • They are used to represent hierarchical data structures with nested properties

  • Deep entities can be used to model parent-child relationships, such as a customer with multiple orders

Add your answer
right arrow
Frequently asked in

Q64. Explain Different ways to send data view to controller?

Ans.

Different ways to send data view to controller

  • Using form submission

  • Using AJAX requests

  • Using URL parameters

  • Using cookies or local storage

  • Using web sockets

View 1 answer
right arrow
Frequently asked in

Q65. How to connect multiple database to Drupal

Ans.

Multiple databases can be connected to Drupal using the Database API and configuring settings.php file.

  • Use the Database API to connect to additional databases

  • Add the database connection details to settings.php file

  • Use the db_set_active() function to switch between databases

  • Use the db_query() function to execute queries on the selected database

Add your answer
right arrow
Frequently asked in

Q66. why react hooks are use full?

Ans.

React hooks simplify state management and lifecycle methods in functional components.

  • Hooks allow functional components to have state and lifecycle methods

  • They reduce the need for class components and HOCs

  • Hooks make code more readable and easier to test

  • Examples of hooks include useState, useEffect, and useContext

Add your answer
right arrow
Frequently asked in

Q67. How can you make a slow K2 page load faster?

Ans.

Optimize images, reduce HTTP requests, minify CSS and JS, use caching, and optimize database queries.

  • Optimize images by compressing them and reducing their size.

  • Reduce HTTP requests by combining multiple files into one.

  • Minify CSS and JS by removing unnecessary characters.

  • Use caching to store frequently accessed data.

  • Optimize database queries by indexing tables and avoiding unnecessary joins.

Add your answer
right arrow

Q68. How life cycle of asp.net works?

Ans.

ASP.NET follows a series of stages in its life cycle to process a request and generate a response.

  • ASP.NET starts with the initialization stage where it creates an instance of the HttpApplication class.

  • Next, it goes through the pipeline stages such as authentication, authorization, and caching.

  • After that, it processes the request and generates a response.

  • Finally, it goes through the cleanup stage where it releases resources and objects.

  • ASP.NET also provides events for develope...read more

Add your answer
right arrow

Q69. Which language is best for backend web development?

Ans.

There is no one-size-fits-all answer to this question as it depends on the specific project requirements.

  • Python is a popular choice for backend development due to its simplicity and versatility.

  • Java is another popular option for enterprise-level applications.

  • Node.js is a popular choice for real-time applications and scalable systems.

  • Ruby on Rails is a popular choice for rapid prototyping and web development.

  • PHP is a widely used language for web development, particularly for W...read more

Add your answer
right arrow

Q70. Develop a search engine UI using framework in 30min

Ans.

Developed a search engine UI using React framework in 30min

  • Used React's useState and useEffect hooks to manage state and fetch data

  • Implemented a search bar component with onChange event handler

  • Displayed search results in a list using map function

  • Added pagination for better user experience

Add your answer
right arrow

Q71. Where do you declare connection string when using middleware

Ans.

Declaring connection string in middleware

  • Connection string can be declared in appsettings.json file

  • It can also be declared in environment variables

  • Connection string can be injected using dependency injection

  • Middleware can access connection string from IConfiguration object

Add your answer
right arrow

Q72. What is Google mapping

Ans.

Google Maps is a web mapping service developed by Google. It offers satellite imagery, street maps, 360° panoramic views of streets, real-time traffic conditions, and route planning.

  • Provides detailed maps and satellite imagery of locations worldwide

  • Offers real-time traffic updates and route planning

  • Includes 360° panoramic views of streets

  • Can be used for navigation and exploring new places

  • Has features like Street View, indoor maps, and local business information

View 2 more answers
right arrow
Frequently asked in

Q73. What is OAuth and how does it work?

Ans.

OAuth is an open standard for authorization that allows third-party applications to access user data without sharing passwords.

  • OAuth stands for Open Authorization

  • It allows users to grant access to their resources stored on one site to another site without sharing their credentials

  • OAuth uses access tokens to authenticate and authorize requests

  • It is widely used by social media platforms like Facebook, Twitter, and LinkedIn

  • OAuth 2.0 is the latest version of OAuth

Add your answer
right arrow

Q74. what is jwt

Ans.

JWT stands for JSON Web Token, a compact and secure way of transmitting information between parties as a JSON object.

  • JWT is used for authentication and authorization purposes.

  • It consists of three parts: header, payload, and signature.

  • The header contains the algorithm used to sign the token.

  • The payload contains the claims or information being transmitted.

  • The signature is used to verify the authenticity of the token.

  • JWTs can be used in various scenarios, such as single sign-on ...read more

Add your answer
right arrow
Frequently asked in

Q75. What is MVC, and how magento uses MVC

Ans.

MVC stands for Model-View-Controller. Magento uses MVC architecture to separate business logic, presentation, and user input.

  • Model represents the data and business logic

  • View represents the presentation layer

  • Controller handles user input and updates the model and view accordingly

  • Magento uses the layout XML files to define the view layer

  • Magento's controllers are responsible for handling requests and responses

  • Magento's models are responsible for interacting with the database and...read more

View 1 answer
right arrow

Q76. What is Client side and server side Validation ?

Ans.

Client side validation is done on the user's browser while server side validation is done on the server.

  • Client side validation is done using JavaScript or HTML5.

  • Server side validation is done using server-side scripting languages like PHP, Python, or Ruby.

  • Client side validation is faster but less secure than server side validation.

  • Server side validation is more secure but slower than client side validation.

  • Examples of client side validation include checking for required field...read more

View 1 answer
right arrow

Q77. What fullstack developer

Ans.

A fullstack developer is a software engineer who is proficient in both frontend and backend development.

  • A fullstack developer has knowledge and skills in both frontend technologies (HTML, CSS, JavaScript) and backend technologies (server-side languages, databases).

  • They are capable of working on all aspects of a software project, from designing and implementing user interfaces to developing server-side logic and managing databases.

  • Fullstack developers are versatile and can han...read more

View 5 more answers
right arrow
Frequently asked in

Q78. How angular works , architecture

Ans.

Angular is a JavaScript framework for building web applications with a modular architecture.

  • Angular uses a component-based architecture to build reusable UI components

  • It uses a declarative approach to define UI elements and their behavior

  • Angular provides a powerful set of tools for data binding, dependency injection, and routing

  • It follows the MVC (Model-View-Controller) pattern to separate concerns and improve maintainability

  • Angular also supports server-side rendering for bet...read more

Add your answer
right arrow
Frequently asked in

Q79. How do you pass query params through api

Ans.

Query params can be passed through API by appending them to the URL after a '?' symbol.

  • Add '?' symbol after the endpoint URL

  • Add the parameter name followed by '=' and the value

  • Separate multiple parameters with '&' symbol

  • Example: https://api.example.com/users?id=123&name=John

Add your answer
right arrow

Q80. What is the CORS issue? Where does it occur?

Ans.

CORS (Cross-Origin Resource Sharing) is a security feature that restricts web pages from making requests to a different domain.

  • CORS issue occurs when a web page tries to access resources from a different domain

  • It is a security feature implemented by web browsers to prevent cross-site scripting attacks

  • CORS issue can be resolved by configuring the server to allow cross-origin requests or by using JSONP

  • It can occur in AJAX requests, web fonts, images, and videos

Add your answer
right arrow

Q81. How to call server using servlet

Ans.

To call server using servlet, we need to create a URL connection and send HTTP request.

  • Create a URL object with the server URL

  • Open a connection to the server using the URL object

  • Set the request method (GET, POST, etc.) and any request headers

  • Get the output stream from the connection and write any request data

  • Read the response from the server using the input stream from the connection

  • Close the connection and process the response data

Add your answer
right arrow

Q82. What is server side validation?

Ans.

Server side validation is the process of validating user input on the server before processing it.

  • It ensures that the data received from the client is valid and secure.

  • It prevents malicious attacks and data breaches.

  • It reduces the load on the client-side and improves performance.

  • Examples include checking for required fields, data type, length, and format.

  • It is an essential part of web application security.

Add your answer
right arrow
Frequently asked in

Q83. What EventLoop in Node.js

Ans.

EventLoop is a mechanism in Node.js that allows non-blocking I/O operations to be performed asynchronously.

  • EventLoop is responsible for handling all I/O operations in Node.js

  • It continuously checks the event queue for any new events to be processed

  • It executes callbacks when an event is triggered

  • It allows Node.js to handle multiple requests simultaneously

  • It prevents blocking of the main thread

Add your answer
right arrow

Q84. Difference between the URL and Html mode

Ans.

URL mode is used to test the performance of a specific URL, while HTML mode is used to test the performance of the entire HTML page.

  • URL mode focuses on a single URL, measuring response time and other metrics specific to that URL.

  • HTML mode simulates user behavior on the entire HTML page, including loading all resources like images, scripts, and stylesheets.

  • URL mode is useful for pinpointing performance issues with specific URLs, while HTML mode provides a more comprehensive vi...read more

Add your answer
right arrow
Frequently asked in

Q85. Difference between Bs4 and Bs6

Ans.

BS4 and BS6 are emission norms set by the government to regulate the amount of pollutants emitted by vehicles.

  • BS4 stands for Bharat Stage 4 and BS6 stands for Bharat Stage 6.

  • BS6 is the latest emission standard set by the government, which is more stringent than BS4.

  • BS6 compliant vehicles emit lower levels of pollutants such as nitrogen oxides, carbon monoxide, hydrocarbons, and particulate matter compared to BS4 vehicles.

  • BS6 compliant vehicles also have advanced technologies ...read more

Add your answer
right arrow

Q86. Where would you use flask and where would you use django

Ans.

Flask is lightweight and good for small projects, while Django is more robust and suitable for larger projects.

  • Flask is good for small projects with simple requirements

  • Django is more suitable for larger projects with complex requirements

  • Flask is lightweight and flexible, allowing for more customization

  • Django has a lot of built-in features and is more opinionated

  • Flask is better for RESTful APIs and microservices

  • Django is better for full-stack web applications

  • Examples of Flask ...read more

Add your answer
right arrow

Q87. explain model view controller model in ROR

Ans.

MVC is a design pattern that separates an application into three interconnected components: Model, View, and Controller.

  • Model represents the data and business logic of the application

  • View is responsible for rendering the user interface

  • Controller handles user input and updates the model and view accordingly

  • In ROR, the model is typically represented by a database table, the view is an HTML template, and the controller is a Ruby class

  • MVC helps to keep code organized, maintainabl...read more

Add your answer
right arrow

Q88. what is front controller from context in spring mvc?

Ans.

Front controller is a design pattern used in Spring MVC to handle incoming requests and route them to appropriate handlers.

  • Front controller acts as a central point of control for handling requests in Spring MVC.

  • It receives all incoming requests and delegates them to appropriate handlers called controllers.

  • Front controller provides a consistent way to handle requests and perform common tasks like authentication, logging, etc.

  • In Spring MVC, the DispatcherServlet acts as the fro...read more

Add your answer
right arrow

Q89. what is Middleware in ..net core

Ans.

Middleware is software that sits between an application and the operating system, providing services to the application beyond those provided by the operating system.

  • Middleware is a pipeline of components that can handle requests and responses.

  • It can be used for authentication, logging, caching, and more.

  • Middleware can be added to the pipeline using the Use() method in the Startup class.

  • Examples of middleware in .NET Core include the Authentication middleware, the CORS middle...read more

Add your answer
right arrow
Frequently asked in,

Q90. WHAT IS LAZY LOADING ? HOW CAN WE CALL HTTP REQUESTS FROM ONE COMPONENT TO ANOTHER COMPONENT ?

Ans.

Lazy loading is a technique to defer loading of non-critical resources until they are needed.

  • Lazy loading improves page load time and performance.

  • It is commonly used for images, videos, and other media files.

  • To call HTTP requests from one component to another, we can use Angular's HttpClient service.

  • We can inject the HttpClient service in the constructor of the component and use its methods to make HTTP requests.

  • We can also use Angular's @Input and @Output decorators to pass ...read more

Add your answer
right arrow

Q91. How do you hide API URLs? How to manage different URLs for different staging environment?

Ans.

API URLs can be hidden by using environment variables and managing different URLs for different staging environments.

  • Use environment variables to store API URLs

  • Create separate environment files for different staging environments

  • Set the appropriate API URL in the environment file for each staging environment

  • Access the API URL from the environment variable in the code

View 1 answer
right arrow

Q92. How does IIS work internally

Ans.

IIS is a web server that handles HTTP requests and responses.

  • IIS stands for Internet Information Services.

  • It is a component of Windows Server.

  • It listens for incoming HTTP requests on a specified port.

  • It processes the request and sends back a response.

  • It can host multiple websites on a single server.

  • It supports various protocols like HTTP, HTTPS, FTP, SMTP, etc.

  • It can be configured using the IIS Manager tool.

  • It can also be managed programmatically using the IIS API.

Add your answer
right arrow
Frequently asked in

Q93. what is express js and why it is used in web apps and what is body parser

Ans.

Express.js is a popular Node.js web framework used for building web applications. Body-parser is a middleware used to parse incoming request bodies.

  • Express.js is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.

  • It provides a way to handle HTTP requests and responses, routing, middleware, and more.

  • Body-parser is a middleware used to parse incoming request bodies in a middleware before your handlers,...read more

Add your answer
right arrow
Frequently asked in

Q94. Perform optimisation in web

Ans.

Optimisation in web involves improving website performance for better user experience.

  • Minimize HTTP requests by combining files, using CSS sprites, and reducing scripts

  • Enable browser caching to reduce server load and load times

  • Optimize images by resizing and compressing them

  • Use a content delivery network (CDN) to distribute content geographically for faster loading times

  • Minimize redirects and eliminate unnecessary plugins or scripts

Add your answer
right arrow

Q95. How to deploy or host to your website?

Ans.

To deploy a website, you need to choose a hosting provider, upload your files, and configure your domain name.

  • Choose a hosting provider that suits your needs and budget

  • Upload your website files to the hosting provider's server

  • Configure your domain name to point to the hosting provider's server

  • Test your website to ensure it is working properly

Add your answer
right arrow

Q96. What is JSP and servlet and explain it

Ans.

JSP and Servlet are Java technologies used for creating dynamic web pages and handling HTTP requests and responses.

  • JSP stands for JavaServer Pages and is used for creating dynamic web pages that can interact with server-side data and logic.

  • Servlet is a Java program that runs on a web server and handles HTTP requests and responses.

  • JSP and Servlet work together to create dynamic web applications that can generate HTML, process user input, and interact with databases.

  • JSP pages a...read more

Add your answer
right arrow

Q97. How to implement Spring security with JWT token?

Ans.

Implementing Spring security with JWT token involves configuring security filters and authentication providers.

  • Add dependencies for Spring Security and JWT

  • Configure security filters to validate JWT tokens

  • Implement authentication provider to authenticate users

  • Generate and sign JWT tokens for successful authentication

  • Example: https://www.baeldung.com/spring-security-jwt

Add your answer
right arrow
Frequently asked in
Q98. What is the difference between REST API and RESTful API?
Ans.

REST API is an architectural style, while RESTful API is an API that follows the principles of REST.

  • REST API is an architectural style that defines a set of constraints for creating web services.

  • RESTful API is an API that follows the principles of REST, such as using HTTP methods and URIs to perform actions.

  • REST API focuses on system design, while RESTful API focuses on the implementation of the API.

  • An example of a REST API is the Twitter API, which follows the REST architect...read more

Add your answer
right arrow
Frequently asked in

Q99. What is a module in Angular?

Ans.

A module is a container for a group of related components, directives, pipes, and services.

  • Modules help organize an application into cohesive blocks of functionality.

  • They can be imported and exported to share functionality between modules.

  • Angular has a built-in module called the AppModule, which is the root module of an Angular application.

  • Modules can be lazy loaded to improve performance.

  • Modules can have their own providers to provide services specific to that module.

Add your answer
right arrow

Q100. What 300 &amp; 301 status codes represents?

Ans.

300 represents multiple choices and 301 represents moved permanently.

  • 300 status code represents multiple choices, indicating that the requested resource has multiple representations available.

  • 301 status code represents moved permanently, indicating that the requested resource has been permanently moved to a new URL.

  • Both status codes are used in HTTP responses to indicate the status of a requested resource.

  • Examples of 300 status code include a webpage with multiple language op...read more

Add your answer
right arrow
1
2
3
Next
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 10.4k Interviews
3.8
 • 8.1k Interviews
3.6
 • 7.5k Interviews
3.7
 • 5.6k Interviews
3.8
 • 5.6k Interviews
3.7
 • 4.7k Interviews
3.5
 • 3.8k Interviews
3.8
 • 2.9k Interviews
3.8
 • 2.8k Interviews
3.9
 • 261 Interviews
View all
Recently Viewed
JOBS
Browse jobs
Discover jobs you love
DESIGNATION
SALARIES
Cendyn
SALARIES
Vedantu
JOBS
Browse jobs
Discover jobs you love
JOBS
Browse jobs
Discover jobs you love
DESIGNATION
SALARIES
UWorld
DESIGNATION
DESIGNATION
Web Development Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter