Online Exam Quiz

questionQuestion  1 to 30

What does the ?@IBAction? keyword indicate in Swift?

  • A function that handles an event
  • A variable that can be used in Interface Builder
  • A constant value
  • A function that handles touch events
Mark for review

Which class represents the app?s main event loop and high-level app behaviors?

  • UIApplication
  • UIAppController
  • AppDelegate
  • AppController
Mark for review

How do you handle asynchronous code in Swift?

  • async-await
  • promise-then
  • dispatch-async
  • queue-async
Mark for review

What is the purpose of the SceneDelegate in iOS 13 and later?

  • Manage app's life cycle
  • Handle background tasks
  • Manage scene-specific life cycle
  • Handle app settings
Mark for review

Which method is used to animate views in UIKit?

  • animate
  • performAnimation
  • UIView.animate
  • UIView.performAnimation
Mark for review

Which framework would you use for drawing 2D graphics in iOS?

  • Core Data
  • Core Graphics
  • Metal
  • SpriteKit
Mark for review

What is the primary method for creating animations in SwiftUI?

  • animate
  • performAnimation
  • withAnimation
  • Animation.perform
Mark for review

Mark for review

How do you handle errors in Swift?

  • try-catch
  • catch-try
  • do-try-catch
  • do-catch
Mark for review

Which of these is used to manage memory in Swift?

  • Automatic Reference Counting
  • Garbage Collection
  • Memory Management
  • Reference Counting
Mark for review

What is Core Animation used for in iOS?

  • Network operations
  • Data persistence
  • Animating views
  • Handling gestures
Mark for review

How do you create a computed property in Swift?

  • var computedProperty: Int { return 1 }
  • let computedProperty: Int { return 1 }
  • computed computedProperty: Int { return 1 }
  • def computedProperty: Int { return 1 }
Mark for review

What is the primary design pattern used in iOS development?

  • Singleton
  • Observer
  • MVC
  • MVVM
Mark for review

What is the entry point of an iOS application?

  • Main.storyboard
  • AppDelegate
  • ViewController
  • SceneDelegate
Mark for review

Which keyword is used to declare constants in Swift?

  • let
  • var
  • const
  • static
Mark for review

Which tool can be used for managing multiple Xcode versions?

  • xcode-select
  • xcode-manager
  • xcode-switcher
  • xcode-choose
Mark for review

Mark for review

Which method is used to dismiss a modal view controller in iOS?

  • dismiss
  • remove
  • pop
  • close
Mark for review

Mark for review

How do you declare an array in Swift?

  • var arr = [1, 2, 3]
  • var arr = {1, 2, 3}
  • var arr = (1, 2, 3)
  • var arr = [1; 2; 3]
Mark for review

What is the primary programming language used for iOS development?

  • Java
  • Kotlin
  • Swift
  • Python
Mark for review

What is the root class of most UIKit classes?

  • UIView
  • UIResponder
  • NSView
  • UIObject
Mark for review

Which tool is used for debugging and analyzing performance in Xcode?

  • Android Monitor
  • Instruments
  • Debug Console
  • Logcat
Mark for review

What does the '?' operator signify in Swift?

  • Optional
  • Constant
  • Variable
  • Closure
Mark for review

What is the name of Apple?s IDE for iOS development?

  • IntelliJ IDEA
  • Xcode
  • Android Studio
  • Visual Studio
Mark for review

What is the default layout model in UIKit?

  • Linear Layout
  • Grid Layout
  • Auto Layout
  • Constraint Layout
Mark for review

What is the purpose of the ?guard? statement in Swift?

  • Declare a variable
  • Ensure a condition is true
  • Handle errors
  • Create a loop
Mark for review

What keyword is used to create a new instance of a class in Swift?

  • create
  • new
  • instantiate
  • init
Mark for review

Mark for review

What is the purpose of the 'defer' statement in Swift?

  • Execute code before a loop
  • Execute code after a loop
  • Execute code just before the function returns
  • Execute code when an error occurs
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review