Unit 6: Web Services - Subjective Questions

INT372 — Iphone Application Programming • Practice Questions with Detailed Answers

20 questions

1

Define the MapKit framework. Explain its main features and role in an iPhone application.

2

Describe how to display a map in an iOS application using MKMapView.

3

Explain map regions, coordinates, and spans in MapKit. How can an application display a particular geographical area?

4

Distinguish between the major map display types supported by MKMapView.

5

Explain how an iOS application displays and tracks the user's current location on a map.

6

What are annotations in MapKit? Describe how to add and customize an annotation.

7

Explain the purpose of MKMapViewDelegate. Describe the delegate methods used to monitor changes in the visible map region.

8

Describe how MapKit can determine whether a map region change was caused by a user gesture or by application code.

9

What are overlays in MapKit? Compare annotations and overlays, and explain how a circular overlay is displayed.

10

Describe how to obtain directions and display a route between two locations using MapKit.

11

Explain geocoding and reverse geocoding in the context of displaying map information.

12

Define WKWebView and explain why it is preferred for displaying web content in modern iOS applications.

13

Describe how to create a WKWebView programmatically and load a remote web page.

14

Explain the different ways in which content can be loaded into a WKWebView.

15

What is WKNavigationDelegate? Explain how it is used to monitor web-page loading and handle navigation failures.

16

Describe how navigation requests can be accepted, cancelled, or redirected using WKNavigationDelegate.

17

Explain how Swift code can execute JavaScript in a WKWebView and receive the result.

18

Explain two-way communication between JavaScript and native Swift code using WKScriptMessageHandler.

19

Discuss security, privacy, and performance considerations when using WKWebView in an iPhone application.

20

Design an iPhone application that combines WKWebView and MapKit so that selecting a location in web content displays it on a native map. Explain the data flow and implementation.