🫡 Web Development Flashcards

1
Q

WD

Differences Between HTML / XML

XML Questions

A
  • HTML is for format/display, while XML is representing and transfering data.
  • Tags, HTML has pre-defined tags whilst, XML requires creation of custom tags normally following a XML Schema or DTD.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

WD

www.example.com/index.php/sports/tennis/rackets

Codeigniter Questions

A
  • www.example.com = domain
  • index.php = framework
  • sports = controller / class
  • tennis = function
  • racket parameter
  • /ci/ would be the framework folder / where it is installed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

WD

$(document).ready()

jQuery Questions

A
  • $(document) = jQuerty method used to execute javascript code as soon as DOM of a web page is ready to be manipulated
  • .ready() specifies the code inside
  • $(function() is abbrevation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

WD

$.get()

jQuery Questions

A
  • jQuery method that uses AJAX request to server and retrieve data from it
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

WD

?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MessageList [
<!ELEMENT MessageList (Message*)>
<!ELEMENT Message (To, From, Body)>
<!ELEMENT To (#PCDATA)>
<!ELEMENT From (#PCDATA)>
<!ELEMENT Body (#PCDATA)>
]>

XML Question

A
<?xml version = "1.0" encoding = "UTF-8"?>
<MessageList>
<Message>
<To> John </To>
<From> Jane </From>
<Body> Example message, hi john </Body>
</Message>
</MessageList>
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

WD

MVC

codeigniter Question

A
  • Model, View, Controller
  • model = data and buisness logic, defines data structure, provides method to access data / manipulate.
  • view = rendering the model data, presents to user, defines layout and appearance for UI.
  • controller = recieves user inputs / updates model according to updates etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

WD

Sessions

codeigniter Question: give an example what could use it for

A
  • used as http doesn’t hold data after that page is left that session
  • can assign a username, password that data can be held within that session assiocated with them
  • can be used for authentication and to keep data in forms yet to be submitted.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

WD

onCreate()

Android Questions

A
  • first method that is called when an app is launched. app initalizes it user interfact and other resources.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

WD

onStart()

Android Life Cycle Question

A
  • called when app becomes visible to the user, but be actually running
  • at this point, app is still partially obscured by other apps / home screen.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

WD

onResume()

Android Life Cycle Question

A
  • called when app is brought to the foreground and becomes the active app it is where the app begins to interact with the user and updates it’s UI.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

WD

onPause()

Android Life Cycle Question

A
  • called when the app loses focus either because the user has switched to another app or because system dialog or notification has appeared.
  • this is where the app should release any resources it no longer needs.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

WD

onStop()

Android Life Cycle Question

A
  • called when no longer visible to the user
  • at this point app is still running in the background, but may be killed by system if it needs to free up resources.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

WD

onDestroy()

Android Life Cycle Question

A
  • called when the app is about to be completely destroyed and removed from the memory. it is where the app should release any remaining resources, save any data that needs to be persisted.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

WD

Android Architecture (5)

Android Life Cycle Question

A
  • 5) Android Runtime = libraries core, Dalvik VM
  • 4) Applications = home, contacts, phone, browser
  • 3) Application Framework = Activity, Package, Telephone, Location, notification managers.
  • 2) Libaries = media framework, SSL, SGL, WebKit
  • 1) Linux Kernal = all the drivers, display, camera drivers.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

WD

Android Application Framework

Android Life Cycle Question

A

Views = UI elements
Content Providers = enable data sharing between applications
Resource Manager = provides access to non-code resources
Notification Manager = enables applications to display alerts, status messages.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly