+ - 0:00:00
Notes for current slide
Notes for next slide

Practice Quiz 6 Review

Lauren Bricker

CSE 340 Spring 2021

Slide 1 of 11

Match the actions to each of the layers of the application stack.

Practice Quiz 6 problem 1 Toolkit responses

Slide 2 of 11

Match the actions to each of the layers of the application stack.

Practice Quiz 6 problem 1 high level tools responses

Slide 3 of 11

Match the actions to each of the layers of the application stack.

Practice Quiz 6 problem 1 application responses

Slide 4 of 11

Callbacks

Imagine you are developing a new driving game app. The app will contain at least one car, represented as CarView in the code. A CarView keeps track of whether it is on or off the route, and will inform any other object in the app that is "listening" when it has gone off the route.

We will denote the listener as an interface OffRoute that requires one method goneOffRoute() to be implemented as the callback when the driver’s vehicle deviates from the route.

Correctly label each method call, based on what object (Application, View, or Neither) you would use to call it, and where you would put the code to implement it.

Slide 5 of 11

Callbacks

  • goneOffRoute() is called by [appview1] and implemented in [appview2]
  • setOnOffRouteListener() is called by [appview3] and implemented in [appview4]
ApplicationCarViewCarModelsetOnOffRouteListener(this)Deviated from roadgoneOffRoute()ApplicationCarViewCarModel
OffRouteCarView#offRouteListenerList+setOnOffRouteListener()ApplicationgoneOffRoute()Syntax error in graphmermaid version 8.8.2
Slide 6 of 11

MVC

Imagine you have a system for unlocking a door using voice commands.

Practice Quiz 6 problem 3 voice commands

Practice Quiz 6 problem 3 voice commands student answers mostly right

Slide 7 of 11

MVC

Imagine you have a system for unlocking a door using voice commands.

Practice Quiz 6 problem 3 voice commands

Practice Quiz 6 problem 3 voice commands student answers mostly right

Slide 8 of 11

MVC

Imagine you have a system for unlocking a door using voice commands.

Practice Quiz 6 problem 3 voice commands

Practice Quiz 6 problem 3 voice commands student answers mostly right

Slide 9 of 11

Capture/Bubble

Given the following screen and interactor hierarchy, where V0 and V4 are decorative and do not respond to input.

Practice Quiz 6 problem 4 picklist capture and bubble image

A lot of people didn't answer these problems.

  • The picklist is {V6, V5, V1, V3, V2, V4, V0}
  • The filtered picklist is {V6, V1, V3, V2}
  • The capture order is {V2, V3, V1, V6}
  • The bubble order is {V6, V1, V3, V2}
Slide 10 of 11

Bike

What regions would define your EssentialGeometry in order to correctly identify the 3 regions (positions with respect to the arrow).

Practice Quiz 6 problem 4 picklist capture and bubble image

Take aways: This question needs to be re-designed for an autograded canvas quiz. A lot of people used INSIDE, OUTSIDE instead of what the matching was looking for:

  • DOUBLE
  • STOP
  • SCROLL
Slide 11 of 11

Match the actions to each of the layers of the application stack.

Practice Quiz 6 problem 1 Toolkit responses

Slide 2 of 11
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
s Start & Stop the presentation timer
t Reset the presentation timer
?, h Toggle this help
Esc Back to slideshow