Saturday, January 2, 2016

iPhone Programming OS 4.0 Test answers 2016

iPhone Programming OS 4.0 Test answers 2016

Find Complete and recently updated Correct Question and answers of iPhone Programming OS of Upwork. All Answers updated regularly with new questions. Upwork iPhone Programming OS answers of 2016.



Question:* The genstrings tool can parse _____.

Answer: • C files with .c filename extension.

Answer: • Objective-C files with .m filename extension.

Answer: • Java code files with .java filename extension.

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

Answer: • Nib files (windows, views, menus).

Answer: • Static text.

Answer: • Dynamic text generated by your program.

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

Answer: • alloc

Answer: • mutableCopy

Answer: • release

Question:* Which of the following properties of the UIImage class are not in use after iOS 4.2?

Answer: • leftCapWidth

Answer: • topCapHeight

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

Answer: • 0

Question:* 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: • theLayer.opacity=0.0; theLayer.zPosition= -100;

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

Answer: • array of strings

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

Answer: • fopen does not automatically create the file if it does not exist.

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

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

Question:* Which of the following properties of the GKSession class is read-only?

Answer: • displayName

Question:* Which of the following debugging environments are provided by Xcode to find and squash bugs in your code?

Answer: • All of the above

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

Answer: • AVAudioSessionCategoryAmbient

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

Answer: • AudioFile.h

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

Answer: • Playback is disabled and recording is enabled.

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

Answer: • All of the above

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

Answer: • False

Question:* Which Core Audio Services framework handles positional and low-latency audio services in iPhone OS 4.0?

Answer: • OpenAL

Question:* What are universal binaries in Xcode?

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

Question:* What is the function of the Code Sense feature in Xcode?

Answer: • Code sense is the code completion feature helpful in avoiding typing and syntax errors.

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

Answer: • CABasicAnimation

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

Answer: • nil

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

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

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

Answer: • int

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

Answer: • Objective-C

Question:* What is the return value of function CGColorGetAlpha of class CGColor?

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

Question:* 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: • 2

Question:* What will the following method call do if the value of the accessed counter is 0? - (void)discardContentIfPossible

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

Question:* Consider the following code with 2 alternatives of vector operations 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: • Alternative 2

Question:* Which of the following are the Derivative types defined in Objective-C?

Answer: • long long

Question:* 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: • keyTimes

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

Answer: • Audio Queue

Question:* 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: • rotation.z

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

Answer: • Relative to Enclosing Group

Question:* Before editing the Nibs, one should:

Answer: • Lock all connections.

Question:* What is the default value of the borderColor property of the CALayer class?

Answer: • opaque black

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

Answer: • kCFCompareLessThan

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

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

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

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

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

Answer: • Deep Copy

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

Answer: • bool

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

Answer: • UInt32

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

Answer: • TRUE

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

Answer: • In Objective-C, for the object-oriented constructs (such as method return values), id is the default data type.

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

Answer: • 1.0

Question:* What is the default value of the fontSize property of the CATextLayer class?

Answer: • 36.0

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

Answer: • Server component

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

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

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

Answer: • Its retain count is incremented by 1.

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

Answer: • nil

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

Answer: • Yes

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

Answer: • All of the above

Question:* 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: • 0

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

Answer: • CAF

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

Answer: • certificate

Question:* Which of the following defined types is a dynamic object type in Objective-C?

Answer: • id

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

Answer: • NO

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

Answer: • renderbuffer

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

Answer: • ^

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

Answer: • viewDidLoad

Question:* What will happen if an application is running and the user presses the Home button in iPhone OS 4.0 with 3GS?

Answer: • The application will be shifted to background execution context.

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

Answer: • Scaling factor for Y

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

Answer: • startVideoCapture

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

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

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

Answer: • @implementation

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

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

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

Answer: • array of strings

Question:* What will the following method definition do if the value of the accessed counter is 0? - (void)discardContentIfPossible

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

Question:* Which of the following properties of ADBannerView class are read-only?

Answer: • bannerLoaded

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

Answer: • Gesture Recognizers



No comments: