0% found this document useful (0 votes)
56 views4 pages

Fresher Web Developer Interview Guide

This document is a comprehensive interview question bank for fresher web developers, covering key topics such as HTML, CSS, JavaScript, React.js, Spring Boot, MySQL, Git, Agile methodologies, Java problem-solving, and HR behavioral questions. Each section contains a list of relevant questions aimed at assessing a candidate's knowledge and skills in these areas. The questions range from basic concepts to more advanced topics, providing a well-rounded preparation guide for interviews.

Uploaded by

58yscd8fj5
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views4 pages

Fresher Web Developer Interview Guide

This document is a comprehensive interview question bank for fresher web developers, covering key topics such as HTML, CSS, JavaScript, React.js, Spring Boot, MySQL, Git, Agile methodologies, Java problem-solving, and HR behavioral questions. Each section contains a list of relevant questions aimed at assessing a candidate's knowledge and skills in these areas. The questions range from basic concepts to more advanced topics, providing a well-rounded preparation guide for interviews.

Uploaded by

58yscd8fj5
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

All-in-One Fresher Web Developer

Interview Question Bank


HTML & CSS
1. What is the difference between HTML and HTML5?

2. How is semantic HTML beneficial?

3. What are block vs inline elements? Give examples.

4. How do you make a website responsive?

5. What is the difference between relative, absolute, fixed, and sticky positioning in CSS?

6. What is Flexbox and how does it work?

7. What is the difference between classes and IDs in CSS?

8. How can you center a div both vertically and horizontally?

9. What is the difference between “em”, “rem”, “px” and “%” in CSS?

10. Explain specificity and how CSS resolves conflicts.

JavaScript (ES6+)
1. What are let, const, and var? Differences?

2. Explain closures with an example.

3. What are arrow functions? How do they differ from regular functions?

4. What are promises and async/await?

5. Explain event bubbling and event delegation.

6. What is the difference between == and ===?

7. How does the JavaScript event loop work?

8. What is hoisting in JavaScript?

9. Explain the difference between null and undefined.

10. What are JavaScript data types?


[Link] (Frontend)
1. What is React? Why is it used?

2. What is the virtual DOM and how does React use it?

3. Explain useState and useEffect hooks with examples.

4. What are props and state? How are they different?

5. What is JSX? Why do we use it?

6. What are controlled vs uncontrolled components?

7. What is conditional rendering in React?

8. How do you lift state up in React?

9. How does React handle forms?

10. What are keys in React lists and why are they important?

Spring Boot (Backend - Java)


1. What is Spring Boot and how is it different from Spring Framework?

2. What is a Spring Boot starter dependency?

3. Explain the flow of a REST API call in Spring Boot.

4. What are annotations like @RestController, @Service, @Autowired, @RequestMapping,


etc.?

5. How do you connect a Spring Boot app to MySQL?

6. What is Spring Data JPA? How is it useful?

7. What is the purpose of [Link] or [Link]?

8. What are CRUD operations using JpaRepository?

9. What is the difference between @Component, @Service, and @Repository?

10. How do you handle exceptions globally in Spring Boot?

11. What is dependency injection and how is it implemented in Spring Boot?

12. How does Spring Boot automatically configure applications (auto-configuration)?

13. What is a DTO (Data Transfer Object)? Why use it?


14. How do you validate request bodies using annotations (like @Valid, @NotNull)?

15. How do you secure a Spring Boot REST API?

MySQL Database
1. What is MySQL and why is it used?

2. What are primary key, foreign key, unique, and not null constraints?

3. Explain the normalization process (1NF, 2NF, 3NF).

4. How do you perform CRUD operations in MySQL?

5. Write a query to: Retrieve all users, Insert a new record, Update a user’s email, Delete a
user by ID.

6. What is an index? How does it improve performance?

7. Explain different types of joins (INNER, LEFT, RIGHT, FULL).

8. What is a subquery? Give an example.

9. How do you connect Spring Boot with MySQL? (Which properties must be set?)

10. What is the use of @Query annotation in Spring Data JPA?

Git & Agile


1. What is Git and how is it different from GitHub?

2. How do you clone a repository?

3. What is the difference between git pull and git fetch?

4. How do you resolve merge conflicts?

5. What are branches in Git and how do you create/switch/delete them?

6. What is Agile methodology?

7. Explain Scrum and your role in it (as a developer).

8. What are sprints and sprint planning?

9. What is a user story?

10. How do you manage tasks in a sprint?


Java Problem Solving & Core Java
1. Java program to reverse a string.

2. Java function to check if a number is even/odd.

3. Find the largest number in an array using Java.

4. Java program to check if a string is a palindrome.

5. Java code to count vowels and consonants.

6. Write a Java program to sort an array.

7. What is the difference between ArrayList and LinkedList?

8. What are exception handling keywords in Java (try, catch, finally)?

9. Explain the difference between == and .equals() in Java.

10. What is the use of static and final keywords?

HR / Behavioral Questions
1. Tell me about yourself.

2. Why do you want to work at this MNC?

3. Describe a project where you faced challenges and how you overcame them.

4. Are you open to relocation?

5. How do you handle tight deadlines?

6. What are your strengths and weaknesses?

7. How do you keep yourself updated with new technologies?

8. How do you handle feedback or criticism?

9. Where do you see yourself in 5 years?

10. Why should we hire you?

Common questions

Powered by AI

The virtual DOM in React acts as an in-memory representation of the real DOM elements, enabling React to compute the minimum number of changes needed to be made to the DOM by comparing the new virtual DOM with a snapshot of the previous one. This process, called reconciliation, minimizes direct DOM manipulation, which is computationally expensive, thus boosting the application's performance by reducing reflows and repaints in the browser.

Agile methodology enhances responsiveness to change by using iterative development cycles—sprints—that incorporate regular feedback, enabling teams to adapt swiftly to project demands and client needs. It values collaboration, encourages regular communication, and focuses on delivering functional increments of a product. Compared to traditional, linear project management like Waterfall, Agile is more flexible, allowing for less documentation and higher adaptability, facilitating a quicker and more effective response to evolving project requirements.

"let" and "const" in JavaScript both declare block-scoped variables, meaning they are confined to the nearest enclosing block, such as a function or loop. "let" variables can be reassigned but not redeclared within the same scope, offering flexibility for changing values. "const" declares variables that cannot be reassigned or redeclared in the same scope, protecting from accidental modifications and encouraging the use of constants in code design. The scoping rules and mutability constraints guided by these keywords help in avoiding errors related to variable redeclaration and reassignment.

Spring Boot starter dependencies simplify the setup and configuration of a project by bundling compatible, pre-configured libraries and frameworks for common tasks like REST APIs, JPA, and security. They encapsulate the configuration by providing a set of default dependencies, which reduces boilerplate code and integrates seamlessly with Spring Boot's auto-configuration. This approach accelerates project initiation, promotes best practices, and enhances developer productivity by eliminating the need for manual dependency management.

To make a website responsive, use fluid grid layouts, flexible images, and media queries. Start by defining relative units like percentages and viewport units for dimensions instead of absolute units. Use CSS media queries to adjust the layout based on device characteristics, such as width, orientation, or resolution. Responsive design best practices also include using modern CSS techniques, like Flexbox or Grid, to create dynamic layouts that adapt seamlessly to different screen sizes, ensuring a consistent user experience across devices.

Hooks in React introduce state and lifecycle features to functional components, previously exclusive to class components. useState allows the incorporation of local state within function components, returning a state and a function to update it, facilitating dynamic UI handling. useEffect hook manages side effects such as data fetching, subscriptions, and manual DOM changes, taking away the need for lifecycle methods like componentDidMount. Hooks simplify component logic handling and create flexible, reusable, and cleaner components.

CSS specificity determines which rule is applied when multiple rules could apply to the same element by ranking selectors based on criteria like type, class, or ID used. It’s calculated by sums based on 0-1-0-0 (inline styles), 0-1-0 (IDs), 0-0-1 (classes, attributes), and 0-0-0-1 (elements, pseudoelements), ensuring that more specifically targeted rules override more general ones. Specificity is crucial for maintaining the order and predictability of styling, avoiding conflicts where unintended styles might take precedence.

Block elements in HTML, such as div and p, occupy the full width of their parent container and start on a new line, which allows them to stack vertically and shape the backbone of a page’s layout. Inline elements, like span and a, only take up as much width as necessary and do not start on a new line, thus allowing content to flow with the surrounding text. This distinction impacts how content is structured, enabling developers to efficiently manage layout and styling.

The Flexbox layout model streamlines complex layouts by providing a flexible way to arrange elements within a container without using traditional positioning techniques such as float or positioning properties. It simplifies tasks such as aligning and distributing space among items in a container, even when their size is unknown or dynamic (e.g., user-generated content), which greatly enhances responsiveness and versatility in modern web design.

Closures in JavaScript are functions that retain access to their scope, even after the outer function has finished executing. This allows functions to remember and access variables from their declared lexical environment. For example, a closure can be created in a function factory pattern, where a function returns another function that increments a counter: function createCounter() { let count = 0; return function() { return ++count; }; } Here, the inner anonymous function uses the outer function’s count variable, creating a closure.

You might also like