Wednesday, October 8, 2025

MAD1-Viva-3

 General Questions related to Project

1.Explain your project?

2. Demonstrate the whole application and explain your code?

3.Demo app?

4.Explain database schema?

5.explain charts u put in project ?

Coding Related questions

1.change the possition of the register button to top right corner?
2.Explain data base table relationships, attributes , foreign and primary keys in your Code?



2.Explain data structures Arrays and Lists?

Ans. 1.List

(i)A list is a collection of items in a single variable.

(ii)You can store different types of data (numbers, strings, etc.) in one list.

(ii)Lists are flexible you can add, remove, or change items easily.

fruits = ["apple", "banana", "cherry"]

2. Array

(i)An array also stores a collection of items, but usually of the same type (like all numbers)

(ii)Arrays are more efficient for math and large numeric data.

(iii)In Python, arrays are available using the array module or NumPy library

use lists when you need versatility, and use arrays when you need speed and performance for numeric data.

----------------------------------------------------------------

What are HTTP Methods?

HTTP methods tell a web server what kind of action to perform on a resource (like a web page or API data).

HTTP methods are the ways a web browser or app communicates with a server to perform different actions. The GET method is used to retrieve data from the server, such as viewing a web page or fetching user information. The POST method is used to send new data to the server, like submitting a form or creating a new account. The PUT method is used to update an existing resource completely, replacing the old data with new data. The PATCH method is similar to PUT but is used to update only part of the data, such as changing just one field in a record. Finally, the DELETE method is used to remove data from the server. Together, these methods form the basic set of operations that allow clients and servers to exchange and manage information on the web.

--------------------------------------------------------------------------

HTML styling?

In HTML, styling is used to make web pages look attractive and well organized. Styling controls how elements like text, images, and buttons appear on the screen such as their color, size, font, and layout. There are three main ways to add style in HTML:

(1)  inline styling, where styles are written directly inside an HTML tag using the style attribute; (2)internal styling, where styles are written inside a <style> tag in the HTML <head> section; and (3)external styling, where a separate CSS (Cascading Style Sheets) file is linked to the HTML page using a <link> tag. Among these, external CSS is preferred because it keeps the design separate from the content, making the code cleaner and easier to maintain.

ORM?

ORM (Object Relational Mapping) is a technique that helps developers interact with a database using programming language objects instead of writing SQL queries. It converts data between database tables and objects in code, making database operations easier and faster to manage.

What is a Flask?

Flask is a lightweight web framework in python used to build web applications and APIs. It is simple, flexible, and easy to use because it provides the basic tools to create routes, handle requests, and connect to databases, while allowing developers to add extra features as needed. Flask is often called a micro framework because it doesn’t include unnecessary built in tools, giving developers full control over how their app works.

Different types of storage?
When it comes to types of storage, data in web applications can be stored in different ways. The main types are primary storage (like computer memory or RAM, which is temporary) and secondary storage (like hard drives or SSDs, which are permanent). In web apps, we often use databases as storage for example, SQL databases like SQLite or MySQL for structured data, and NoSQL databases like MongoDB for unstructured data.

Status code in Terminal?
A status code in the terminal (or in web communication) is a three digit number that shows the result of a request made to a server. It tells whether the request was successful, failed, or needs more action. For example, 200 means “OK” (the request worked), 404 means “Not Found” (the page doesn’t exist), and 500 means “Server Error.” These codes help developers understand what’s happening between the client and server during communication.

Define Routing?
Routing in web development is the process of directing users to different pages or functions based on the URL they visit. In simple terms, it decides what should happen when a user opens a specific link. For example, when someone visits /home, the app might show the homepage, and when they visit /login, it might display the login page. In frameworks like Flask, routing is done using decorators such as @ app.route('/'), which connects a URL path to a specific function that returns the correct response to the user.

Why different hash values?
Different hash values occur because a hash function converts data into a unique fixed length code based on its content. Even a small change in the input, like changing one letter or number, creates a completely different hash value. This happens because hash functions use mathematical algorithms that mix and process data in complex ways to produce a unique output. Hashing is used in security, password storage, and data comparison to ensure that even tiny differences in data can be easily detected.

what is bootstrap?  
Bootstrap is a front end framework used to quickly design beautiful and responsive websites.
It provides ready to made CSS and JavaScript components like buttons, forms, grids, and navigation bars, so you don’t have to code everything from scratch. 

Bootstrap helps you build websites faster using pre designed styles and layouts that automatically adjust to look good on any device phone, tablet, or computer.

No comments:

Post a Comment

Mangerial Economics Quiz1 solutions Guide

Mangerial Economics Quiz1 solutions Guide  solutions watch on you tube channel