Google Glass Programming MCQs

Google Glass Programming MCQs

Our experts have gathered these Google Glass Programming MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of Google Glass Programming by answering these 50+ multiple-choice questions.
Get started now by scrolling down!

1: Creating an APIs project in Google's APIs console allows you to:

A.   Share API management with a team

B.   All of the above

C.   Monitor API usage and control API access

D.   Use Google APIs beyond anonymous limits

2: Which of these are NOT supported languages with client libraries for development on the Mirror API?

A.   Go

B.   Ruby

C.   All are supported

D.   Python

3: Why is it best to manage cards in a background service?

A.   Cards require long-running ownership to own them the entire time that they are published.

B.   None of these. It is NOT best to manage cards in a background service.

C.   Cards require exponentially increasing memory

D.   Cards require multiple owners

4: Each item in the user's timeline is represented as a "TimelineItem" ______ structure.

A.   YAML

B.   XML

C.   JSON

D.   SOAP

5: How do you turn on USB debugging for Glass?

A.   Settings > Device Info > Turn on debug

B.   Settings: Turn on debug > Device Info

C.   It cannot be turned on.

D.   Turn on debug > Device Info > Settings

6: What call do you use to capture video with the camera application?

A.   Start_CAMERA

B.   GO_CAMERA

C.   ACTIVATE_VIDEO

D.   startActivityForResult(android.content.Intent, int)

7: What should the result code match before capturing?

A.   OK_RESULT

B.   Nothing.

C.   RESULT

D.   RESULT_OK

8: In the context of Google Glass, what is an intent?

A.   An abstract description of a set of configurations.

B.   An abstract description of an operation already performed.

C.   A description of an operation to be isolated.

D.   An abstract description of an operation to be performed.

9: What does the class VoiceTriggers do?

A.   It allows apps to delete new items from the main voice menu.

B.   It allows apps to insert new items into the main voice menu.

C.   It allows apps to insert new items into the main text menu.

D.   It deletes apps which insert new items into the main video menu.

10: What is the constant value for the string. “ACTION_VOICE_TRIGGER”?

A.   glass.action.VOICE_TRIGGERcom.google.android

B.   App.com.google.android.glass.action

C.   VOICE_TRIGGER_com.google.android.glass.action.

D.   com.google.android.glass.action.VOICE_TRIGGER

11: Which is the correct URI to request a map on a timeline card?

A.   map://draw

B.   mirror/v1/render

C.   GET/mirror/v1/map

D.   glass://map

12: What patterns should be used for the sake of consistency across all Glassware?

A.   XU

B.   UX

C.   UT

D.   TU

13: What must happen to your card content when direct rendering is enabled?

A.   The card content will have to be rendered directly into a sandbox.

B.   The card content will have to be manually rendered.

C.   The card content will have to be rendered directly onto a surface.

D.   The card content must be backed up accordingly.

14: To use a built-in menu item, you only need to populate the _____ of each "menuItem."

A.   get

B.   menuDo

C.   action

D.   card_Slide

15: “THREE_LONG_PRESS” is an example of what?

A.   A movement.

B.   A trigger.

C.   An extension.

D.   A gesture.

16: To reduce the bandwidth needed for each request is to enable:

A.   HTTP lossless compression

B.   LZ compression

C.   PKZIP compression

D.   Gzip compression

17: When using a server-side flow when your application needs to access Google APIs on behalf of the user such as when the user is offline, you pass an authorization code that is used to acquire _______ tokens for your server.

A.   an HTTP and JSON

B.   an access and refresh

C.   entry

D.   listen

18: When a user triggers one of your custom menu items, a notification is sent to your service with the ______ populated

A.   menuItem.id

B.   iconURL

C.   tagMenu.user

D.   application/JSON

19: How is it best to manage live cards?

A.   In a background service.

B.   In the foreground.

C.   In a sandbox.

D.   With an external program.

20: If your firewall does not allow HTTP "PATCH" requests, then do _______ request and set the override header to PATCH, as shown below:

A.   an HTTP "PUT"

B.   an HTTP "POST"

C.   a SSL

D.   an XPath "PATCH"

21: If you have metadata that you want to send along with the data to upload, you can make a single ______ request

A.   multipart/related

B.   uploadType=metadata

C.   upload/single

D.   simple/metadata

22: When would you create your card with the help of a RemoteViews class?

A.   When your application only requires standard tools and constant patches.

B.   When your application only requires standard widgets and infrequent updates.

C.   When your application is broken.

D.   When your application only requires advanced widgets and constant updates.

23: When an item is being clicked and selected, what will notify you using the listener interfaces from AdapterView?

A.   CardScrollView

B.   ViewCardScroll

C.   CardScroll

D.   CardView

24: Users must enable your contact at the ______ site before they can share timeline items with your contact.

A.   MyGlass

B.   Glassware

C.   API

D.   Notebook

25: What is a gesture that “GestureDetector.BaseListener” would be listening for?

A.   PTA

B.   PAT

C.   TPA

D.   TAP

26: “CardScrollAdapter” should be used in conjunction with what?

A.   ViewCard to implement horizontally scrolling views.

B.   HorizontalCard to implement vertically scrolling views.

C.   ScrollCard to implement horizontally scrolling views.

D.   CardScrollView to implement horizontally scrolling views.

27: If you want additional text on a menu item, what public method do you use?

A.   setMenu

B.   setText

C.   setDescription

D.   setMethod

28: Which of the following is a protected method?

A.   dispachProtectEvent

B.   GenericEvent

C.   dispachEventProtection

D.   dispatchGenericFocusedEvent

29: A notification from the Mirror API is sent as a POST request to the subscribed endpoint containing a JSON:

A.   Validation code

B.   Tag

C.   Header request

D.   Request body

30: To subscribe to notifications in a production environment, you must provide a callback URL with a valid ______ to handle the notification.

A.   SSL certificate

B.   REST endpoint

C.   username

D.   JSON representation

31: What three parameters are included to measure a two-finger scroll on the touchpad?

A.   Displacement, delta, and friction.

B.   Displacement, gamma, and velocity.

C.   Engagement, delta, and velocity.

D.   Displacement, delta, and velocity.

32: True or False? The "Delete" and "Dismiss" menu items are functionally identical

A.   False

B.   True

33: What do clients define?

A.   Card contents.

B.   Client contents.

C.   Program contents.

D.   API contents.

34: To send updated data only for the specific fields that you’re changing, use the HTTP ______ verb.

A.   "access_grant"

B.   "PARTIAL"

C.   "PATCH"

D.   "UPDATE"

35: What does the throw, “IllegalArgumentException” mean?

A.   It is a recursive error.

B.   It is a system error.

C.   It means your target program is malfunctioning.

D.   It means that your target device is missing.

36: True or False? You do NOT need to send an authorization token with every request that is marked (AUTHENTICATED)

A.   True

B.   False

37: How many gestures are recognized per event sequence?

A.   Four

B.   Two

C.   Seven

D.   One.

38: When rendering a map on a timeline card, how many pixels wide will the following polyline be? polyline=8,ffff0000;47.6,-122.34,47.62,-122.40

A.   6

B.   47

C.   34

D.   8

39: Which of these is NOT a valid API method?

A.   list

B.   go

C.   delete

D.   get

40: To use a simple upload, make a POST or PUT request to the method's /upload URI and add the query parameter:

A.   "typeUpdate=media"

B.   "uploadType=image"

C.   "upload=simple"

D.   "uploadType=media"

41: What does a page curl in the top right corner of a timeline card denote?

A.   Map directions

B.   A bundle

C.   A video card

D.   A link to an outside source

42: What class do CardScrollView's child views come from?

A.   CardScrollMonitor

B.   CardScrollAdapter

C.   CardScrollCreator

D.   CardScrollGenerator

43: When working with a fields request parameter, use _____ to select a field "c" nested within "b".

A.   c:b

B.   c/b/a

C.   a/b/c

D.   c$b$a

A.   None of these are recommended

B.   "uploadType=massive"

C.   "uploadType=resumable"

D.   "uploadType=media"

45: Paged cards in a bundle all share the same "timelineId" and therefore have the same set of:

A.   Threads

B.   Endpoints

C.   Menu items

D.   Boundaries

46: True or False? The subscription proxy provided by Google is one of the most secure options and should be used in a production environment, as well as a development environment.

A.   False

B.   True

A.   Element.

B.   Gesture.

C.   Card.

D.   Action.

48: When creating a contact, you must specify a displayName and at least one ______, which Glass uses to display the contact information to the user.

A.   locationCoord

B.   nameID

C.   imageUrls

D.   pictureDisplay

49: What does a card scroller display?

A.   A key-value database.

B.   A scroller-value database.

C.   A glass-value database.

D.   A card-value database.

50: Your Glassware receives location updates every:

A.   15 seconds

B.   30 seconds

C.   10 minutes

D.   Hour