Saturday, June 17, 2017

Upwork IPHONE PROGRAMMING OS 4.0 TEST 2018

Hello Freelancer, Get the IPHONE PROGRAMMING OS 4.0 TEST of Latest version 2018. We are ready here to provide your desire upwork test answer. We already tested all exam test information Available include on here. So Dear, Why Late? Read the below full exam test and get more information from our website. 

1. The genstrings tool can parse _____.
Answers:
  1. C files with .c filename extension.
  2. Objective-C files with .m filename extension.
  3. Java code files with .java filename extension.
  4. Nib files with any file name extension.
2. Which of the following need to be modified while localizing an application?
Answers:
  1. Nib files (windows, views, menus).
  2. Static text.
  3. Icons and graphics.
  4. Dynamic text generated by your program.
3. Which of the following terms are related to Memory Management in Objective-C?
Answers:
  1. alloc
  2. mutableCopy
  3. delete
  4. release
4. Which of the following properties of the UIImage class are not in use after iOS 4.2?
Answers:
  1. imageOrientation
  2. size
  3. leftCapWidth
  4. topCapHeight
5. What is the return value of SecRandomCopyBytes function of SecRandom class in iPhone OS 4.0 if the function completes successfully?
Answers:
  1. 0
  2. 1
  3. -1
  4. true
6. 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?
Answers:
  1. theLayer.opacity=0.0; theLayer.zPosition=0;
  2. theLayer.opacity=0.0; theLayer.zPosition= -100;
  3. theLayer.opacity=0.0; theLayer.zPosition=100;
  4. theLayer.opacity=1.0; theLayer.zPosition=0;
7. What is the value type of UTTypeConformsTo key of uniform type identifier for iPhone OS 4.0?
Answers:
  1. array of dictionaries
  2. array of strings
  3. string
  4. dictionary
  5. integer
8. Which of the following statements is correct regarding functions fopen and open in generic C?
Answers:
  1. fopen returns an error if the file does exist.
  2. fopen does not automatically create the file if it does not exist.
  3. open returns an error if the file does exist.
  4. open returns a file descriptor.
9. Which of the following is the correct syntax for declaring a class in Objective-C?
Answers:
  1. @interface ClassName : ItsSuperclass { instance variable declarations } method declarations @end
  2. @implementation ClassName : ItsSuperclass { instance variable declarations } method declarations @end
  3. @class ClassName : ItsSuperclass { instance variable declarations } method declarations @end
  4. All are correct
10. Which of the following properties of the GKSession class is read-only?
Answers:
  1. available
  2. delegate
  3. displayName
  4. peerID
  5. sessionID
11. Which of the following debugging environments are provided by Xcode to find and squash bugs in your code?
Answers:
  1. Debugging from the text editor
  2. Mini Debugger
  3. Debugger window
  4. GDB debugger console
  5. All of the above
12. When your session becomes active, which of the following iPhone OS 4.0 audio session categories allows other audio to continue playing?
Answers:
  1. AVAudioSessionCategoryAmbient
  2. AVAudioSessionCategorySoloAmbient
  3. AVAudioSessionCategoryPlayback
  4. AVAudioSessionCategoryRecord
13. Which Audio Toolbox framework file defines an interface for reading and writing audio data in files in iPhone OS 4.0?
Answers:
  1. AudioConverter.h
  2. AudioFile.h
  3. AudioFileStream.h
  4. AudioServices.h
14. Which of the following is NOT the default behavior of an audio session in iPhone OS?
Answers:
  1. Playback is disabled and recording is enabled.
  2. When you move the Ring/Silent switch to the “silent” position, your audio is silenced.
  3. When you press the Sleep/Wake button to lock the screen, or when the Auto-Lock period expires, your audio is silenced.
  4. When your audio starts, other audio on the device—such as iPod audio that was already playing—is silenced.
15. Which of the following debugging tasks are provided by Xcode to find and squash bugs in your code?
Answers:
  1. Add and set breakpoints.
  2. View your call stack per thread.
  3. View the value of variables by hovering the mouse pointer over them.
  4. Execute a single line of code.
  5. All of the above
16. Apple’s implementation of HTTP Live Streaming supports DRM (Digital rights management).
Answers:
  1. True
  2. False
17. Which Core Audio Services framework handles positional and low-latency audio services in iPhone OS 4.0?
Answers:
  1. Audio Toolbox
  2. Audio Unit
  3. AV Foundation
  4. Core Audio
  5. OpenAL
18. What are universal binaries in Xcode?
Answers:
  1. These are executable files that can contain code and data for more than one architecture.
  2. These are file references which are generated by the target, such as an application.
  3. These are indexes that contain symbolic information for your project.
  4. These are used to specify build location settings.
19. What is the function of the Code Sense feature in Xcode?
Answers:
  1. Code Sense helps in switching between different circumstances such as development or release.
  2. Code Sense maintains an index that contains important information for your project.
  3. Code Sense creates a cache for the files which are being used frequently.
  4. Code Sense maintains an index of files used in a project.
  5. Code sense is the code completion feature helpful in avoiding typing and syntax errors.
20. Which of the following animation class provides simple interpolation between values for a layer property?
Answers:
  1. CABasicAnimation
  2. CAKeyframeAnimation
  3. CATransition
  4. CAAnimationGroup
21. What will the hitTest: object of the CALayer class return if the point lies outside the receiver’s bounds rectangle?
Answers:
  1. nil
  2. true
  3. false
  4. 0
22. When the genstrings tool discovers a key string used more than once in a single strings file, it:
Answers:
  1. deletes the comments from the individual entries and leaves one comment string without generating a warning.
  2. merges the comments from the individual entries into one comment string and generates a warning.
  3. differentiates the comments from the individual entries into various strings and generates a warning.
  4. None of the above
23. What is the datatype of the clockwise parameter of the CGContextAddArc function of the CGContext class?
Answers:
  1. bool
  2. int
  3. CGFloat
  4. CGContextRef
24. Which of the following languages can be used to write the code for Xcode projects?
Answers:
  1. C
  2. C++
  3. Objective-C
  4. Objective-C++
  5. Java
25. What is the return value of function CGColorGetAlpha of class CGColor?
Answers:
  1. An alpha intensity value in the range [-1,1]
  2. An alpha intensity value in the range [-0.5,0.5]
  3. An alpha intensity value in the range [0,1]
  4. An alpha intensity value in the range [1,5]
26. How much time in seconds will it take to display an animation if you have 60 images using UIImageView class for the property animationDuration?
Answers:
  1. 1
  2. 2
  3. 10
  4. 15
27. What will the following method call do if the value of the accessed counter is 0?
– (void)discardContentIfPossible
Answers:
  1. It will discard the contents of the object because the counter is 0.
  2. It will not discard the contents of the object because the counter is required to be above 0.
  3. It will not discard the content of the object as a negative counter value is required.
  4. None of the above
28. 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?
Answers:
  1. Alternative 1
  2. Alternative 2
  3. Both alternatives demonstrate proper use of vector operations.
29. Which of the following are the Derivative types defined in Objective-C?
Answers:
  1. short
  2. long
  3. long long
  4. int
30. Which of the following properties of the CAKeyframeAnimation class represents an optional array of NSNumber objects that define the duration of each keyframe segment?
Answers:
  1. path
  2. keyTimes
  3. rotationmode
  4. continuityValues
31. Which Core Audio Service framework is used to record, play back, pause, loop, and synchronize audio in iPhone OS 4.0?
Answers:
  1. Audio Queue
  2. Music Sequencing Services
  3. Core Audio Clock
  4. System Sound Services
32. 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?
Answers:
  1. rotation
  2. rotation.xy
  3. rotation.x
  4. rotation.y
  5. rotation.z
33. What is the default setting to refer to file locations in your Xcode project?
Answers:
  1. Relative to Build Product
  2. Relative to Project
  3. Relative to Enclosing Group
  4. Relative to <source path>
  5. Absolute Path
34. Before editing the Nibs, one should:
Answers:
  1. Unlock all connections.
  2. Lock all connections.
  3. Break all connections.
  4. None of the above
35. What is the default value of the borderColor property of the CALayer class?
Answers:
  1. 0
  2. nil
  3. opaque black
  4. dark black
36. What will be the return value of function ABPersonComparePeopleByName when person1 goes before person2 in class ABPersonComparePeopleByName in iPhone OS 4.0?
Answers:
  1. kCFCompareLessThan
  2. kCFCompareEqualTo
  3. kCFCompareGreaterThan
  4. None of the above
37. What happens if Xcode is not able to find a file or folder at the path defined for it in the project?
Answers:
  1. Xcode skips the file or the folder and continues execution.
  2. Xcode gives an alert with a description of the missing file.
  3. Xcode displays the item in red in the project window.
38. If the code is written using the Core Foundation and Foundation macros, the simplest way to create strings files is:
Answers:
  1. Using an option in the Preferences panel of Interface Builder.
  2. By merging the comments from the individual entries into one comment string.
  3. By unlocking all connections.
  4. By using the genstrings command-line tool.
39. Which of the following copy functions will you use in Objective-C to create an entirely new compound object?
Answers:
  1. Shallow Copy
  2. Deep Copy
  3. Both a and b
40. What is the data type of extendStart parameter of function CGShadingCreateAxial of class CGShading?
Answers:
  1. CGFloat
  2. CGPoint
  3. bool
  4. CGFunctionRef
  5. int
41. What is the datatype of the parameter inValidBitsPerChannel for the function CalculateLPCMFlags in CoreAudioTypes class in iPhone OS 4.0?
Answers:
  1. UInt32
  2. bool
  3. Float32
  4. UInt64
42. What will be the return value of CFHTTPMessageApplyCredentials function of CFHTTPMessage class if the authentication is successful?
Answers:
  1. TRUE
  2. FALSE
  3. nil
  4. 0
  5. 1
43. Which of the following statements regarding Objective-C are correct?
Answers:
  1. In Objective-C, the keyword for NULL is nil.
  2. In Objective-C, #import and #include compiler directives carry out the same operations.
  3. In Objective-C, for the object-oriented constructs (such as method return values), id is the default data type.
  4. The keyword nil has an id with a value of 0.
44. What is the default value of the remoteParticipantVolume property of the class GKVoiceChatService in iPhone OS 4.0?
Answers:
  1. 0.0
  2. 0.5
  3. 1.0
  4. 5.0
45. What is the default value of the fontSize property of the CATextLayer class?
Answers:
  1. 8.0
  2. 12.0
  3. 18.0
  4. 36.0
46. Which part of the HTTP Live Streaming is responsible for taking input streams of media and encoding them digitally?
Answers:
  1. Server component
  2. Distribution component
  3. Client software
  4. None of the above
47. Locking all connections before editing the Nib files can be achieved by using:
Answers:
  1. An option in the Start Menu.
  2. An option in the Preferences panel of Interface Builder.
  3. An option in the Preferences panel of Language Directory.
  4. Any of the above.
48. When you send an object a retain message in Memory Management using Objective-C, what will happen?
Answers:
  1. Its retain count is incremented by 1.
  2. Its retain count is decremented by 1.
  3. Its retain count remains same.
  4. Its retain count is set to 0.
49. When using a Cocoa framework, what will all ControlEvents method of UIControl class return in case it fails to create the object?
Answers:
  1. failure to create
  2. no object to return
  3. status code 420
  4. nil
50. By default, is the search interface visible in the UISearchDisplayController class?
Answers:
  1. Yes
  2. No
51. Which of the following reasons will return a value of NO for the instance method startVideoCapture of class UIImagePickerController?
Answers:
  1. Movie capture is already in progress.
  2. The device does not support movie capture.
  3. The device is out of disk space.
  4. All of the above
52. 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?
Answers:
  1. 0
  2. 1
  3. True
  4. False
53. Which of the following types of audio files has NO size restriction?
Answers:
  1. AIFF
  2. WAVE
  3. CAF
  4. All of the above have file size restrictions.
54. Which of the following is NOT a parameter of function SecKeyDecrypt of the class SecCertificate in iPhone OS 4.0?
Answers:
  1. key
  2. padding
  3. cipherText
  4. certificate
55. Which of the following defined types is a dynamic object type in Objective-C?
Answers:
  1. id
  2. Class
  3. SEL
  4. BOOL
56. What is the default value of allowsEditing property of UIImagePickerController class in iPhone OS 4.0?
Answers:
  1. NO
  2. YES
  3. enable
  4. disable
57. Which of the following OpenGL ES objects is a simple 2D graphics image in a specified format?
Answers:
  1. texture
  2. buffer
  3. shaders
  4. renderbuffer
  5. framebuffers
58. Which symbol is used as a syntactic marker for blocks of code in iPhone OS 4.0?
Answers:
  1. ~
  2. $
  3. ^
  4. *
59. Which of the following methods is used for the purpose of creating your view objects in memory management?
Answers:
  1. Initialization methods
  2. loadView
  3. viewDidLoad
  4. dealloc
60. What will happen if an application is running and the user presses the Home button in iPhone OS 4.0 with 3GS?
Answers:
  1. The application will be terminated.
  2. The application will be shifted to background execution context.
  3. The application will continue to run until its execution ends.
  4. The application will be paused.
61. What is the functionality of the beta parameter of function catlas_caxpby in class cblas?
Answers:
  1. Input vector X
  2. Input vector Y
  3. Scaling factor for X
  4. Scaling factor for Y
62. Which of the following are NOT a property of UIImagePickerController class in iPhone OS 4.0?
Answers:
  1. cameraCaptureMode
  2. mediaTypes
  3. startVideoCapture
  4. takePicture
  5. videoQuality
63. While opening Nib files, which of the following should not be ignored?
Answers:
  1. Objects in a Nib file typically have connections between them that should not be broken.
  2. If Objects in a Nib file have broken connections, they should not be restored.
  3. The size of the files.
  4. None of the above
64. Which of the following directives are used to declare and define classes, categories, and protocols?
Answers:
  1. @interface
  2. @implementation
  3. @protocol
  4. @class
  5. @end
65. What will happen if your filename ExampleImage.png is being called as follows:
[UIImage imageNamed:@”ExampleImage.PNG”]
Answers:
  1. The image file will load in the simulator but not in iPhone OS 4.0 because it is case sensitive.
  2. The image file will load in iPhone OS 4.0 but not in the simulator because it is case sensitive.
  3. The file will load in both the simulator and iPhone OS 4.0 because they are both case insensitive.
  4. The file will load neither in the simulator nor in iPhone OS 4.0 because they are both case sensitive.
66. What type of value is assigned to the loc-args child property of alert property in an Apple Push Notification?
Answers:
  1. string
  2. array of strings
  3. number
  4. dictionary
67. What will the following method definition do if the value of the accessed counter is 0?
– (void)discardContentIfPossible
Answers:
  1. It will discard the contents of the object because the counter is 0.
  2. It will not discard the contents of the object because the counter is required to be above 0.
  3. It will not discard the content of the object as a negative counter value is required.
  4. None of the above
68. Which of the following properties of ADBannerView class are read-only?
Answers:
  1. bannerLoaded
  2. currentContentSizeIdentifier
  3. bannerViewActionInProgress
  4. delegate
  5. requiredContentSizeIdentifiers
69. Which of the following are new features to have been introduced in iPhone OS 4.0?
Answers:
  1. Multitasking
  2. Apple Push Notification Service
  3. Local Notification
  4. Gesture Recognizers
Finally, no more words require about the IPHONE PROGRAMMING OS 4.0 TEST  information in this session of this content. If you are require knowing more, Please ask to us via our contact us form or comment box. Please make sure that, you don’t send Personal information via the Comment box. Thanks for Being with us.

No comments:

Post a Comment