Web Applications and Flask programming Flashcards
Define a native application.
A native application is an application software that is developed for use on a particular platform or device
State 3 advantages of using native applications over web applications.
- Native applications are usually more efficient than web applications because native applications are customised for a specific platform
- Native applications tend to have more direct access to device features, such as the camera, GPS and accelerometer, as compared to web applications
- Native applications can function without Internet access, unlike web applications
State 3 disadvantages of using native applications over web applications
- More costly to develop native applications as every platform and operating system requires a different version of the native application, unlike web applications, which can run on any device that can run a web browser
- Native applications require users to install updates, either manually or automatically, which creates more hassle as compared to web applications, which do not require its users to install updates
- Users have to download and install native applications in order to use them, creating more hassle as compared to web applications, which do not require any download or installation to be used
Define a web application.
A web application is an application software that runs on a web server and is accessed by a web browser
State 3 advantages of using web applications over native applications. (5 in total)
- Web applications are more platform independent than native applications because web applications can run on any platform that can run a web browser, unlike native applications, which require a specific version of the native application to be developed for each platform
- It is easier to maintain a web application with a single code base as compared to a native application with multiple code bases for different versions for different platforms
- Users do not need to install updates to use web applications because the updating is done on the server-side, unlike native applications, which require users to install updates
- Users do not need to download and install web applications to use them, unlike native applications, which require users to download and install them
- Web applications are more easily shared as compared to native applications as users only need to share a URL in order to share a web application, while users have to share the program files of a native application in order to share it
State 3 disadvantages of using web applications over native applications. (4 in total)
- Web applications usually have less access to device features, such as the camera, GPS and accelerometer, as compared to native applications
- Web applications may not function in the same way across different browsers or even different versions of the same browser
- Web applications require Internet access in order to be used, unlike native applications
- Web applications may have a less ideal user experience as compared to native applications because web applications are not customised for any specific platform, while native applications are more user friendly as they are customised for specific platforms and OS.
What are the roles of HTML and CSS in creating a web application?
HTML is used to structure the content and give it semantic meaning
CSS is responsible for the design, styling, and layout of the content
How is the GET method and POST method different in sending data? (2 differences)
- Sending data using the GET method appends the data being sent to the URL, making it less secure while sending data using the POST method does not cause the data being sent to appear in the URL, making it more secure
- Flask defaults to using the GET method while in order to use the POST method, it must be specified in both the HTML form attribute and the Python function
What is the role of Flask in creating a web application?
Python operates in the background to process user requests and return a response.
When should GET method be used when sending data?
When data is collected in the form of a non-sensitive input
When should POST method be used when sending data?
Mostly used in sending forms, especially when handling file uploads, or sensitive data.
What are the 10 usability principles?
- Visibility of System Status
- Match between System and Real World
- User Control and Freedom
- Consistency and Standards
- Error Prevention
- Recognition rather than recall
- Flexibility and Efficiency of use
- Aesthetic and Minimalist Design
- Help users recognise, diagnose, and recover from errors
- Help and Documentation
What is User Control and Freedom? What is an example of it?
User have the freedom to navigate and perform actions, including undoing accidental actions.
For example, support undo, redo, and cancel (to exit from the current interaction)
What is Flexibility and Efficiency of Use? What is an example of it?
Able to transform itself to suit multiple users, allowing people to pick whatever way that works for them.
Example: Shortcut buttons, personalisation and customisation. May transform itself for novice and advanced users eg. advanced settings.
What are the tags that must be present in an HTML document?
html
head
title
body