MCQs > IT & Programming > IOS Technical Test MCQs > Basic iOS Technical Test MCQs

Basic iOS Technical Test MCQ

1. Which of the following cryptographic algorithms are supported in iOS1O or higher?

Answer

Correct Answer: SHA-1
SHA - 256
SHA-2

Note: This question has more than 1 correct answers

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

2. Which of the following statements are correct about Apple Pay Buttons?

Answer

Correct Answer: Apple Pay buttons can be used to invoke other views as well.
For portrait and landscape formats. same style of the buttons should be used.
Payment buttons must always invoke the Apple Pay payment sheet.

Note: This question has more than 1 correct answers

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

3. With respect to the DispatchSource.ProcessEvent event in Grand Central Dispatch (GCD), which of the following options is/are the valid instance method(s)?

Answer

Correct Answer: contains
formUnion
insert

Note: This question has more than 1 correct answers

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

4. We have two objects: OBJA and OBJB. OBJB points to another object OBJX. Which of the following test cases are correct related to these 3 pointers?

Answer

Correct Answer: If object OBJB destroys OBJX, then OBJA will become a dangling pointer.
The dangling pointer in option C can cause the related app to crash.

Note: This question has more than 1 correct answers

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

5. Which of the following statements are correct about NSManagedObjectContext?

Answer

Correct Answer: iOS 10 onwards can now fetch and fault concurrently with other peer NSManagedObjectContext instances.
Nested NSManagedObjectContext instances still serialize requests against their parent context.

Note: This question has more than 1 correct answers

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

6. Which of the following classes are deprecated in Sirikit?

Answer

Correct Answer: INlntentResponseParameter

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

7. Which of the following options are correct regarding automatic reference counting (ARC)?

Answer

Correct Answer: The retain and release messages can be still called directly while using ARC.
It may insert temporary variables for efficient memory management.

Note: This question has more than 1 correct answers

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

8. Which of the following functions of the AVCaptureSession class manage the running state of a capture device?

Answer

Correct Answer: startRunning ()
stopRunning ()

Note: This question has more than 1 correct answers

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

9. In iOS10, which of the following are the new behavioral changes in Core data?

Answer

Correct Answer: The performBlockAndWait implicitly includes an autorelease pool around each block.
NSManagedObjectContext defaults to a nil NSUndoManager on macOS. It is always defaulted to nil on ios.

Note: This question has more than 1 correct answers

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

10. Which of the following statements are correct about background app modes?

Answer

Correct Answer: Audio and AirPlay modes allow an app to play audio content or record audio in the background.
Location updates mode allows an app to inform the device users of their location.

Note: This question has more than 1 correct answers

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

11. Which of the following stages of an ln-App purchase are handled by the App Store?

Answer

Correct Answer: It provides product information.
It makes payment requests.
It processes payment requests.

Note: This question has more than 1 correct answers

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

12. Apple Pay JavaScript API is supported on which of the following?

Answer

Correct Answer: Devices having iOS 10 or higher.
Devices having macOS 10.12 or higher.
Safari Desktop browser.
Chrome Desktop browser.

Note: This question has more than 1 correct answers

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

13. Which of the following Options are the three components of App Thinning?

Answer

Correct Answer: Slicing
Bitcode
On demand Resources

Note: This question has more than 1 correct answers

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

14. Which of the following classes have DispatchObject as the base class?

Answer

Correct Answer: DispatchQueue
DispatchSource

Note: This question has more than 1 correct answers

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

15. In iOS 10, which of the following options are correct about pasteboard?

Answer

Correct Answer: The Find pasteboard is unavailable.
The new Handoff feature allows the general pasteboard contents to automatically transfer between devices.
The UlPasteboard class supports the Clipboard feature, which lets users copy and paste between devices.

Note: This question has more than 1 correct answers

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

16. Which of the following Accessing Action attributes belong to the CXAction class?

Answer

Correct Answer: uuid
callUUID

Note: This question has more than 1 correct answers

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

17. Which of the following methods of the UlAppIication objects are called by an app that requires additional time for the completion of a task ?

Answer

Correct Answer: beginBackgroundTaskWithName:expirationHandler
endBackgroundTask
applicationDidEnterBackground

Note: This question has more than 1 correct answers

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

18. In ios10, which of the following statements are correct about Xcode auto generation of classes?

Answer

Correct Answer: Xcode now supports automatic generation of NSFetchRequest subclasses in the modeling tool.
In the entity inspector of Xcode. category/extension generates a class extension in a file named such as CIassName+CoreDataGeneratedProperties.
The generated f‌iles are placed in DerivedData, and are indexed by Xcode for faster searching and commandline locating.

Note: This question has more than 1 correct answers

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

19. In iOS, which of the following options are correct regarding slicing?

Answer

Correct Answer: It is a process of creating and delivering variants of an app.
It is an intermediate representation of a compiled program.

Note: This question has more than 1 correct answers

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

20. Which of the following statements are correct about NSFetchedResuItsController?

Answer

Correct Answer: The result type for an NSFetchRequest is NSFetchRequestResult.
When an NSFetchedResultsController object is initialized, the required parameters are: a fetch request and a managed object context.

Note: This question has more than 1 correct answers

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

21. In ApplePay JS, which of the following are correct about the ApplePayPaymentRequest data type?

Answer

Correct Answer: It contains the information about a request for payment and its payment processing capabilities.
It contains the information about the payment amount.
It contains the information about the shipping address.

Note: This question has more than 1 correct answers

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

22. Which of the following App Extension points are available both in iOS and macOS?

Answer

Correct Answer: Action
Content Blocker
Photo Editing

Note: This question has more than 1 correct answers

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

23. Which of the following statement are correct about the NSManagedObject class?

Answer

Correct Answer: It has new methods: entity() and fetchRequest()
It uses initfcontext: NSManagedObjectContext) to initiate the class object.

Note: This question has more than 1 correct answers

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

24. Which of the following options are correct about the Operation class, NSOperation?

Answer

Correct Answer: This class is used to execute one or more block objects concurrently.
This class is used to def‌ine custom operation objects.
Subclassing this class enables full control over the implementation of operations.

Note: This question has more than 1 correct answers

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

25. The iMessage app is used to:

Answer

Correct Answer: showcase a custom user interface inside the Messages app using the MSMessagesAppViewController class.
create a custom or dynamic sticker browser using the MSStickerBrowserViewControlIer class. insert text, stickers or media f‌iles into the Messages app‘s input f‌ield using the MSMessage Class.
update interactive messages (e.g. creating games or collaborative apps) using the MSSession class.

Note: This question has more than 1 correct answers

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

26. In iOS 10, which of the following are the new methods introduced in the NSManagedObject class?

Answer

Correct Answer: func ChangedValuesForCurrentEven ()
func awake(fromSnapshotEvents: NSSnapshotEventType)
func entity()
func fetchRequestO

Note: This question has more than 1 correct answers

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

27. Which of the following statements are correct about NSFetchRequest?

Answer

Correct Answer: In iOS10. it is now a parameterized type based on a new NSFetchRequestResult protocol.
NSFetchRequest also offers a new method executeo. and directs the NSManagedObjectContext to execute a fetch request.
The result type for an NSFetchRequest is NSFetchRequestResult.

Note: This question has more than 1 correct answers

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

28. Which of the following App Transport Security dictionary keys are of the type, Boolean?

Answer

Correct Answer: [7| NSAIlowsArbitraryLoadslnWebContent

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

29. Which of the following are the App Transport Security (ATS) exception domains dictionary keys (not primary keys)?

Answer

Correct Answer: NSAllowsLocalNetworking
NSlncludesSubdomains
NSRequiresCertificateTransparency

Note: This question has more than 1 correct answers

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

30. Which of the following classes provides input data to a capture session?

Answer

Correct Answer: AVCapturelnput

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

31. To prevent memory leakage, iOS uses a policy based on a number, which is maintained by every reference object. What is it called?

Answer

Correct Answer: Retain Count

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

32. which of the following class objects is used to manage capture activity and coordinates the flow of data from input devices to capture outputs?

Answer

Correct Answer: AVCaptureSession

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

33. In SiriKit, which of the following INSearchCallHistorylntent class instance properties is deprecated in iOS1O onwards?

Answer

Correct Answer: callType

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

34. Apple Pay uses Passkit framework. Which of the following classes in Passkit framework is used to store information about Apple Pay Cards?

Answer

Correct Answer: PKPayment

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

35. You want to pay for a gym subscription for 10 months. The payment is to be made via Apple Pay. It is a type of:

Answer

Correct Answer: Fixed Subscription.

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

36. You want to pre-order an item from an online store. The payment for the pre-order is to be done using Apple Pay. This scenario comes under which of the following transaction types?

Answer

Correct Answer: Authorization & delayed capture.

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

37. Core Data now supports pinning an NSManagedObjectContext to a specific query generation. Which of the following classes iS used to specify a pinning behavior or a specific version from another context?

Answer

Correct Answer: NSOueryGenerationToken

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

38. In the AVFoundation framework, which of the following classes contains per-pixel distance or disparity information, while capturing images using iphone 7 plus?

Answer

Correct Answer: AVDepthData

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

39. In the Notif‌icationCenter framework, the NCWidgetController class is inherited from the:

Answer

Correct Answer: NSObject class.

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

40. The lNVocabulary class in SiriKit is inherited from which of the following classes?

Answer

Correct Answer: NSObject

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

41. Which of the following classes is used to specify a notification's content and the condition that triggers its delivery?

Answer

Correct Answer: UNNotif‌icationRequest

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

42. In the AVFoundation framework, which of the following classes has been deprecated in iOS 10?

Answer

Correct Answer: AVCaptureStilllmageOutput

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

43. Which of the following is a new class in the AVFoundation framework, which is used to provide a modern interface for capture workflows related to still photography?

Answer

Correct Answer: AVCapturePhoto

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

44. Which of the following is a new key for the info.plist file introduced in iOS 10?

Answer

Correct Answer: NSAIIowsArbitraryLoadsanebContent

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

45. Which of the following Trigger class objects indicates that a notif‌ication was sent by the Apple Push Notification Service?

Answer

Correct Answer: UNPushNotif‌icationTrigger

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

46. Which of the following SiriKit components is a type of protocol?

Answer

Correct Answer: INlntentHandlerProviding

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

47. Which of the following CodeDate classes maintains a small connection pool for allowing concurrent database operations for NSSOLiteStoreType persistent stores?

Answer

Correct Answer: NSPersistentStoreCoordinator

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

48. Which of the following events of the Apple Pay JS framework defines the attributes contained by the onshippingmethodselected callback function?

Answer

Correct Answer: ApplePayShippingMethodSelectedEvent

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

49. Which of the following is an object that manages a memory—based data buffer in Grand Central Dispatch (GCD)?

Answer

Correct Answer: DispatchData

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

50. Which of the following classes manages notif‌ication-related activities for an app or app extension?

Answer

Correct Answer: UNUserNotificationCenter

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

51. Which of the following ApplePay JS Data Types showcases the outcome of authorizing a payment request and contains encrypted payment information?

Answer

Correct Answer: ApplePayPayment

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

52. Which of the following Messages framework classes is used to display a dynamically-generated list of stickers. which is capable of drag-and-drop functionality?

Answer

Correct Answer: MSStickerBrowserView

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

53. Which of the following classes handles the editable content of a notification?

Answer

Correct Answer: UNMutableNotif‌icationContent

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

54. Which of the following core extensions of Intents framework represents the entry point for an Intents extension?

Answer

Correct Answer: INExtension

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

55. Which of the following classes handles the communication between a user and an app involving the intent object?

Answer

Correct Answer: lNInteraction

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

56. Sliced apps are supported by devices running:

Answer

Correct Answer: iOS 9.0 and higher.

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

57. Which of the following App Extension points handle tasks related to supporting Siri integration with an iOS App?

Answer

Correct Answer: lntents (iOS)

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

58. Which of the following protocols defines the methods to handle the displaying and editing of content in the Today Widget?

Answer

Correct Answer: NCWidgetListViewDelegate

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

59. Which of the following primary ATS keys disables all ATS restrictions for media. which an app loads using the AV Foundation framework?

Answer

Correct Answer: NSAllowsArbitraryLoadsForMedia

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

60. Which of the following functions participates in the preparation of a session, using the SecureTransport API?

Answer

Correct Answer: SSLCreateContext

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

61. Which of the following functions is used to provide the largest data packet, which the operating system guarantees, can be sent without fragmentation?

Answer

Correct Answer: SSLGetDatagramWriteSize

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

62.

Which of the given options is the correct sequence of steps for creating an object that supports background downloading?

1: Create the conf‌iguration object using the backgroundSessionConf‌igurationWithldentifier method of NSURLSessionConf‌iguration.


2: Set the discretionary property of the configuration object to YES, in case the app starts the transfer while in foreground.


3: Set the value of the conf‌iguration object's sessionSendsLaunchEvents property to YES.


4: Use the conf‌iguration object to create your NSURLSession object.


Answer

Correct Answer:

1324 


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

63. Grand Central Dispatch (GCD) provides functions to access several common dispatch queues in an application. Which of the following functions, when called from inside a block object, returns the queue, to which the block was originally submitted for queuing?

Answer

Correct Answer: dispatch_get_current_queue

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

64. Which of the following classes defines an object, which specifies if the widget has content to display?

Answer

Correct Answer: NCWidgetController

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

65. Which of the following Messages framework classes is used to create and update messages?

Answer

Correct Answer: MSSession

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

66. Which of the following classes is used to find and monitor the available capture devices on a system (iphone/ipad)?

Answer

Correct Answer: AVCaptureDevice.Format.FrameRateRange

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

67. Which of the following class objects is used to perform certain tasks, in response of a delivered notification?

Answer

Correct Answer: UNNotif‌icationAction

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

68. Which of the following methods manages the execution of work items in a queue?

Answer

Correct Answer: DispatchQueue

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

69. The INGetCarLockStatuslntent class in SiriKit is inherited from which class?

Answer

Correct Answer: lNlntent

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

70. Which of the following protocols is used to present custom content in the Siri and Maps interfaces?

Answer

Correct Answer: INUlHostedViewControlIing

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

71. In iOS1O CodeData, NSPersistentContainer uses a new class to describe the conf‌iguration information to pass to NSPersistentStoreCoordinator. while adding a persistent store. That class is:

Answer

Correct Answer: NSPersistentStoreDescription

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

72. In Sirikit, which of the following protocols is used to get the current status of a car

Answer

Correct Answer: INGetCarLockStatusIntentHandling

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

73. Which of the following classes in the CallKit framework declares a programmatic interface for objects that represent a telephony action?

Answer

Correct Answer: CXAction

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

74. Which of the following types of queues is provided and managed by Grand Central Dispatch (GCD), using which, an app can submit tasks, in the form of block objects?

Answer

Correct Answer: FIFO

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

75. Which of the following VOIP protocols manages the searching of a user

Answer

Correct Answer: lNSearchCallHistorylntentHandling

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

76.

If you want to rotate an object using Core Animation, in radians, in the z axis, which of the following key paths of a layer’s CATransform3D matrix will you use?

Answer

Correct Answer: rotation

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

77.

What happens if Xcode is not able to find a file or folder at the path defined for it in the project?

Answer

Correct Answer: Xcode displays the item in red in the project window.

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

78.

Which of the following statements is correct regarding functions fopen and open in generic C?

Answer

Correct Answer: open returns an error if the file does exist.

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

79.

What is the function of the Code Sense feature in Xcode?

Answer

Correct Answer: Code Sense helps in switching between different circumstances such as development or release.

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

80.

If the code is written using the Core Foundation and Foundation macros, the simplest way to create strings files is:

Answer

Correct Answer: By using the genstrings command-line tool.

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

81.

What method definition do if the value of the accessed counter is 0?     - (void)discardContentIfPossible

Answer

Correct Answer: It will discard the contents of the object because the counter is 0.

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

82.

Which Core Audio Service framework is used to record, play back, pause, loop, and synchronize audio in iPhone OS 4.0?

Answer

Correct Answer: Audio Queue

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

83.

What will the hitTest: object of the CALayer class return if the point lies outside the receiver's bounds rectangle?

Answer

Correct Answer: nil

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

84.

Apple's implementation of HTTP Live Streaming supports DRM (Digital rights management).

Answer

Correct Answer: False

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

85.

You want to animate a layer's opacity to 0 while moving it further away in the layer. Which of the following code snippets will you use?

Answer

Correct Answer: theLayer.opacity=0.0; theLayer.zPosition= -100;

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

86.

Which  properties of the UIImage class are not in use after iOS 4.2?

Answer

Correct Answer: leftCapWidth

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

87.

Which part of the HTTP Live Streaming is responsible for taking input streams of media and encoding them digitally?

Answer

Correct Answer: Server component

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

88.

Which defined types is a dynamic object type in Objective-C?

Answer

Correct Answer: id

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

89.

Which of the following terms are related to Memory Management in Objective-C?

Answer

Correct Answer: alloc

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

90.

Which of the following is NOT a parameter of function SecKeyDecrypt
of the class SecCertificate in iPhone OS 4.0?

Answer

Correct Answer: certificate

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

91.

Which of the following properties of ADBannerView class are readonly?

Answer

Correct Answer: bannerLoaded

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

92.

Which of the following is NOT the default behavior of an audio
session in iPhone OS?

Answer

Correct Answer: Playback is disabled and recording is enabled.

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

93.

Which Audio Toolbox framework file defines an interface for reading
and writing audio data in files in iPhone OS 4.0?

Answer

Correct Answer: AudioFile.h

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

94.

What is the functionality of the beta parameter of function
catlas_caxpby in class cblas?

Answer

Correct Answer: Scaling factor for Y

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

95.

The genstrings tool can parse _____.

Answer

Correct Answer: C files with .c filename extension.

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

96.

What is the data type of extendStart parameter of function
CGShadingCreateAxial of class CGShading?

Answer

Correct Answer: bool

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

97.

Using the following function, what will you get from the default
database?

NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
NSArray *languages = [defs objectForKey:@"AppleLanguages"];
NSString *preferredLang = [languages objectAtIndex:0];

Answer

Correct Answer: The list of preferred languages.

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

98.

Which symbol is used as a syntactic marker for blocks of code in
iPhone OS 4.0?

Answer

Correct Answer: ^

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

99.

Which of the following need to be modified while localizing an
application?

Answer

Correct Answer: Nib files (windows, views, menus)

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

100.

Which of the following statements regarding Objective-C are correct?

Answer

Correct Answer: In Objective-C, the keyword for NULL is nil.

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

101.

Which of the following reasons will return a value of NO for the
instance method startVideoCapture of class
UIImagePickerController?

Answer

Correct Answer: All of the above

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

102.

What is the return value of SecRandomCopyBytes function of
SecRandom class in iPhone OS 4.0 if the function completes
successfully?

Answer

Correct Answer: 0

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

103.

What is the datatype of the parameter inValidBitsPerChannel for the
function CalculateLPCMFlags in CoreAudioTypes class in iPhone OS
4.0?

Answer

Correct Answer: UInt32

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

104.

Which of the following directives are used to declare and define
classes, categories, and protocols?

Answer

Correct Answer: @interface

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

105.

What is the value type of UTTypeConformsTo key of uniform type
identifier for iPhone OS 4.0?

Answer

Correct Answer: array of strings

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

106.

Which of the following methods is used for the purpose of creating
your view objects in memory management?

Answer

Correct Answer: loadView

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

107.

While opening Nib files, which of the following should not be ignored?

Answer

Correct Answer: Objects in a Nib file typically have connections between them that should not be broken.

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

108.

Which of the following OpenGL ES objects is a simple 2D graphics
image in a specified format?

Answer

Correct Answer: renderbuffer

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

109.

When you send an object a retain message in Memory Management
using Objective-C, what will happen?

Answer

Correct Answer: Its retain count is incremented by 1.

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

110.

Consider the following code with 2 alternatives of vector operator for
OpenGL ES:
highp float f0,f1;
highp vec4 v0, v1;
Alternative 1: v0 = (v1*f0)*f1;
Alternative 2: v0 = v1 * (f0 * f1);
Which alternative demonstrates proper use of vector operations?

Answer

Correct Answer: Alternative 2

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

111.

What will be the return value of CFHTTPMessageApplyCredentials
function of CFHTTPMessage class if the authentication is
successful?

Answer

Correct Answer: TRUE

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

112.

Which of the following types of audio files has NO size restriction?

Answer

Correct Answer: CAF

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

113.

What are universal binaries in Xcode?

Answer

Correct Answer: These are executable files that can contain code and data for more than one architecture.

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

114.

Which Core Audio Services framework handles positional and lowlatency audio services in iPHone OS 4.0?

Answer

Correct Answer: OpenAL

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

115.

What will be the value of the clockwise parameter of the
CGContextAddArc function of the CGContext class if you want to
create a counterclockwise arc?

Answer

Correct Answer: 0

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

116.

Which of the following are new features to have been introduced in
iPhone OS 4.0?

Answer

Correct Answer: Multitasking

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

117.

When your session becomes active, which of the following iPhone
OS 4.0 audio session categories allows other audio to continue
playing?

Answer

Correct Answer: AVAudioSessionCategoryAmbient

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

118.

What will be the return value of function
ABPersonComparePeopleByName when person1 goes before
person2 in class ABPersonComparePeopleByName in iPhone OS
4.0?

Answer

Correct Answer: kCFCompareLessThan

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

119.

Which of the following are the Derivative types defined in ObjectiveC?

Answer

Correct Answer: short

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

120.

What is the default setting to refer to file locations in your Xcode
project?

Answer

Correct Answer: Relative to Enclosing Group

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

121.

What type of value is assigned to the loc-args child property of alert
property in an Apple Push Notification?

Answer

Correct Answer: array of strings

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

122.

Which of the following properties of the GKSession class is readonly?

Answer

Correct Answer: displayName

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

123.

Which of the following are NOT a property of
UIImagePickerController class in iPhone OS 4.0?

Answer

Correct Answer: startVideoCapture

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

124.

What is the default value of the remoteParticipantVolume property of
the class GKVoiceChatService in iPhone OS 4.0?

Answer

Correct Answer: 1.0

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

125.

When the genstrings tool discovers a key string used more than once
in a single strings file, it:

Answer

Correct Answer: merges the comments from the individual entries into one comment string and generates a warning

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

126.

Which of the following iTunes application URLs are NOT valid?

Answer

Correct Answer: http://itunes.com/apps/TomandJerry

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

127.

Which of the following is the correct syntax for declaring a class in
Objective-C?

Answer

Correct Answer: @interface ClassName : ItsSuperclass { instance variable declarations } method declarations @end

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

128.

What is the datatype of the clockwise parameter of the
CGContextAddArc function of the CGContext class?

Answer

Correct Answer: int

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

129.

How much time in seconds will it take to display an animation if you
have 60 images using UIImageView class for the property
animationDuration?

Answer

Correct Answer: 2

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

130.

When using a Cocoa framework, what will all ControlEvents method
of UIControl class return in case it fails to create the object?

Answer

Correct Answer: nil

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

131.

Which of the following properties of the UIImage class affects the way
the image data is displayed when drawn?

Answer

Correct Answer: imageOrientation

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

132.

What is the default value of allowsEditing property of
UIImagePickerController class in iPhone OS 4.0?

Answer

Correct Answer: NO

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

133.

What is the return value of function CGColorGetAlpha of class
CGColor?

Answer

Correct Answer: An alpha intensity value in the range[0, 1]

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

134.

Before editing the Nibs, one should:

Answer

Correct Answer: Lock all connections.

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

135.

What is the purpose of active executable in an Xcode project?

Answer

Correct Answer: To specify which program is launched and how, when you run or debug from within Xcode.

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

136.

Which of the following animation class provides simple interpolation
between values for a layer property?

Answer

Correct Answer: CABasicAnimation

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

137.

What is the default value of the borderColor property of the CALayer
class?

Answer

Correct Answer: opaque black

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

138.

By default, is the search interface visible in the
UISearchDisplayController class?

Answer

Correct Answer: No

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

139.

Which of the following properties of the CAKeyframeAnimation class
represents an optional array of NSNumber objects that define the
duration of each keyframe segment?

Answer

Correct Answer: keyTimes

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

140.

Which of the following languages can be used to write the code for
Xcode projects?

Answer

Correct Answer: C

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

141.

Which of the following copy functions will you use in Objective-C to
create an entirely new compound object?

Answer

Correct Answer: Deep Copy

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

142.

; "> What will happen if your filename ExampleImage.png is being called
as follows:
[UIImage imageNamed:@”ExampleImage.PNG”]

Answer

Correct Answer: The image file will load in the simulator but not in iPhone OS 4.0 because it is case sensitive.

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

143.

What is the default value of the fontSize property of the CATextLayer
class?

Answer

Correct Answer: 36.0

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

144.

In a Cocoa framework, how do the UIKit classes UIControl,
UITextField, UIButton, and UITableView deliver their services?

Answer

Correct Answer: Off the shelf

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

145.

Which of the following debugging tasks are provided by Xcode to find
and squash bugs in your code?

Answer

Correct Answer: All of the above

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

146.

Locking all connections before editing the Nib files can be achieved
by using:

Answer

Correct Answer: An option in the Preferences panel of Interface Builder.

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

147.

Which of the following debugging tasks are provided by Xcode to find and squash bugs in your code?

Answer

Correct Answer: Execute a single line of code.
Execute a single line of code.

Note: This question has more than 1 correct answers

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

148.

Which of the following programmatically avoids auto-lock?

Answer

Correct Answer: [[UIApplication sharedApplication] setIdleTimerDisabled:YES];

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

149.

Which of the following are true regarding the usage of NSinteger and int in iOS?

Answer

Correct Answer: NSInteger is defined as an int; it's used when passing a value as an argument to a function or returning a value from a function when building a 32-bit app and for 64-bit apps.

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

150.

What would be examples of troubleshooting steps to do, when Xcode displays a launching remote program error?

Answer

Correct Answer: All of the above

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

151.

Which of the following is a valid JSON string?

Answer

Correct Answer: { "firstName": "John", "lastName": "Smith", "age": 25, "address": [ "streetAddress": "21 2nd Street", "city": "New York", "state": "NY", "postalCode": "10021" ], "phoneNumber": [ { "type": "home", "number": "212 555-1234" }, { "type": "fax", "number": "646 555-4567" } ] }

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

152.

Which of the following will create a singleton class that is compatible with ARC?

Answer

Correct Answer: + (MyClass *)sharedInstance { static MyClass *sharedInstance = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ sharedInstance = [[MyClass alloc] init]; }); return sharedInstance; }

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

153.

Which of the following will get the position of UIView within the entire UIWindow?

Answer

Correct Answer: convertPoint:toView:

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

154.

How can an alert message/pop-up dialog box be shown in iOS?

Answer

Correct Answer: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"test message" message:@"test message for application." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; [alert show];

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

155.

Which of the following compares NSString while ignoring case?

Answer

Correct Answer: if( [@"Some String" caseInsensitiveCompare:@"some string"] == NSOrderedSame ) { }

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

156.

Which of the following will create a singleton class that is compatible with ARC?

Answer

Correct Answer: its MCQS-MA TYPE

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

157.

What will happen when the tableView:accessoryButtonTappedForRowWithIndexPath UITableViewDelegate method is called, in a case where there is a custom UIControl subclass in the standard accessory view?

Answer

Correct Answer: The delegate method will not be called, because it is a custom control view.

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

158.

Which of the following is the correct way to vertically center the UITextField text?

Answer

Correct Answer: textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter

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

159.

The iPhone Simulator can be found at:

Answer

Correct Answer: ~/Library/Application Support/iPhone Simulator/

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

160.

Select the following statements that are true?

Answer

Correct Answer: The iPhone SDK needs to add a special library to do base64 encoding and decoding.

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

161.

Which method is used to dismiss keyboard for UITextField?

Answer

Correct Answer: [textfield resignFirstResponder];

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

162.

Which CATransform3D matrix cell is responsible for perspective transforms?

Answer

Correct Answer: transform.m34

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

163.

Which of the following is the correct way to get the screen height and width in iOS ?

Answer

Correct Answer: [[UIScreen mainScreen] bounds].size.height and [[UIScreen mainScreen] bounds].size.width;

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

164.

Where does Xcode place its build products and other intermediaries/temporary files?

Answer

Correct Answer: In the Derived Data folder

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

165.

Which of the following will make an iPhone app return its own version number?

Answer

Correct Answer: [NSString stringWithFormat:@"Version %@ (%@)", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"], kRevisionNumber]

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

166.

Which of the following changes the color of the pagination dots of UIPageControl?

Answer

Correct Answer: setPageIndicatorTintColor

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

167.

Why does the error, "EXC_BAD_ACCESS" occur?

Answer

Correct Answer: Trying to access released objects

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

168.

Which of the following is not used to find an object contained in NSMutableArray?

Answer

Correct Answer: [myArray objectPresent];

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

169.

Which of the following will print the value of a Boolean flag in NSLog?

Answer

Correct Answer: NSLog(@"Bool value: %d",value)

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

170.

What is true about Grand Central Dispatch(GCD) and NSOperation?

Answer

Correct Answer: GCD is a low level C- based API and NSOperation is Objective –C class

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

171.

Which of the following code samples will declare a variable inside a block in Objective-C?

Answer

Correct Answer: [participants enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { Person *participant = (Person*)obj; Person *aPerson = nil; if ([participant.gender isEqualToString:@"M"]) { aPerson = participant; *stop = YES; } }]; return aPerson;

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

172.

Which of the following is not a valid MPVolumeView method?

Answer

Correct Answer: - (void)setVolumeThumbImage:(UIImage *)image

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

173.

What does a "__block" type specifier mean?

Answer

Correct Answer: Modifications done with the variable marked with __block inside the block are also visible outside of it.

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

174.

Which of the following is not a valid MKAnnotationView property?

Answer

Correct Answer: None of these.

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

175.

Which of the following correctly describes when the - (void)viewDidUnload method is called?

Answer

Correct Answer: When a view is released.

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

176.

What is the best way to show multiple lines text in the UILabel?

Answer

Correct Answer: myLabel.numberOfLines = 0; CGRect currentFrame = myLabel.frame; CGSize max = CGSizeMake(myLabel.frame.size.width, 500); CGSize expected = [myString sizeWithFont:myLabel.font constrainedToSize:max lineBreakMode:myLabel.lineBreakMode]; currentFrame.size.height = expected.height; myLabel.frame = currentFrame;

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

177.

Which one is the best resolution for the following error?

"A valid signing identity matching this profile could not be found in your keychain"

Answer

Correct Answer: Renewing your provisioning profile

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

178.

Which method of Objective-C handles detecting the shake gesture on an iOS device?

Answer

Correct Answer: - (void) accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration

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

179.

What property in info.plist handles the association of file types in an iPhone application?

Answer

Correct Answer: LSItemContentTypes

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

180.

Which framework can be used to call SOAP web services in iOS applications?

Answer

Correct Answer: gSOAP

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

181.

Is it possible to set multiple architecture from Build Settings tab in Xcode for a project?

Answer

Correct Answer: Yes

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

182.

When does this behavior usually happen?

"Xcode Message: finished running <my app>" on targeted device shows, but nothing happens

Answer

Correct Answer: If the app was ran on earlier devices (3G or 3GS) and arm6 was not added in Require Device Capabilities.

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

183.

Which property would be used to get the UDID of UIDevice on iOS?

Answer

Correct Answer: None of these

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

184.

What is the difference between assign and retain in Objective-C?

Answer

Correct Answer: assign - Specifies that the setter uses simple assignment. This is the default. retain - Specifies that retain should be invoked on the object upon assignment. The previous value is sent a release message.

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

185.

How can an SMS be sent programmatically from the iPhone (iOS 4.0 or later)?

Answer

Correct Answer: Both A &B are correct answers

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

186.

Which of the following is best JSON library to be used in iOS applications

Answer

Correct Answer: JSON kit

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

187.

What does EXC_BAD_ACCESS signal received mean in Xcode?

Answer

Correct Answer: "Owning" the memory but forgetting to release

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

188.

Which of the following is the correct way to set the Navigation Bar Color of the Tab Bar Configure Menu?

Answer

Correct Answer: "UINavigationController *navigationController; ... navigationController.navigationBar.tintColor = [UIColor blackColor];"

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

189.

Which of the following UILabel properties help adjust text within a UILabel?

Answer

Correct Answer: adjustsFontSizeToFitWidth

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

190.

Which of the following is the correct way to check whether the view controller view is loaded or visible?

Answer

Correct Answer: if (viewController.isViewLoaded && viewController.view.window) { // viewController is visible }

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

191.

Which of the following properties would be used to draw a shadow under UIView?

Answer

Correct Answer: CGContextSetShadow();

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

192.

Which of the following is the correct way to set UIButton's Highlight Tint color programmatically?

Answer

Correct Answer: [button setTintColor:[UIColor grayColor]];

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

193.

Which one is true regarding integrating and using custom fonts in an iOS application?

Answer

Correct Answer: Adding fonts to your app plist allows usage directly in the app.

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

194.

Is it possible to deploy beta build on any device?

Answer

Correct Answer: Beta build can be deployed only on devices that are included in Mobile Provision certificate while compiling build.

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

195.

What could be the probable result if selector is unknown or undefined?

Answer

Correct Answer: Causes application to terminate with error

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

196.

How can the application name of an iOS project be changed?

Answer

Correct Answer: Change Bundle Display Name from info.plist

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

197.

What is the difference between new and [[alloc]init] in iOS?

Answer

Correct Answer: No difference. Both [[alloc]init] and new are used to create an object.

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

198.

What will be output of following code?

NSLog(@"%.2f",[[UIDevice currentDevice].systemVersion floatValue]);

Answer

Correct Answer: 6.10

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

199.

Which of the following is the best practice to find active internet connection?

Answer

Correct Answer: - (BOOL) connectedToInternet { Reachability *reachability = [Reachability reachabilityForInternetConnection]; NetworkStatus networkStatus = [reachability currentReachabilityStatus]; return !(networkStatus == NotReachable); }

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

200.

What is the correct method to define a delegate object in an ARC Environment?

Answer

Correct Answer: @property (nonatomic, weak) id <MyClassDelegate> delegate;

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

201.

Select which of the following is not UITableViewCellSelectionStyle values?

Answer

Correct Answer: UITableViewCellSelectionStyleLightGray

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

202.

Which of the following is the best way to add a UIToolbar above keyboard?

Answer

Correct Answer: -(void)keyboardWillShow:(NSNotification *)notification { [self.view addSubview:toolbar]; }

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

203.

Which of the following is not an Open Source Framework/Library?

Answer

Correct Answer: StoreKit

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

204.

Which of the following font packages are supported by Cocoa-Touch?

Answer

Correct Answer: .ttf (True Type Font)

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

205.

Which of the following correctly sets an image on UIButton?

Answer

Correct Answer: [button setImage:[UIImage imageNamed:@"button_img.png"] forState:UIControlStateNormal];

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

206.

Which of the following will set the font of UISegmentedControl?

Answer

Correct Answer: UIFont *font = [UIFont boldSystemFontOfSize:12.0f]; NSDictionary *attributes = [NSDictionary dictionaryWithObject:font forKey:UITextAttributeFont]; [segmentedControl setTitleTextAttributes:attributes forState:UIControlStateNormal];

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

207.

Select all incorrect bundle ID(s):

Answer

Correct Answer: appName

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

208.

Which of the following is not a valid icon size for any iOS device (iPhone, iPod, iPad)?

Answer

Correct Answer: 64 x 64

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

209.

Which of the following framework is needed to round corners of UILabel?

Answer

Correct Answer: QuartzCore

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

210.

Which of the following will change the placeholder text color in UITextField?

Answer

Correct Answer: None of the above.

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

211.

Which of the following is not a valid UIGestureRecognizer?

Answer

Correct Answer: UIZoomGestureRecognizer

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

212.

Which of the following is the correct way to print out stack/trace to the console/log in Cocoa application?

Answer

Correct Answer: NSLog(@”%@”,[NSThread callStackSymbols]);

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

213.

Which of the following will return the device's current location?

Answer

Correct Answer: CLLocationManager locationManager = [[CLLocationManager alloc] init]; [locationManager startUpdatingLocation];

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

214.

Which of the following is not a valid Touch method with respect to Cocoa Touch programming?

Answer

Correct Answer: None of above

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

215.

How can it be detected if the app is running on an iPhone 5?

Answer

Correct Answer: if([[UIScreen mainScreen] bounds].size.height == 568)

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

216.

Which of the following frameworks is needed to apply a border to an object?

Answer

Correct Answer: QuartzCore

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

217.

Which of the following is the correct way to set the font size of UIButton title label?

Answer

Correct Answer: someButton.titleLabel.font = [UIFont systemFontOfSize: 15];

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

218.

What is the maximum size of an iOS application?

Answer

Correct Answer: 2 GB

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

219.

Which of the following is the correct way to get the value of the first object of a NsMutableArray stored in another NsMutableArray?

Answer

Correct Answer: [[myArray objectAtIndex:0] objectAtIndex:0];

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

220.

What is the use of performSelector in iOS?

Answer

Correct Answer: To call a method of a class

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

221.

What gets returned if XIB is not properly connected to a parent controller?

Answer

Correct Answer: EXEC_BAD_ACCESS

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

222.

What does the "strong" property attribute do?

Answer

Correct Answer: It makes the object alive, as long as there is a strong pointer to it.

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

223.

What is true about ARC and manual memory management?

Answer

Correct Answer: nil out properties in dealloc under ARC but not in manual memory management.

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

224.

Which of the following allows it to determine if an application is running on iPhone, or if it's running on an iPod Touch?

Answer

Correct Answer: NSString *deviceType = [UIDevice currentDevice].model; if([deviceType isEqualToString:@"iPhone"])

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

225.

Consider the following code:

(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    // Set Background Color/Pattern

    self.window.backgroundColor = [UIColor blackColor];

    self.tabBarController.tabBar.backgroundColor = [UIColor clearColor];

    //self.window.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"testbg.png"]];

 

    // Set StatusBar Color

    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent];

 

    // Add the tab bar controller's current view as a subview of the window

    self.window.rootViewController = self.tabBarController;

    [self.window makeKeyAndVisible];

    return YES;

}

How can the error be corrected that gets thrown in the console, "Applications are expected to have a root view controller at the end of application launch"?

Answer

Correct Answer: MenuViewController *menuViewController = [[MenuViewController alloc]init]; self.window.rootViewController = menuViewController;

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

226. Is OpenAL available on the iPhone?


Answer

Correct Answer: Yes

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

227. Which of the following is not a touch event method?


Answer

Correct Answer: - (void)touchesDragged:(NSSet *)touches withEvent:(UIEvent *)event;

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

228. How do you play a short sound on the iPhone?


Answer

Correct Answer: With AudioServicesPlaySystemSound function

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

229. While using an iPhone, a user switches from one application to another application or service on the device. What is the most important factor to be kept in mind to ensure that your application reflects the most recent changes made by the user the next time it starts?


Answer

Correct Answer: The application should be programmed to save any user changes as they are made as quickly as possible.

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

230. Can you use POSIX threads on the iPhone?


Answer

Correct Answer: Yes

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

231. Can the iPhone use Bonjour messaging?


Answer

Correct Answer: Yes

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

232. Which of the following can be used to draw a tiled image?


Answer

Correct Answer: Quartz 2D function CGContextDrawTiledImage

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

233. What is the endianness of the network for IP communications?


Answer

Correct Answer: Big endian

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

234. Does ABPersonCreate function add the newly created record into the address book?


Answer

Correct Answer: No

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

235. What is the CompressResources build step in an iPhone Xcode project?


Answer

Correct Answer: It resizes the png files in the project for&nbsp;&nbsp;displaying them in the iPhone.

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

236. Can you place calls using the iPhone SDK?


Answer

Correct Answer: No

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

237. What is the default value for the anchorPoint property in Layer Geometry?


Answer

Correct Answer: (0.5,0.5)

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

238. Which of the following is a feature of CAPropertyAnimation class in Core Animation?


Answer

Correct Answer: It is an abstract subclass that provides support for animating a layer property specified by a key path

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

239. Can non-main threads poll for events?


Answer

Correct Answer: No

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

240. How can you create an OpenGL ES texture with a .png image?


Answer

Correct Answer: Using CGContextDrawImage in a CGBitmapContext

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

241. What is the use of Alpha value that is available in attributes of every Interface Builder object?


Answer

Correct Answer: It is used to set the transparency of a User Interface object.

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

242. The configuration data of table view objects in Xcode 4.x is loaded from:


Answer

Correct Answer: an object that conforms to UITableViewDelegate protocol.

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

243. Which two of the following are true about (void)didReceiveMemoryWarning method?

Answer

Correct Answer: This method can be overridden by the developer to release the additional memory used by view controller if any.

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

244. You are developing an application for iOS in Xcode 4.x. Which of the following options will check if a text field with id "TextField" is empty or not, and displaying it in a label with the id "Output"?


Answer

Correct Answer: if(TextField.text.length == 0)  { Output.text=TextField.text;  }

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

245. Which of the following profiles is to be created to test an iOS app on a variety of devices and iOS versions?


Answer

Correct Answer: Ad Hoc Provisioning Profile

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

246. Which of the following options is a property of UIActivityIndicatorView object in Xcode 4.x?


Answer

Correct Answer: hidesWhenStopped

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

247. As an iOS app tester, which of the following are the advantages of having an ad hoc provisioning profile?


Answer

Correct Answer: Testers do not need to get enrolled in an Apple Developer Program.

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

248. Which of the following frameworks must be added in an Xcode 4.x project to play audio files?


Answer

Correct Answer: AudioToolbox.framework

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

249. Which of the following is not an inbuilt received action in a Web View Interface Builder object?


Answer

Correct Answer: refresh

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

250. Which of the following profiles are automatically created and installed on the iOS device when you add an iOS device in Xcode 4.x for the first time?


Answer

Correct Answer: iOS Team Provisioning Profile

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

251. The minimum resolution required for app icons on iOS or iPod touch with non-retina display is:


Answer

Correct Answer: 57 x 57 pixels

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

252. The given image is a snapshot of an iOS app. What does it depicts?


Answer

Correct Answer: A User Interface object, i.e., Round Rect Button is connecting to an action/event that may or may not be defined/available in File's Owner Object.

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

253. What is the use of creating outlets for objects in iOS applications?


Answer

Correct Answer: They create a reference from the object in your code file to the objects defined in your nib/xib/storyboard file.

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

254. Which of the following settings is optional while submitting an app to the Apple App Store?


Answer

Correct Answer: Launch Image

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

255. What is the use of "Disabled" attribute of a Text Field object?


Answer

Correct Answer: It specifies an image that is to be displayed as the background of text field when it is disabled.

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

256. Which of the following is the correct declaration of an input text field with the title, "input2"?


Answer

Correct Answer: IBOutlet UITextField *input2;

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

257. Which of the following attributes in Xcode 4.x, enables you to display "Comment" as a text inside a text field, as given in the image?


Answer

Correct Answer: Placeholder

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

258. Suppose you are creating an ad hoc provisioning profile in Xcode 4.x. Which of the following will you seek from your testers/testing team to add to the iOS Provisioning Portal?


Answer

Correct Answer: Device IDs

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

259. Which of the following can help you to add a new framework to your iOS app in Xcode 4.x?


Answer

Correct Answer: Expand framework folder. Right-click on any existing framework. Select "Show in Finder" option. Locate the desired framework in finder. Drag it from finder and drop it onto the Frameworks folder under project navigator.

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

260. The files InfoPlist.strings and main.m are always found in ___________, by default.


Answer

Correct Answer: Supporting Files folder in your app's main folder under project navigator

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

261. Which of the following is the correct declaration of property of a "Date Picker" user interface object?


Answer

Correct Answer: @property (nonatomic, retain) IBOutlet UIDatePicker *dp;

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

262. Which of the following Interface Builder objects will help you to create an animation with a given number of images?


Answer

Correct Answer: 5

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

263. When you download a file and the application go to background. You can ...

Answer

Correct Answer: continue to download without limits only since iOS 7

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

264. If you have a CGPathRef and need to draw this path to a core animation layer, which object would you use.

Answer

Correct Answer: CAShapeLayer

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

265. Which one of the following is true?

Answer

Correct Answer: You can modify Core Animation layers on a background thread

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

266. How can an application respond to they keyboard being dismissed by the user

Answer

Correct Answer: UIKeyboardWillHideNotification

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

267. Which of the following methods is used to deallocate all the noncritical custom data structure associated with your view controller?

Answer

Correct Answer: didReceiveMemoryWarning

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

268. What class can implement Document Objects?

Answer

Correct Answer: UIDocument

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

269. True or False: In Objective C, all instance methods are accessors.

Answer

Correct Answer: False

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

270. Which scenario will not result in NSOperation throwing an exceptions:

Answer

Correct Answer: When the return value from a completion block is nil.

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

271. What is the effect of using 'weak' in the following @property definition: @property (nonatomic, weak) SomeClass *responder; ?

Answer

Correct Answer: The responder object is not retained and the pointer is set to nil when the object is destroyed

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

272. Which of the following is true?

Answer

Correct Answer: A class cannot be declared as abstract

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

273. The app is in the background but not executing code. What State App is it in?

Answer

Correct Answer: Suspended

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

274. This code doesn't do much, but which line will call the + (void)initialize method on the class SomeClass 1. - (void)doSomething 2. { 3. [SomeClass someClassMethod]; 4. SomeClass *obj = [[SomeClass alloc] init]; 5. NSString *descriptionString = [obj getNewString]; 6. }

Answer

Correct Answer: line 3

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

275. True or False? An object with at least one owner can be destroyed.

Answer

Correct Answer: True

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

276. NSXMLParser is which kind of parser ?

Answer

Correct Answer: SAX Parser

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

277. Which of the following best describes the differences between iOS 7 and iOS 6?

Answer

Correct Answer: iOS 7 user interface has been completely redesigned and has 64-Bit Support.

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

278. Which of the follow statements is TRUE of the use of categories?

Answer

Correct Answer: You can also use categories to split the implementation of a complex class across multiple source code files.

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

279. How can you make the following code display with rounded corners? UIView *rectView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; rectView.backgroundColor = [UIColor redColor]; rectView.layer.cornerRadius = 8; [self.view addSubview:rectView];

Answer

Correct Answer: rectView.layer.masksToBounds = YES;

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

280. What class supports the sharing of small amounts of data such as strings or dates to iCloud?

Answer

Correct Answer: NSUbiquitousKeyValueStore

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

281. What structure can be used to define a portion of a series?

Answer

Correct Answer: NSRange

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

282. In order to test your application in XCode, which testing frameworks are available?

Answer

Correct Answer: OCMock, OCUnit, XCTest

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

283. What do you use to expose preferences for your app in the Settings section of the device?

Answer

Correct Answer: Settings.bundle

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

284. When do you use the "assign" value for a property?

Answer

Correct Answer: For primitive values such as BOOLs or NSIntegers

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

285. Which of the following holds data and knows nothing about the user interface?

Answer

Correct Answer: Model objects

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

286. What is the difference between NSInteger and int?

Answer

Correct Answer: NSInteger is long int and int is just int

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

287. What can be linked to an Obj-C program without any particular process?

Answer

Correct Answer: C++ libraries

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

288. +(void)doSomething{}

Answer

Correct Answer: Is a class method

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

289. In ARC enabled project: [someObject release];

Answer

Correct Answer: Compile error

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

290. What is a category?

Answer

Correct Answer: A category is a way to add methods to a class which already exists

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

291. What function do you call to close the current view and go back to the root?

Answer

Correct Answer: popToRootViewController

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

292. What is the difference between Cocoa and Cocoa Touch?

Answer

Correct Answer: Cocoa is the application framework for developing applications in Mac OS X. Cocoa Touch is the application framework for iPhone,iPad and iPod Touch .

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

293. What structure can hold an x and y coordinate that defines a location?

Answer

Correct Answer: CGPoint

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

294. If you use threading, on which thread should UI Transitions be called?

Answer

Correct Answer: The main thread

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

295. Is it possible to make a full application without using Interface Builder?

Answer

Correct Answer: Yes, on any platform

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

296. When using ARC, how do you destroy an object in Objective C?

Answer

Correct Answer: Set the variable that points at it to nil

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

297. True or False: viewDidLoad comes after viewDidAppear?

Answer

Correct Answer: False

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

298. Which of the following objects is visible to the user?

Answer

Correct Answer: View objects

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

299. In manual memory management, what do you do when you don't need a reference on a object ?

Answer

Correct Answer: [obj release];

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

300. What is the function in Objective C that determines what is in the cells of a tableView?

Answer

Correct Answer: cellForRowAtIndexPath

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

301. An indexPath has a Section and a ____

Answer

Correct Answer: Row or item

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

302. If an asset is for iPad only, how do you specify it in the file name?

Answer

Correct Answer: ~iPad

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

303. True or False: The main thread handles touch inputs

Answer

Correct Answer: True

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

304. True or False: A Collection View is another name for a tableView

Answer

Correct Answer: False

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

305. What data type do you initialize if you want a string that can change?

Answer

Correct Answer: NSMutableString

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

306. The archive that holds the saved create and configure view objects is known as:

Answer

Correct Answer: XIB

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

307. Which of the following symbols do you prefix a character string with when you want a hard coded string?

Answer

Correct Answer: @

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

308. What is @2x used for?

Answer

Correct Answer: Retina Assets

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

309. What's the difference between NSArray and NSMutableArray?

Answer

Correct Answer: NSArrayʼs contents can not be modified once itʼs been created whereas a NSMutableArray can be modified as needed

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

310. Which of the following keyboard shortcuts will run your app on the simulator?

Answer

Correct Answer: Command-R

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

311. What function is called for each cell in a Table View?

Answer

Correct Answer: cellForRowAtIndexPath

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

312. How do you reference your app bundle?

Answer

Correct Answer: [NSBundle mainBundle]

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

313. What file contains configuration data for the app?

Answer

Correct Answer: Info.plist

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

314. Difference between a frame and bounds?

Answer

Correct Answer: Bounds origin is always (0, 0), a frame origin is relative to his container view

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

315. What data object can store a timestamp the best?

Answer

Correct Answer: NSDate

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

316. What data type do you initialize if you want a list of items that can change?

Answer

Correct Answer: NSMutableArray

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

317. Which of the following code snippets would work for changing the position of a view?

Answer

Correct Answer: CGPoint center = view.center; center.x = 0; center.y = 100; view.center = center;

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

318. When adding objects to NSMutableDictionary, the key...

Answer

Correct Answer: Must conform to the NSCopying protocol

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

319. True or False? When you create a new iOS project from a template, the template automatically makes a controller object for you.

Answer

Correct Answer: True

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