Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 5 MCQs iPhone Project Templates

INT372 — Iphone Application Programming 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Using navigation controllers Easy

    What is the main purpose of a UINavigationController in an iPhone application?

  2. Question 2 of 60 Using navigation controllers Easy

    Which operation displays a new view controller on a navigation stack?

  3. Question 3 of 60 Using navigation controllers Easy

    What usually happens when the Back button is tapped in a navigation controller?

  4. Question 4 of 60 Concept of auto-layout Easy

    What does Auto Layout use to determine the position and size of interface elements?

  5. Question 5 of 60 Concept of auto-layout Easy

    What is a major benefit of using Auto Layout?

  6. Question 6 of 60 Concept of auto-layout Easy

    Which constraint controls the horizontal distance between two views?

  7. Question 7 of 60 Playing audio and video files Easy

    Which class is commonly used to play a local audio file in an iOS application?

  8. Question 8 of 60 Playing audio and video files Easy

    Which framework provides common classes for audio and video playback in iOS?

  9. Question 9 of 60 Playing audio and video files Easy

    Which class can be used to play both local and streamed media?

  10. Question 10 of 60 Implementing UICollectionView Easy

    What is the primary use of a UICollectionView?

  11. Question 11 of 60 Implementing UICollectionView Easy

    What is an individual item in a collection view usually represented by?

  12. Question 12 of 60 Implementing UICollectionView Easy

    Which object provides the data displayed by a collection view?

  13. Question 13 of 60 Implementing UIToolbar Easy

    What is the main purpose of a UIToolbar?

  14. Question 14 of 60 Implementing UIToolbar Easy

    Which objects are commonly placed inside a UIToolbar?

  15. Question 15 of 60 UITabBar in applications Easy

    What is the purpose of a tab bar in an iPhone application?

  16. Question 16 of 60 UITabBar in applications Easy

    Which controller is commonly used to manage a tab-based interface?

  17. Question 17 of 60 UITabBar in applications Easy

    What happens when a user selects a different tab bar item?

  18. Question 18 of 60 Database using SQLite Easy

    What type of database is SQLite?

  19. Question 19 of 60 Database using SQLite Easy

    Which SQL command is used to retrieve records from an SQLite table?

  20. Question 20 of 60 Database using SQLite Easy

    Which SQL command adds a new record to an SQLite table?

  21. Question 21 of 60 Using navigation controllers Medium

    A view controller must open a detail screen and display a Back button automatically. Which approach should be used?

  22. Question 22 of 60 Using navigation controllers Medium

    An application has pushed three view controllers: Home, Products, and Details. Which call returns directly from Details to Home?

  23. Question 23 of 60 Using navigation controllers Medium

    A navigation controller should begin with HomeViewController as its first screen. Which initialization is appropriate?

  24. Question 24 of 60 Concept of auto-layout Medium

    A button must remain 20 points from the trailing edge of its container in both portrait and landscape orientations. Which constraint best achieves this?

  25. Question 25 of 60 Concept of auto-layout Medium

    A label with variable text should expand horizontally before a nearby button is compressed. Which Auto Layout setting should be adjusted?

  26. Question 26 of 60 Concept of auto-layout Medium

    A programmatically created view ignores its anchor constraints and keeps an autoresizing-mask-based frame. What change is required?

  27. Question 27 of 60 Playing audio and video files Medium

    An application needs to play a short local audio file and provide direct controls for play, pause, and volume. Which class is most appropriate?

  28. Question 28 of 60 Playing audio and video files Medium

    A developer creates an AVAudioPlayer for a local file, but no sound is produced because playback was never initialized. Which sequence should be used?

  29. Question 29 of 60 Playing audio and video files Medium

    An application must stream a remote video and display standard playback controls. Which combination is appropriate?

  30. Question 30 of 60 Implementing UICollectionView Medium

    A collection view cell appears with old content while scrolling because cells are reused. Where should the cell's labels and images normally be assigned?

  31. Question 31 of 60 Implementing UICollectionView Medium

    After inserting an item into a collection view's data source, which update correctly keeps the interface synchronized?

  32. Question 32 of 60 Implementing UICollectionView Medium

    A collection view uses UICollectionViewFlowLayout. Which delegate method can provide a different size for each item?

  33. Question 33 of 60 Implementing UIToolbar Medium

    A toolbar needs Save aligned left and Delete aligned right. Which item should be placed between the two buttons?

  34. Question 34 of 60 Implementing UIToolbar Medium

    A UIToolbar has been created programmatically with three bar button items. Which property should receive those items?

  35. Question 35 of 60 UITabBar in applications Medium

    An application has Home, Search, and Settings sections, each requiring its own navigation history. What hierarchy is most appropriate?

  36. Question 36 of 60 UITabBar in applications Medium

    A developer wants the Settings tab to be selected when the application first displays its three tabs. Which property should be set to 2?

  37. Question 37 of 60 UITabBar in applications Medium

    Which configuration adds a visible title and system icon to a view controller displayed by a tab bar controller?

  38. Question 38 of 60 Database using SQLite Medium

    A query must find a user by an email address supplied through a text field. Which approach best reduces the risk of SQL injection?

  39. Question 39 of 60 Database using SQLite Medium

    Several related SQLite updates must either all succeed or all be undone. Which SQL commands should surround the updates?

  40. Question 40 of 60 Database using SQLite Medium

    An SQLite query has been prepared with sqlite3_prepare_v2. Which return value from sqlite3_step indicates that a row of result data is available?

  41. Question 41 of 60 Using navigation controllers Hard

    A view controller pushed onto a UINavigationController needs to animate a custom subview alongside both interactive and noninteractive pop transitions. Which approach correctly keeps the animation synchronized and handles cancellation?

  42. Question 42 of 60 Using navigation controllers Hard

    After assigning a custom object as a navigation controller's interactivePopGestureRecognizer.delegate, the edge-swipe gesture intermittently stops working. What is the most robust correction?

  43. Question 43 of 60 Using navigation controllers Hard

    A navigation controller is restoring a deep stack [A, B, C] without animation. The current stack is [A, X]. Which operation replaces the entire stack atomically while preserving normal containment callbacks?

  44. Question 44 of 60 Concept of auto-layout Hard

    A horizontal stack contains a label and a text field. Both have enough constraints to determine their positions. When space becomes limited, the label must remain at intrinsic width and the text field should shrink first. Which priority change directly expresses this rule?

  45. Question 45 of 60 Concept of auto-layout Hard

    A scroll view fills its parent. Its content view is constrained on all four edges to contentLayoutGuide and has equal width to frameLayoutGuide. The content view has no explicit height, but its vertically arranged subviews form an unbroken top-to-bottom constraint chain. What behavior results?

  46. Question 46 of 60 Concept of auto-layout Hard

    A view's horizontal position and width are fully determined, but its vertical constraints specify only a fixed height and centerY. Interface Builder still reports an ambiguous layout at runtime. Which statement is correct?

  47. Question 47 of 60 Playing audio and video files Hard

    A spoken-audio app should pause when an interruption begins and resume only if playback was active beforehand and the interruption options indicate that resumption is appropriate. Which design is correct?

  48. Question 48 of 60 Playing audio and video files Hard

    An app loops a local video by observing AVPlayerItem.didPlayToEndTimeNotification. It later replaces player.currentItem, but looping stops. What is the most likely cause?

  49. Question 49 of 60 Playing audio and video files Hard

    A music app must continue playing when the screen locks and should mix with audio from another app at a reduced relative volume. Which audio-session configuration best matches the requirement?

  50. Question 50 of 60 Implementing UICollectionView Hard

    A collection view currently displays 5 items. Inside performBatchUpdates, the code deletes item 1 and inserts a new item at index 4. What must the data source report when UIKit validates the completed update?

  51. Question 51 of 60 Implementing UICollectionView Hard

    A diffable data source snapshot contains two visually identical messages with the same database identifier. Applying it raises an exception. What is the correct model-level fix?

  52. Question 52 of 60 Implementing UICollectionView Hard

    A self-sizing collection-view cell uses Auto Layout, but its height stays at the estimated value even though multiline text needs more space. Which condition is essential inside the cell?

  53. Question 53 of 60 UIToolbar Hard

    A toolbar contains flexible space between two leading actions and one trailing action. When the toolbar width changes, which item absorbs the extra horizontal space?

  54. Question 54 of 60 UIToolbar Hard

    A screen is inside a navigation controller whose built-in toolbar is used. The toolbar must show items specific to the visible child controller and update correctly during pushes and pops. Where should those items be configured?

  55. Question 55 of 60 UITabBar in applications Hard

    A UITabBarController has five child controllers. The user selects the fifth tab, which appears under the system-generated More interface. Which value should application logic use to identify the selected child reliably?

  56. Question 56 of 60 UITabBar in applications Hard

    Each tab contains its own navigation controller. After switching tabs, the app unexpectedly resets the previously selected tab to its root screen. Which architecture preserves independent navigation history?

  57. Question 57 of 60 UITabBar in applications Hard

    The current tab should remain selected when a user taps its tab bar item again, but the tab's navigation stack should pop to root. Which delegate decision is best suited to initiate this behavior?

  58. Question 58 of 60 Database using SQLite Hard

    An SQLite table stores bank balances. A transfer performs one debit and one credit. The process must never commit only one of them, including when the credit violates a constraint. Which sequence provides the required atomicity?

  59. Question 59 of 60 Database using SQLite Hard

    A prepared SQLite query uses WHERE nickname = ?. The application binds SQL NULL because the user has no nickname, but rows whose nickname is NULL are not returned. Why?

  60. Question 60 of 60 Database using SQLite Hard

    Multiple background tasks share one SQLite connection opened with serialized threading support. Statements are protected by a serial queue, but a result row's text pointer is stored and read after sqlite3_step is called again. What is the defect?

That's unit 5

Answer a few questions and your score shows up here.