iOS 5 Programming Skills Test
Which
of the following is NOT allowed in iOS?
a. Creating
a file in the Documents directory.
b. Creating
a file in a bundle directory.
c. Moving
a file from a bundle directory to the Documents directory.
d. Copying
a file from a bundle directory to the Documents directory.
Which
of the following is FALSE about the NSFetchRequest class?
a. You
can fetch only one type of entity per fetch request.
b. You
can fetch only two types of entity per fetch request.
c. You
can fetch multiple types of entity per fetch request.
What
is the default compiler in an iPhone project?
a. LLVM
GCC4
b. Apple
LLVM Compiler 3.2
c. GCC
2.0
d. CC
Which
of the following signing certificates is NOT supported by iOS5?
a. SHA1
b. SHA2
c. MD5
d. None
of the above
Which
of the following are true regarding the AVAudioSession class?
a. AVAudioSession
allows your application to access the audio hardware resources.
b. To
record audio with the AVAudioRecorder, you must initialize an AVAudioSession
before you start recording.
c. AVAudioSession
allows you to define the preferred audio hardware sample rate and the I/O
buffer duration.
d. All
of the above.
In
which situations does the following error occur?
EXE_ACCESS_BAD_ACCESS
a. When
an invalid memory address is accessed.
b. When
the function of a deallocated object is called.
c. When
an object with retain count 0 is accessed.
d. All
of the above.
Which
of the following map APIs does iOS5 use?
a. Apple
Map Kit
b. Google
Maps
c. Route-Me
d. MapBox
e. None
of these
Which
two of the following are most preferable when an application is communicating
with the network services?
a. The
application should check the speed of the network before sending any request.
b. The
application should send asynchronous request to the server.
c. The
application should show a progress bar/progress indicator while downloading a
large amount of data.
d. The
application should use cache to speed up the network request.
Which
property of CSS was NOT available in Safari and WebKit before iOS5?
a. -webkit-overflow-scrolling
b. -webkit-touch-callout
c. -webkit-padding-start
d. -webkit-transition-delay
Is
it possible to store NSRect or CGColor type data in a Core Data class?
a. Yes
b. No
Which
of the following can be used to set the frame rate of the screen?
a. framesPerSecond
b. preferredFramesPerSecond
c. framesDisplayed
d. None
of the above
Which
of the following statements is true regarding NSObject?
a. NSObject
is a class and not a protocol.
b. NSObject
is a protocol and not a class.
c. NSObject
is both a protocol and a class.
d. NSObject
is neither a protocol nor a class.
What
will happen if you programmatically select the picker row?
a. The
delegate method - (void)pickerView:(UIPickerView *)pickerView
didSelectRow:(NSInteger)row inComponent:(NSInteger)component will be called.
b. There
will be no call to - (void)pickerView:(UIPickerView *)pickerView
didSelectRow:(NSIntegeR)row inComponent:(NSInteger)component method.
c. Depends
on the iOS SDK version for development.
d. None
of the above.
Is
Core Data a relational database management system?
a. Yes
b. No
Which
of the following is true regarding iCloud?
a. You
can upload and share files on multiple devices with iCloud.
b. There
is a new framework for iCloud.
c. You
can upload files to iCloud with the help of NSFileManager.
d. You
can't use iCloud in your applications. It works automatically.
Which
of the following third party frameworks are used for developing games?
a. Sencha
Touch
b. Cocos2d
c. Box2d
d. Unity
Which
of the following is the correct syntax for calling a function in Objective-C?
a. obj.method()
b. obj.method
c. obj->method()
d. [obj
method]
Which
of the following are the uses of the new Assets Library?
a. Allows
access to the photo stream.
b. Lets
you create a new library and add new images to an album.
c. Lets
you create thumbnails from an asset.
d. Helps
you modify and save existing assets.
e. Lets
you sync photo stream between different devices.
In
what format are the strings defined in the .xib file stored?
a. UTF
8
b. Base64
c. ANSCII
d. UTF
16
How
many main() method/s can you have in a single iPhone application?
a. 1
b. 2
c. As
many as you want
d. no
need of main
Which
new security framework was introduced in iOS5?
a. GSS
.framework
b. Generic
Security .framework
c. System
Security .framework
d. System
Configuration .framework
Which
of the following is true in the context of storyboards and view controllers?
a. They
can be used together.
b. They
cannot be used together.
c. Storyboards
can be used within a single page application.
Which
of the following frameworks is required for real-time audio output?
a. AudioToolbox
b. AVFoundation
c. OpenAL
d. OpenGLES
Which
of following is true of Core Data?
a. You
can create more than one data model in one application, where each data model
can have more than one table.
b. You
can have more than one managed contexts in one application.
c. Database
schema needs to be defined using ManagedObjectContext.
d. You
can rollback the changes made in the managed object contact with the help of
rollback, reset and undo methods.
Where
can NSPredicate be used?
a. CoreData
Query
b. Search
in NSArray
c. String
compare
d. Sorting
Which
of the following statements is true in the context of Objective-C?
a. Function
overloading is supported in Objective-C.
b. Function
overloading is not supported in Objective-C.
c. Framework
classes cannot be inherited.
d. While
creating categories, we can create new variables.
If
an application is created using a storyboard, then which of the following is
true?
a. The
application will work only on iOS 5 and above.
b. The
application will work on all iOS.
c. The
application will not work on iPod touch 4G with iOS5.
Which
of the following features are new in iOS 5?
a. Siri
b. Twitter
integration
c. Notification
Center
d. All
of the above
Which
of the following frameworks provides a single sign-on model?
a. Twitter
b. Accounts
c. System
d. GSS
Is
Core Data framework thread safe?
a. Yes
b. No
Which
of the following is true?
a. ARC
is a feature of Xcode.
b. ARC
is a feature of Compiler.
c. ARC
is a feature of Linker.
d. ARC
is a feature of Debugger.
Which
framework is used for video/image editing?
a. UIkit
b. AVFoundation
c. CoreImage
d. CoreGraphics
e. All
of the above
Which
of following is/are (a) new gaming framework/s introduced in iOS 5?
a. GLKit
b. GSS
c. OpenGLES
d. All
of the above
What
is the meaning of ARC (Automatic Reference Counting) in the context of
Objective-C?
a. The
whole program runs under autorelease pools.
b. Referencing
is taken care of at compile time in accordance with the life cycle of the
variable.
c. Memory
management is handled at compile time by Xcode.
d. Memory
management is handled by the compiler.
Which
of the following classes are NOT thread safe?
a. NSArray
b. NSAutoreleasePool
c. NSMutabelArray
d. NSNumber
e. NSUserDefaults
Is
it possible to disable a track of a composition?
a. Yes
b. No
Which
of the following is true of ARC?
a. ARC
can be enabled at the time of project creation only.
b. ARC
can also be enabled after the project has been created.
c. ARC
can be enabled/disabled for individual files.
d. Once
enabled, ARC cannot be disabled.
Which
of the following is NOT an OpenGLES method?
a. glclear()
b. glClearColor()
c. glDrawArrays()
d. glDrawTexture()
Which
of the following properties can be used to make changes to the keyboard in iOS?
a. InputView
b. inputtype
c. inputAccessoryView
d. keyboardType
Which
of the following is NOT an AVAudioSessionMode?
a. AVAudioSessionModeDefault
b. AVAudioSessionModeVoiceChat
c. AVAudioSessionModeMoviePlayback
d. AVAudioSessionModeVideoRecording