Full Stack Development with Django

Level - 1 Questions

Unit - 1
  1. Explain how HTML has evolved from HTML3 to HTML5.

  2. Distinguish between web application and website.

  3. Name a few factors that have led to the emergence of full-stack programmer.

  4. Name any five types of front-end technologies giving one example for each.

  5. Name any five types of back-end technologies giving one example for each.

  6. Name any five types of database technologies giving one example for each.

  7. What systematic approaches can be used to gather and analyze user requirements to ensure that all stakeholders' needs are accurately captured in the web application design?

  8. Name any five core principles of agile methodology.

Unit - 2

  1. Explain the key features of HTML5 technology

  2. Name a few HTML5 elements that help define document structure

  3. Name a few HTML5 elements that create structured tables

  4. Name a few semantic HTML5 elements.

  5. Explain the syntax of a CSS rule.

  6. Name various types of external CSS files.

  7. Explain z-index. Why is it useful?

  8. What is jQuery, and how does it simplify JavaScript programming for web development?

Unit - 3

  1. Explain the CREATE TABLE statement used to define tables in MySQL.

  2. What is the role of a primary key in a MySQL table?

  3. What is an index? Explain benefits of using index in MySQL.

  4. What is SQL? Describe its functions.

  5. Write a SQL query to create a new table named employees with columns for id, first_name, last_name, email, and hire_date.

  6. Write a SQL query to retrieve all columns from the employees table.

  7. Write a SQL query to retrieve only the first_name and last_name columns from the employees table.

  8. Write a SQL query to select all employees from the employees table who were hired after January 1, 2024.

  9. Write a SQL query to select all employees and concatenate their first_name and last_name into a single column called full_name.

  10. Write a SQL query to update the email address of the employee with id = 1 to rajesh.kumar@example.com.

  11. Write a SQL query to update the hire_date to '2024-01-01' for all employees whose last_name is 'Pandit'.

  12. Write a SQL query to delete the employee with id = 3 from the employees table.

  13. Write a SQL command to remove all rows from the employees table without removing the table itself.

Unit - 4

  1. Name key components of back-end architecture.

  2. What are the benefits of using Python Django combination for development of web applications?

  3. Explain the Django Project Structure

  4. Name the databases for which Django ORM support is available.

  5. Name the two mechanisms available in Django to build back-end APIs.

  6. What do you understand by Domain Driven Design? Explain with an example.

  7. What is dependency injection? What are its benefits?

  8. What is DRF? Name its key features.

  9. Name three types of authentication supported by DRF.

  10. Explain the serialization process of Django models

Unit - 5

  1. What is the difference between Django project and a Django application? Explain with an example.

  2. Name two types of Django views with an example for each.

  3. With a neat picture, explain the flow of HTTP Request and Response in Django.

  4. Explain URL Name Spacing in Django.

  5. What is a Django template? Explain with an example.

  6. What are template tags in Django? Describe different types of template tags and their usage.

  7. What are template filters in Django? Provide examples of commonly used template filters and their functions.

  8. What are Django template blocks, and how are they used?

  9. What is template inheritance in Django? How does it help in creating reusable templates?

  10. What is CSRF token? Explain its role in Django forms.

  11. What are Formsets in Django? How are they different from Django Forms?

  12. How do you set initial data for a Django form field? Create a form with an author field that has a default value of "Unknown Author".

  13. Name two ways of implementing permissions and access control for CRUD operations in Django

Level 2 Questions

Unit - 1
  1. What principles of modular design should be followed to create maintainable and scalable modules within a web application?

  2. What role does dependency injection play in module design, and how can it be used to enhance the testability and flexibility of a web application?

  3. What techniques can be implemented in the design of a web application to anticipate and mitigate the impact of failures, ensuring robustness and reliability?

  4. Explain the role of Scrum Master, Product Owner, and Development Team

  5. Explain the Golden circle method used by leaders to communicate

Unit - 2

  1. With examples, explain various ways of positioning CSS rules.

  2. How many types of selectors are there? Name them.

  3. Name the three cascade principles used by CSS to handle conflicts.

  4. Name the inheritable and non-inheritable CSS properties

  5. Distinguish between block level elements and inline elements

  6. Name the three places where you can insert JavaScript in a HTML page

  7. Explain the three types of outputs produced by JavaScript. Give examples.

  8. How does jQuery handle events, and what is the syntax for binding an event handler to a specific event?

  9. How does jQuery facilitate dynamic manipulation of the Document Object Model (DOM)?

  10. Describe $.ajax(), $.get(), and $.post() methods of jQuery.

  11. Describe the following Bootstrap components.

  12. What is progressive enhancement of a user experience design?

  13. Provide examples of common UX design patterns that enhance user experience.

Unit - 3

  1. How do foreign keys enforce referential integrity in MySQL, and what are the implications of using ON DELETE and ON UPDATE cascade actions?How do unique constraints differ from primary keys in MySQL?

  2. What are the benefits and limitations of using views in database design?

  3. Write a SQL query to select all employees from the employees table who were hired after January 1, 2024, and whose email address ends with 'example.com'.

  4. Write a SQL query to insert a new row into the employees table with the following data: id = 1, first_name = 'Rajesh', last_name = 'Kumar', email = 'Rajesh.Kumar@example.com', and hire_date = '2023-01-15'.

  5. Write a SQL query to select all orders from an orders table along with the corresponding customer names from a customers table, assuming both tables have a customer_id column.

  6. Write a SQL query to select all customers from a customers table along with any orders they have placed from an orders table. Include customers who have not placed any orders.

  7. Write a SQL query to count the number of employees hired in each year from the employees table.

  8. Write a SQL query to count the number of employees hired in each year and display only those years where more than 5 employees were hired.

  9. Write a SQL query to calculate the average number of orders placed per customer from an orders table.

Unit - 4

  1. Write code for a model in Django for an entity called "Product" having fields called "name" (100 characters), price (10 digit number with 2 decimal digits), and "description" (text field)

  2. Write two pieces of code in Django to map a path 'hello/' to a view called 'hello_world' which generates a HTTP response "Hello World!"

  3. Explain Django RESTful Framework (DRF) with an example.

  4. Name the three architectural layers of a Django application and mention responsibility of each layer.

  5. Name three types of dependency injections with an example for each type.

  6. Explain serialisation and de-serialisation with an example.

  7. What is FastAPI? Mention its key features.

  8. What are Routers in Django? When would you use a router?

  9. Create an endpoint /students/ that links to a controller to list all students from the Student model.

  10. Develop an endpoint /students/create/ that links to a controller to create a new student entry in the Student model.

  11. Set up an endpoint /students/update/<int:id>/ that links to a controller to update the details of a student with a specific ID in the Student model.

  12. Design an endpoint /students/delete/<int:id>/ that links to a controller to delete a student with a specific ID from the Student model.

  13. Implement an endpoint /students/<int:id>/ that links to a controller to retrieve the details of a student with a specific ID from the Student model.

  14. Create an endpoint /courses/ that links to a controller to list all courses from the Course model.

  15. Develop an endpoint /courses/create/ that links to a controller to create a new course entry in the Course model.

  16. Set up an endpoint /courses/update/<int:id>/ that links to a controller to update the details of a course with a specific ID in the Course model.

  17. Design an endpoint /courses/delete/<int:id>/ that links to a controller to delete a course with a specific ID from the Course model.

  18. Implement an endpoint /courses/<int:id>/ that links to a controller to retrieve the details of a course with a specific ID from the Course model.

  19. What are the benefits of serializing Django models?

  20. Name the five common methods of Django models.

  21. What are meta options of Django models? How many meta options are supported in Django? Name them.

Unit - 5

  1. Name various URL patterns supported by Django.

  2. Explain the difference between static and dynamic URL patterns in Django with an example.

  3. Explain the role of the model in the MVT pattern.

  4. Explain the role of the view in the MVT pattern.

  5. Explain the role of the template in the MVT pattern.

  6. With an example, describe how context data is passed from a view to a template in Django.

  7. Explain what template tags are in Django. Show how to use the for tag to loop through a list of items and display them in a template items.html.

  8. How can you include one template inside another? Create a partial template header.html and include it in base.html.

  9. How do you reference static files (like CSS, JavaScript) in Django templates? Demonstrate this in a template layout.html with a linked CSS file.

  10. How do you add comments in Django templates? Add comments in a template example.html to explain different sections of the template.

  11. How do you use if conditions in Django templates? Create a template status.html that displays different messages based on the value of a variable status.

  12. Name decorators and mixin classes available in Django to implement permissions and access control.

Level 3 Questions

Unit - 1
  1. What are the roles and responsibilities of a Full Stack Django developer?

  2. What technologies and concepts should a full stack Django developer be aware of?

  3. Name any eight types of full-stack development technologies.

  4. Compare Django and Flask frameworks for developing web applications.

  5. What are the challenges and best practices for translating high-level business requirements into detailed functional and non-functional specifications for a web application?

  6. What are the best practices for implementing error handling and logging in a web application to facilitate efficient troubleshooting and recovery from failures?

  7. What are some common challenges organizations face when implementing agile and Scrum, and what strategies can be employed to overcome these challenges?

  8. What are the critical considerations for designing a web application architecture?

  9. How can the use of middleware and APIs facilitate seamless interactions between different components of a web application, and what are the best practices for ensuring their security and reliability?

  10. Describe activities that take place in a Scrum sprint.

  11. What are the differences between agile and traditional ways of developing software?

Unit - 2

  1. Draw a picture and HTML code for a login form that accepts userId and Password and has submit and cancel buttons.

  2. Explain the specificity algorithm used by CSS

  3. With a neat picture, explain the CSS box model

  4. For the following CSS, draw the box model and calculate true element width and height of the DIV tag

    div {

    box-sizing: content-box;

    width: 200px;

    height: 100px;

    padding: 5px;

    margin: 10px;

    border: solid 2pt black;

    }

  5. Name the four ways of positioning elements with CSS

  6. Name the variables and data types supported by JavaScript

  7. What are thruthy and falsy values in JavaScript? Give examples.

  8. With examples, explain anonymous functions in JavaScript.

  9. How does jQuery facilitate AJAX calls, and what are the advantages of using jQuery for making asynchronous requests to a server

  10. Explain the Bootstrap grid system.

  11. Explain any eight of the following Bootstrap components: Alerts, Badges, Breadcrumbs, Buttons, Cards, Carousel, Dropdowns, Modals, Navbars, Progress, Spinners, Tooltips, and Toasts

  12. Name a few best practices of user experience design.

Unit - 3

  1. How are different types of table relationships (one-to-one, one-to-many, and many-to-many) represented in MySQL, and what SQL statements are used to establish these relationships?

  2. Write a SQL query to assign a rank to each employee based on their hire_date, where the earliest hire date gets the highest rank.

  3. How do different HTTP methods (GET, POST, PUT, DELETE, PATCH) map to CRUD operations in a RESTful API?

  4. What are the common methods for implementing authentication and authorization in an API?

  5. What are the advantages and disadvantages of using JSON versus XML as data formats for API responses?

  6. What are HTTP status codes, and why are they important in REST APIs? Provide examples of commonly used status codes and their meanings.

  7. What are the different 4xx status codes in REST APIs, and how do they indicate client-side errors?

  8. What are the different 5xx status codes in REST APIs, and how do they indicate server-side errors?

Unit - 4

  1. With an example, explain Django's authentication and authorization facility.

  2. Name the seven components of Domain Driven Design. Give an example for each.

  3. What do you understand by "dependency injection"? Explain with an example.

  4. What are the advantages and disadvantages of dependency injection?

  5. Name the seven steps of implementing web APIs using DRF.

  6. Name the seven advanced features of DRF.

  7. Explain key differences between FastAPI and DRF.

  8. What are end points and controllers? How do you explicitly add controllers to end points?

  9. Create a Django model for a Student entity. The model should include three attributes: first_name (CharField), last_name (CharField), and enrollment_date (DateField). Ensure appropriate data types and validations.

  10. Develop a Django model for a Book entity. The model should include three attributes: title (CharField), author (CharField), and published_date (DateField). Add necessary validations and methods to represent this model accurately.

  11. Create a Django model for an Event entity. The model should consist of three attributes: name (CharField), location (CharField), and event_date (DateField). Make sure to include appropriate constraints and methods if necessary.

  12. Order Model: Develop a Django model for an Order entity. The model should include three attributes: order_number (CharField), customer_name (CharField), and order_date (DateField). Ensure all fields have the necessary validations and constraints.

  13. Create a Django model for a Course entity. The model should include three attributes: course_name (CharField), course_code (CharField), and start_date (DateField). Ensure all fields have proper data types and validations.

  14. Develop a Django model for an Employee entity. The model should include three attributes: employee_id (CharField), full_name (CharField), and date_of_hire (DateField). Implement necessary constraints and methods for this model.

  15. Design a Django model for an Article entity. The model should have three attributes: title (CharField), author (CharField), and published_on (DateField). Add validations to ensure the integrity of the data.

  16. Create a Django model for a Customer entity. The model should consist of three attributes: customer_name (CharField), email (EmailField), and joined_date (DateField). Make sure to include appropriate constraints and methods if necessary.

  17. Develop a Django model for a Review entity. The model should include three attributes: product (CharField), review_text (TextField), and rating (IntegerField with choices). Ensure all fields have the necessary validations and constraints.

  18. Name at least eight types of attributes supported by Django models.

  19. With a simple example, explain how CRUD operations are performed on Django models. (Just write one line code for C, R, U, & D)

Unit - 5

  1. What are path converters in Django URLs? Name five types of path converters supported by Django.

  2. Describe the MVT pattern in Django. How does it differ from the traditional MVC pattern?

  3. How do you pass context data from a view to a template? Create a view that passes a dictionary with a key message and value "Hello, Django!" to a template greeting.html.

  4. How do you create a basic Django form for a Book with fields for title, author, and published_date? Provide the form class definition.

  5. What is a ModelForm in Django? Create a ModelForm for the Book model with fields title, author, and published_date.

  6. How do you add custom validation to a Django form field? Create a form with a title field that ensures the title is at least 5 characters long.

  7. Explain how to handle form submissions in a Django view. Create a view that processes a form submission for adding a new Book.

  8. How do you save form data to a model instance? Create a view that saves a Book form submission to the database.

  9. Define CRUD operations. How do they map to common HTTP methods in web applications?

  10. How do Django models facilitate CRUD operations in a web application? Provide examples of methods or functions provided by Django models that support these operations.

  11. How does Django handle errors during CRUD operations, such as form validation errors or database constraints violations? Provide examples of handling these errors in views.

  12. Explain the importance of database transactions in CRUD operations. How does Django ensure data integrity during create, update, and delete operations?

  13. What are Django signals, Name signals commonly used with CRUD operations.