Unit 4: TableViews - Subjective Questions

INT372 — Iphone Application Programming • Practice Questions with Detailed Answers

20 questions

1

Define UITableView and explain its role in an iPhone application.

2

Explain the data source and delegate mechanisms of a UITableView.

3

Describe the steps required to implement a simple table view that displays a list of programming languages.

4

Explain the purpose of IndexPath in a table view. How are its section and row properties used?

5

What is table-view cell reuse? Explain why dequeueReusableCell(withIdentifier:for:) is important.

6

Distinguish between plain and grouped table-view styles.

7

Describe how to organize and display data in multiple grouped sections of a table view.

8

Explain how section headers and footers can be added to a UITableView using text.

9

How can a custom view containing a label and an image be used as a table section header?

10

Explain how an image can be displayed in a standard UITableViewCell.

11

Describe the process of creating and using a custom UITableViewCell containing an image, a title, and a subtitle.

12

Compare the standard cell styles provided by UITableViewCell.

13

What is an indexed table view? Explain how to add a section index for alphabetical data.

14

Explain how to detect the row selected by the user and display the selected item.

15

Describe how to navigate from a selected table row to another view controller using a storyboard segue.

16

Explain how to navigate programmatically from a table view to a detail view and pass the selected item.

17

Differentiate between a table's section header and footer, and its tableHeaderView and tableFooterView.

18

Explain how dynamic row height can be implemented for custom table-view cells.

19

Discuss the important issues that must be considered when customizing reusable table-view cells.

20

Design a table-view screen that uses grouped sections, custom cells, images, headers, row selection, and navigation to a detail screen. Explain the complete flow.