100% found this document useful (1 vote)
650 views3 pages

Full Stack Development Question Bank

full stack important questions

Uploaded by

Harshith kumar P
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
650 views3 pages

Full Stack Development Question Bank

full stack important questions

Uploaded by

Harshith kumar P
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
  • Module-2
  • Module-1
  • Module-3
  • Module-4
  • Module-5

Question Bank on Full Stack Development

Module-1
1. Explain the need of a web framework highlighting the
disadvantages in one off dynamic script that uses a specific DBMS
library.
2. Write a python function in Django framework [Link] that
displays date and time which is an offset of n hours from current
date and time.
3. With a flow diagram explain the processing of Django request and
response.
4. Explain the role of various wild cards in creating dynamic URLs
with any example.
5. With a sample error page explain the role of finding errors in Django
6. Write a Django application which prints number of words passed
in the URL. (Write [Link] and [Link])

Module-2
1. Define a Django Template. Write a simple python function that
creates Template object and renders it.
2. Explain context variable look up in Django templates with rules for
following lookups.
3. Explain various filters used in Django Template system with code
snippet for each.
4. Develop a Django app which displays yesterday and tommorows
date and time. (Write template html file, [Link] and [Link])
5. Define Template inheritance and explain the usefulness of template
inheritance with any example.
6. Explain the dumb of doing database interaction in Python and give
the salient features of MVT development pattern.
7. What are the various database settings to be given in [Link] for
interacting with MySQL. Differentiate app and project.
8. Bring out the various advantages of storing database as models than
SQL.
9. Develop a Django app that creates a model to store student
information. Perform insertion, deletion, updation and retrieval
using ORM Django APIs.
[Link] various APIs provided Django ORM for interacting with
tables using appropriate examples.

Module-3
1. Explain various features available in Django administration
website.
2. Develop a django app that registers some models in [Link] and
also includes customizations for search, filter, grouping and others.
3. Explain the mechanism to customize the Admin index page.
4. Develop a Model form for student that contains his topic chosen for
project, languages used and duration with a model called project.
5. Write a python function for validating the mobile number with
validation condition as 10 digits, ‘should not start with 0, + can be
at beginning.
6. What are function and string object approaches for writing in
URLconf. Further list their potential advantages.
7. Differentiate keyword and positional argument passing techniques
in Python.
8. Explain the working of captured parameters and Extra URL conf
with include()
Module-4
1. What are principal advantages of Generic views in Django. Give an
example of function based generic view.
2. Explain object based Generic view with example.
3. Explain the different ways of extending Generic views in Django.
4. Create a generic class view which displays list of students and
detailview that displays student details for any selected student in
the list.
5. How are MIME types handled by views. Write a python function
that generates a csv for students data containing their usn, name,
college, and branch details.
6. Develop a Python code for generating PDF file for any model.
7. Explain the high-level syndication feed-generating framework that
creates RSS and Atom feeds in Django.
8. Explain the various methods and attributes of Sitemap class.
9. Define cookies and why are they required. With a programming
example demonstrate setting and getting of cookies in Django.
[Link] a Python function that stores favourite colour given by the
user in Session. Further write another function that displays this
session information.
[Link] various fields and methods of User objects

Module-5
1. Ajax is an overlaid function – substantiate. Bring out the salient
features of Java script.
2. Explain the various methods and properties of XMLHttpRequest
object
3. Differentiate HTML, XML and XHTML. How JSON is better
than XML for data presentation.
4. Explain the use of JQuery for the DOM in HTML with code
snippets.
5. Explain the $.ajax() function with parameters, data, success and
error blocks.
6. Develop a registration page for student enrolment using
appropriate model but without page refresh using AJAX
7. Explain autocomplete and progressive enhancement features of
JQuery with examples.
8. Develop a search application in Django using AJAX that displays
courses enrolled by a student being searched.
9. Write short notes on (i) UI Autocomplete (ii) iFrames (iii)
Turning on Ajax behaviour

Common questions

Powered by AI

The Django request and response cycle begins when a user's browser sends an HTTP request to the server. Django's URL dispatcher maps the request to a view based on URLs defined in urlconf modules. The view processes data, potentially interacting with a database through ORM, and returns an HTTP response. This cycle can involve middleware to process requests and responses at various stages, optimizing performance and security .

Generic views in Django provide pre-built views that simplify common tasks, reducing boilerplate code and enhancing development speed. They support template-based and context-rich responses by encapsulating view logic for common use cases like displaying a list of objects or detailed object views. An example of a function-based generic view is `ListView`, which can be subclassed to display a list of objects without needing explicit query handling in a view function .

In Django, MIME types are managed via the `Content-Type` HTTP header, which specifies the format of the data being sent in the response. To generate a CSV using Django views, the content type is set to `text/csv` using `HttpResponse`. The view can use Python's CSV module to write data to a response object, ensuring the correct MIME type for clients that handle CSV formatting and displaying accordingly .

JQuery simplifies DOM manipulation by providing intuitive methods to manipulate elements, handle events, and perform animations. Its cross-browser compatibility reduces issues in diverse environments. An example snippet demonstrates appending an item with JQuery: `$('#list').append('<li>New Item</li>');`. This appends a new list item to a list element with ease and consistency compared to traditional JavaScript, enhancing developer efficiency and application responsiveness .

Customizing the Django Admin site involves modifying attributes like `list_display`, `search_fields`, and `list_filter` in `admin.ModelAdmin`. Methods like `get_queryset` and `save_model` allow customizing data display and processing. Admin classes can also include custom actions and dynamically adjust fields, improving the usability and aesthetics of the admin interface, aligning it with specific project requirements .

Django template inheritance allows templates to extend other templates, promoting reuse and simplifying changes. A base template defines a skeleton structure with blocks that other templates can override. This approach minimizes redundancy and makes it easier to maintain consistent design across pages. For example, a site-wide layout can be defined in a base template, while specific pages extend it by modifying only necessary blocks, improving development efficiency and consistency .

Django's ORM abstracts database interactions, allowing developers to use Python code instead of SQL queries for data manipulation. This leads to more readable and maintainable code, with automatic translations into optimized SQL queries. ORM provides data validation, schema migration tools, and a unified API for different databases, reducing the risk of SQL injection and promoting security. It enhances productivity since database schema changes don't require SQL modifications directly in the code .

JSON (JavaScript Object Notation) offers several advantages over XML. It has a simpler syntax, making it more lightweight and easier to read and write. JSON's format aligns closely with JavaScript objects, facilitating easier integration with web technologies. Unlike XML's verbose tagging, JSON minimizes overhead and speeds up data transmission and parsing. JSON's support for hierarchical data and arrays natively also enhances its suitability for modern web development, whereas XML requires additional parsing .

Wildcards in Django's URL patterns allow for dynamic URL routing by capturing variable parts of the URL for processing. They are specified using angle brackets and can define types and names for the captured variables. For example, the pattern `path('article/<int:id>/', views.article_detail)` captures an integer from the URL and passes it to the `article_detail` view as a keyword argument, allowing dynamic webpage content based on the URL .

Web frameworks are essential because they simplify the development process by providing a structure for building and maintaining web applications. They offer various built-in components like URL routing, templating engines, and database interaction tools, which reduce redundant code and potential errors. Standalone dynamic scripts with specific DBMS libraries can be cumbersome because they require manual handling of security, efficiency, and maintainability concerns. Such scripts lack standardization, making them harder to maintain and scale .

Question Bank on Full Stack Development 
 
Module-1 
1. Explain the need of a web framework highlighting the 
disadvantages
8. Bring out the various advantages of storing database as models than 
SQL.  
9. Develop a Django app that creates a model t
5. How are MIME types handled by  views. Write a python function 
that generates a csv for students data containing their usn

You might also like