MCQs > IT & Programming > Google Glass Programming MCQs > Basic Google Glass Programming MCQs

Basic Google Glass Programming MCQ

1. With updates that use the HTTP ______ verb, the request fails if you don't supply required parameters, and it clears previously set data if you don't supply optional parameters.

Answer

Correct Answer: "PUT"

Note: This Question is unanswered, help us to find answer for this one

2. Can the setDescription attribute be written in XML?

Answer

Correct Answer: No.

Note: This Question is unanswered, help us to find answer for this one

3. If your application needs a new refresh token it must send a request with the _______ query parameter set to "force".

Answer

Correct Answer: "approval_prompt"

Note: This Question is unanswered, help us to find answer for this one

4. Which of these are NOT a provided method to design timeline cards with the Mirror API?

Answer

Correct Answer: Use Google's provided image editor

Note: This Question is unanswered, help us to find answer for this one

5. Your Glassware receives location updates every:

Answer

Correct Answer: 10 minutes

Note: This Question is unanswered, help us to find answer for this one

6. What does a card scroller display?

Answer

Correct Answer: A key-value database.

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: imageUrls

Note: This Question is unanswered, help us to find answer for this one

8. What class is recommended for creating CardScrollAdapter's views?

Answer

Correct Answer: Card.

Note: This Question is unanswered, help us to find answer for this one

9. 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.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Menu items

Note: This Question is unanswered, help us to find answer for this one

11. Which is the recommended "uploadType" request parameter for larger files?

Answer

Correct Answer: "uploadType=resumable"

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: a/b/c

Note: This Question is unanswered, help us to find answer for this one

13. What class do CardScrollView's child views come from?

Answer

Correct Answer: CardScrollAdapter

Note: This Question is unanswered, help us to find answer for this one

14. What does a page curl in the top right corner of a timeline card denote?

Answer

Correct Answer: A bundle

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: "uploadType=media"

Note: This Question is unanswered, help us to find answer for this one

16. Which of these is NOT a valid API method?

Answer

Correct Answer: go

Note: This Question is unanswered, help us to find answer for this one

17. 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

Answer

Correct Answer: 8

Note: This Question is unanswered, help us to find answer for this one

18. How many gestures are recognized per event sequence?

Answer

Correct Answer: One.

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

20. What does the throw, “IllegalArgumentException” mean?

Answer

Correct Answer: It means that your target device is missing.

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: "PATCH"

Note: This Question is unanswered, help us to find answer for this one

22. What do clients define?

Answer

Correct Answer: Card contents.

Note: This Question is unanswered, help us to find answer for this one

23. True or False? The "Delete" and "Dismiss" menu items are functionally identical

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Displacement, delta, and velocity.

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Request body

Note: This Question is unanswered, help us to find answer for this one

26. Which of the following is a protected method?

Answer

Correct Answer: dispatchGenericFocusedEvent

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: setDescription

Note: This Question is unanswered, help us to find answer for this one

28. “CardScrollAdapter” should be used in conjunction with what?

Answer

Correct Answer: CardScrollView to implement horizontally scrolling views.

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: TAP

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: MyGlass

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: CardScrollView

Note: This Question is unanswered, help us to find answer for this one

32. When would you create your card with the help of a RemoteViews class?

Answer

Correct Answer: When your application only requires standard widgets and infrequent updates.

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: an HTTP "POST"

Note: This Question is unanswered, help us to find answer for this one

34. How is it best to manage live cards?

Answer

Correct Answer: In a background service.

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: menuItem.id

Note: This Question is unanswered, help us to find answer for this one

36. 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.

Answer

Correct Answer: an access and refresh

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: Gzip compression

Note: This Question is unanswered, help us to find answer for this one

38. “THREE_LONG_PRESS” is an example of what?

Answer

Correct Answer: A gesture.

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: action

Note: This Question is unanswered, help us to find answer for this one

40. What must happen to your card content when direct rendering is enabled?

Answer

Correct Answer: The card content will have to be rendered directly onto a surface.

Note: This Question is unanswered, help us to find answer for this one

41. What patterns should be used for the sake of consistency across all Glassware?

Answer

Correct Answer: UX

Note: This Question is unanswered, help us to find answer for this one

42. Which is the correct URI to request a map on a timeline card?

Answer

Correct Answer: glass://map

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: com.google.android.glass.action.VOICE_TRIGGER

Note: This Question is unanswered, help us to find answer for this one

44. What does the class VoiceTriggers do?

Answer

Correct Answer: It allows apps to insert new items into the main voice menu.

Note: This Question is unanswered, help us to find answer for this one

45. In the context of Google Glass, what is an intent?

Answer

Correct Answer: An abstract description of an operation to be performed.

Note: This Question is unanswered, help us to find answer for this one

46. What should the result code match before capturing?

Answer

Correct Answer: RESULT_OK

Note: This Question is unanswered, help us to find answer for this one

47. What call do you use to capture video with the camera application?

Answer

Correct Answer: startActivityForResult(android.content.Intent, int)

Note: This Question is unanswered, help us to find answer for this one

48. How do you turn on USB debugging for Glass?

Answer

Correct Answer: Settings > Device Info > Turn on debug

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: JSON

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: All are supported

Note: This Question is unanswered, help us to find answer for this one

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

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one