Premium Employer

AmbitionBox

4.9
based on 36 Reviews
Filter interviews by

10+ Afras Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. What is redux ? How can we joint react with redux

Ans.

Redux is a predictable state container for JavaScript apps.

  • Redux helps manage the state of an application in a predictable way

  • It provides a central store for all the state of the application

  • React components can access the state from the store using the connect() function

  • Actions are dispatched to the store to update the state

  • Reducers are pure functions that update the state based on the dispatched actions

Add your answer

Q2. How can we use component will unmount method in functional components by using hooks

Ans.

Unmounting logic can be implemented using useEffect hook with a return statement.

  • Use useEffect hook with a return statement to implement unmounting logic

  • Return a function from useEffect hook to execute cleanup logic

  • Cleanup logic can include clearing intervals, removing event listeners, etc.

Add your answer

Q3. What is the DOCTYPE declaration in HTML, and why is it important

Ans.

DOCTYPE declaration in HTML specifies the version of HTML being used in the document.

  • DOCTYPE declaration is placed at the very beginning of an HTML document before the <html> tag.

  • It informs the web browser about the version of HTML being used, which helps in rendering the page correctly.

  • It also helps in triggering the browser's standards mode, ensuring consistent display across different browsers.

  • Example: <!DOCTYPE html> specifies the document is using HTML5.

View 1 answer

Q4. How can you include external CSS and JavaScript files in an HTML document.

Ans.

External CSS and JavaScript files can be included in an HTML document using the <link> and <script> tags.

  • Use the <link> tag with the 'rel' attribute set to 'stylesheet' to include external CSS files.

  • Use the <script> tag with the 'src' attribute to include external JavaScript files.

  • Make sure to specify the correct file path in the 'href' attribute for CSS files and 'src' attribute for JavaScript files.

View 1 answer
Discover Afras interview dos and don'ts from real experiences

Q5. What is HTML, and what is its role in web development?

Ans.

HTML stands for Hypertext Markup Language and is the standard markup language for creating web pages.

  • HTML is used to structure content on the web by using a series of elements and tags.

  • It provides the basic building blocks for creating websites, such as headings, paragraphs, images, links, and forms.

  • HTML works in conjunction with CSS (Cascading Style Sheets) and JavaScript to create visually appealing and interactive web pages.

  • Example: <h1>This is a heading</h1>, <p>This is a...read more

Add your answer

Q6. 1)How we can use life cycle methods in functional components

Ans.

Life cycle methods can be used in functional components using React Hooks.

  • Use useEffect() hook to mimic componentDidMount(), componentDidUpdate() and componentWillUnmount() methods.

  • Use useState() hook to manage state in functional components.

  • Use useContext() hook to access context in functional components.

  • Use useReducer() hook to manage complex state in functional components.

Add your answer
Are these interview questions helpful?

Q7. What is the purpose of HTML tags and attributes?

Ans.

HTML tags and attributes are used to structure and define content on a web page.

  • HTML tags are used to define different elements on a web page, such as headings, paragraphs, images, links, etc.

  • Attributes provide additional information about an element, such as its appearance, behavior, or functionality.

  • For example, the <img> tag is used to display an image on a web page, and the 'src' attribute specifies the image file to be displayed.

View 1 answer

Q8. How was the importance of html.

Ans.

HTML is a fundamental language for creating web pages and is essential for structuring content on the internet.

  • HTML stands for HyperText Markup Language

  • It is used to create the structure of web pages by using elements like headings, paragraphs, images, links, etc.

  • HTML is the backbone of web development and is essential for creating accessible and user-friendly websites

View 1 answer
Share interview questions and help millions of jobseekers 🌟

Q9. How was the importance of css.

Ans.

CSS is crucial for styling and formatting web pages, enhancing user experience and creating visually appealing designs.

  • CSS is used to control the layout, colors, fonts, and overall appearance of a website.

  • It allows for responsive design, making websites adapt to different screen sizes and devices.

  • CSS can be used to create animations, transitions, and interactive elements on a webpage.

  • Without CSS, web pages would be plain and lack visual appeal, making it harder for users to n...read more

View 1 answer

Q10. Explain the basic structure of an HTML document.

Ans.

The basic structure of an HTML document includes the doctype declaration, html element, head element, and body element.

  • DOCTYPE declaration specifies the version of HTML being used

  • HTML element wraps the entire content of the document

  • Head element contains meta information about the document

  • Body element contains the visible content of the document

Add your answer

Q11. What is the Html and css.

Ans.

HTML and CSS are the building blocks of web development, used to create and style web pages.

  • HTML stands for HyperText Markup Language and is used to structure content on a web page.

  • CSS stands for Cascading Style Sheets and is used to style the content created with HTML.

  • HTML uses tags to define elements like headings, paragraphs, images, and links.

  • CSS allows for styling elements with properties like color, font size, margin, and padding.

  • Both HTML and CSS are essential for crea...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Afras

based on 3 interviews
1 Interview rounds
Resume Shortlist Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Front end Developer Interview Questions from Similar Companies

3.5
 • 14 Interview Questions
4.1
 • 13 Interview Questions
3.6
 • 12 Interview Questions
3.5
 • 11 Interview Questions
3.5
 • 10 Interview Questions
3.7
 • 10 Interview Questions
View all
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