odesk ios6 test answers
1) Which of the following AVAudioSession class categories can be used to generate generic audio output?
a.AVAudioSessionCategoryAmbient
b.AVAudioSessionCategoryPlayAndRecord
c.AVAudioSessionCategoryAudioProcessing
d.AVAudioSessionCategoryMultiRoute
2) Consider the following code:
@interface message:NSObject
-(void)print;
@end
@implementation message
-(void)print
{
NSLog(@"Get A message");
}
@end
int main(int c,char *v[])
{
@autoreleasepool
{
message *m=nil;
[m print];
}
return 0;
}
What will happen when you compile and run this code?
a.There will be a compile time error.
b.There will be a runtime error.
c.It will print: Get A message.
d.The code will run, but there will be no output.
3) In order to make sure that a WebView is allowed to draw on screen only when the request is fully loaded, you use:
a.renderOnComplete
b.drawOnComplete
c.suppRessesIncRementalRendeRing
d.waitForDraw
e.dataDetectorTypes
4) Which protocol is used for downloading data in iOS 6?
a.NSURLConnectionDelegate
b.NSURLConnectionDownloadDelegate
c.NSURLDownloadDelegate
d.NSDownloaderDelegate
5) Which of the following resolutions does iOS support?
a.240 x 320
b.320 x 480
c.568 x 320
d.1024 x 768
6) Consider the following code:
#import
@interface message:NSObject
-(void)print;
-(NSString *) getdata;
@end
@implementation message
-(void)print
{
NSLog(@"Get A message");
}
-(NSString *) getdata
{
return @"hello";
}
-(int) getdata
{
return 1;
}
@end
int main(int c,char *v[])
{
@autoreleasepool
{
message *m=[message new];
id data =[m performSelector:@selector(getdata)];
NSLog(@"%@", data);
}
return 0;
}
What will be the output of this code?
a.There will be a compile time error.
b.There will be a runtime error.
c.It will print: Get A message hello.
d.The code will run, but there will be no output.
7) Is it possible to detect events performed by a user (such as clicking a link, form submission, reloading, etc.) in a WebView?
a.Yes
b.No
8) Can custom header views be created through nib files?
a.Yes
b.No
9) Which of the following frameworks has vDSP functions?
a.MathLib
b.OpenGLES
c.GLKit
d.Accelerate
10) What is the correct syntax for printing enumeration LLDB for the following enumeration?
enum TestEnum{TestEnumName,TestEnumSex,TestEnumAge}
a.print TestEnumName
b.print TestEnum::TestEnumName
c.ExprEssion TEstEnum::TEstEnumNamE (Not Sure)
d.print_r (TestEnum->TestEnumName)
11) Which of the following protocols are new to the AVFoundation Framework?
a.AVPlayerItemOutPutPullDelegate (not sure)
b.AVCaptureMetadataOutputObjectsDelegate (sure)
c.AVAssetResourceLoaderDelegate(not sure)
d.AVAudioSessionDataSourceDescription
12) Which of the following methods moves a specified subview to the background?
a.pushSubviewToBack
b.sendSubviewToBack
c.removeFromFront
d.None of the above
13) What will happen if you run an application designed for iPhone 4S on an iPhone 5, i.e., on iOS 6?
a.The application will work fine.
b.The application will crash.
c.The application will work fine, but there will be a small black area at the bottom (in the portrait orientation) of the application.
d.The application will work properly, but only in the landscape orientation.
14) Which of the following classes have been added to the Foundation framework in iOS 6?
a.NSAttributedString
b.NSFrame
c.NSMutableAttributedString
15) Which of the following methods should be overridden when iOS 6 receives a memory warning?
a.viewDidUnload
b.didReceiveMemoryWarning
c.viewWillUnload
d.All of the above are called when a memory warning is received and iOS manages the memory issue by unloading the views.
16) Does AVPlayer support streaming video from a URL?
a.Yes
b.No
17) Which of the following is used when ARC is disabled?
a.autoreleasepool{}
b.NSAutoreleasePool (not sure)
c.@autoreleasepool{} (not sure)
d._autoreleasing
e.autorelease
18) Consider the following code:
#import
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool
{
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
int UIApplicationMain(int argc, char *argv[], NSString *principalClassName, NSString *delegateClassName)
{
printf("hello testing testing");
return 0;
}
What will be the output of this code?
a.hello testing testing
b.The code will not compile because there are two definitions of the UIApplicationMain function, one in the main.m file and another in the UIKit framework.
c.The code will compile, but will generate an error during runtime on the simulator.
19) Which of the following methods has been added to the NSValue class in iOS 6?
a.valueWithCGPoint
b.valueWithCGRect
c.valueWithUIEdgeInsets
d.valueWithMKCoordinate
20) What is the new assembly language for the LLVM compiler?
a.Universal Assembly Language (UAL)
b.United Assembly Language (UAL)
c.Unified Assembly Language (UAL)
21) Which of the following helps a programmer create challenges and provide a leaderboard to the user?
a.OpenGL ES
b.GLKit
c.Game Kit
d.GamingCenter
22) What is the default specifier for an instance variable?
a.@public
b.@private
c.@protected
d.@package
23) Which of the following is NOT a DataSource method?
• a.- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
• b.- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
• c.- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath
• d.- (NSInteger)numberOfItemsInSection:(NSInteger)section
24) Which of the following devices are supported by Xcode 4.5 applications?
a.iPhone 3GS, 3G, 4, 4S
b.iPad 1, 2, 3
c.iPhone 5 / iPod Touch (5th generation)
d.iPad Mini
25) Which of the following classes are thread-safe?
a.NSTask
b.NSTimer
c.NSRunLoop
d.NSBundle
26) Which of the following is NOT supported by the UIResponder class?
a.Selecting text.
b.Cutting, copying and pasting text.
c.Making text bold, changing to italics and underlining text.
d.Changing font size of selected text.
27) Do you need user authorization before accessing a library in an iOS 6 system?
a.Yes
b.No
28) Which of the following classes are used to restore the state of an application?
a.UIAppdelegate new methods for restoration
b.UIViewControllerRestoration
c.RestorePoint
d.UIStateRestore
29) Which of the following tasks can be performed using the UIActivity class?
a.Posting to Facebook and Twitter
b.Mailing and messaging
c.Copying to the pasteboard
d.Adding to Passbook
30) Which of the following devices CANNOT be upgraded to iOS 6?
a.iPhone 3
b.iPhone 3GS
c.iPhone 4
d.iPhone 5
31) What is the valid icon size (in pixels) for an iPhone 5 app?
a.57 x 57
b.144 x 114
c.114 x 114
d.58 x 58
e.57 x 57 and 114 x 114
32) Which of the following is the best way to create an application which supports multiple resolutions?
a.Defining a nib file for each resolution.
b.Using the AutoResize property.
c.Using layout constraints.
d.Creating each view programmatically according to the screen size.
33) Which of the following is NOT true regarding iOS 6?
a.A user can prevent applications from accessing the image library.
b.You can make a check to send request on cellular network.
c.A user can share images from the image library with the help of the share button.
d.Apps can provide routing directions.
34) Which of the following classes of the Foundation framework has been enhanced with new features in iOS 6?
a.NSJsonSerialization
b.NSByteCountFormatter
c.NSFileManager
d.NSCache
e.NSCoder
35) Which of the following classes supports key-value pairs?
a.NSArray
b.NSDictionary
c.NSKeyPair
36) NSObject is:
a.a class.
b.a protocol.
c.Both a and b.
d.Neither a nor b.
37) Do apps designed for iOS 6 save their current state before getting terminated?
a.Yes
b.No
38) Which of the following languages is used to write the Automation test scripts for an iOS application?
a.C
b.AppleScript
c.JavaScript
d.J-Script
39) Consider the following code:
#import #import "AppDelegate.h" int main(int argc, char *argv[]) { @autoreleasepool { int i=0; return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); printf("%i %i %i",i++,++i,i); } }
What will be the output of this code?
a.0 2 2
b.1 2 2
c.1 2 0
40) Which of the following compilers supports ARC?
a.LLVM 4.1
b.GCC (Not sure)
c.LLVM GCC
d.None of the above
41) Which class is used to handle the downloadable content associated with a product purchased from the App Store?
a. NSURLConnection
b. NSURLDownloader
c. SKDownload
d. All of the above
42) Can you use @property without using @synthesize directive?
a. Yes
b. No (Not sure)
43) Which of the following can be used as alternatives to the AutoResize property?
a. UILayoutConstraintAxis (not sure)
b. Fitting Size
c. setBounds
d. Setting multiple frames in nib file (not sure)
44) Which of the following is the minimum supported deployment target with Xcode 4.5?
a. iOS 3.1
b. iOS 4.3 (Not sure)
c. iOS 4.0
d. iOS 5.0
e. iOS 4.5
45) In iOS, which of the following methods are used to change the orientation of a device?
a. shouldAutorotate
b. supportedInterfaceOrientations
c. shouldAutorotateToInterfaceOrientation
46) Which of the following is a property of the UIDevice class that determines the vendor (developer) of an application?
a. identifierForVendor
b. developerId
c. developerIdentifier
d. appVendor
47) Which of the following is true?
a. iPhone supports SQLite as its database.
b. iPhone supports SQL as its database.
c. iPhone supports DB2 as its database.
d. iPhone supports Core Data as its database.
48) Which of the following statements is NOT true regarding Objective-C methods?
a. The methods defined with a + sign (i.e. + (void)method;) can be accessed without using any object of that class, i.e., with the class name.
b. The methods defined with a - sign (i.e. - (void)method;) can only be accessed through objects.
c. The methods defined with a + sign (i.e. + (void)method;) can access instance variables of that class.
d. The methods defined with a + sign (i.e. + (void)method;) can also be used with objects of that class
49) In which format will the statement given below generate the output?
NSArray * array=[NSArray arrayWithObjects:[NSDictionary dictionaryWithObject:@"Test One" forKey:@"KEY"],[NSDictionarydictionaryWithObject:@"Test two"forKey:@"KEY"],[NSDictionary dictionaryWithObject:@"Test three" forKey:@"KEY"],nil];[array writeToFile:@"abc.txt" atomically:YES];
a. SQLite
b. XML
c. JSON
d. Plain text
50) Which of the following is NOT a GKChallengeEventHandlerDelegate method?
a. localPlayerDidSelectChallenge:
b. localPlayerDidReceiveChallenge:
c. remotePlayerDidCompleteChallenge:
d. challengeEventHandler:
51) Which of the following is used in a multithreaded environment?
a. @lock(){
}
b. @synchronized(){
}
c. @synchronize(){
}
d. synchronize(){
}
52) Do the Auto Layout constraints of iOS 6 become enabled when you develop an application for iOS 5 in Xcode?
a. Yes
b. No
c. Depends upon the iOS SDK version
53) Which of the following is NOT a root class in the context of Objective-C?
a. NSObject
b. NSNetworkService
c. NSBase
d. NSProxy
54) Which of following protocols is used for the ViewController state restoration process in iOS 6?
a. UIStateRestoration
b. UIStateRestorationDelegate
c. UIViewControllerRestoration
d. UIViewControllerRestorationDelegate
55) What will be the output of the following statement?
printf("%c %@",67,@"What is the matter dear");
a. Compilation error
b. C @
c. C What is the matter dear
d. Runtime error: unsupported data type to printf statement
e. Something is wrong
56) What function will the following code perform?
x: [UINIB nibWithName:@"obj" bundle:bundle]
y: [[NSBundle mainBundle] loadNibNamed:@"obj.Xib" owner:self options:nil]
a. x will return a nib file object for the file "obj.nib" in bundle.
y will do the same.
b. x will cause an error.
y will run properly and return a nib file object.
c. x will run properly and return a nib file object.
y will load a nib file which has " self" as the file owner and return a void type.
d. x will load a nib file object.
y will crash with an exception.
57) Can you develop applications for iOS 5 with Xcode 4.5?
a. Yes
b. No
58) Can you provide a chat session to gamers with the GameKit framework?
a. Yes
b. No
59) Which of the following classes can be used for thread synchronization?
a.NSCondition
b.NSRecursiveLock
c.NSLock
d.NSSyncronizedThread
60) Which of the following is NOT true regarding the In-App Purchase application?
a.With In-App Purchase, users can buy products from the App Store from within the app.
b.Users can buy content from the iTunes Connect from within In-App Purchase.
c.In-App Purchase allows users to download content from Apple's servers from within the app.
d.Application should manage the work of downloading of any content provided with In-App Purchase.
61) Which of the following frameworks is/are used for accelerometers?
a.UIKit
b.CoreMotion
c.Accelerate
d.All of the above
62) Which of the following architectures are supported by Xcode 4.5?
a.ARMv6
b.ARMv7
c.ARMv8
d.ARMv7s
63) Which of the following features have been added to iOS 6?
a.Laser keyboard / iCloud backup
b.Apple Maps
c.Panorama camera mode
d.FaceTime over Cellular
64) iOS 6 SDK supports which of the following versions of Xcode?
a.4.4
b.4.3
c.4.5
d.4.5.1
65) Which of the following are the correct icon sizes for the Newsstand shelf in iPod?
a.57 x 57
b.190 x 190
c.90 x 90
d.180 x 180
66) Which of the following functions is used to get the CTTextAlignment for the matching NSTextAlignment?
a.CTTextAlignmentFromNSTextAlignment
b.NSTextAlignmentGetCTTextAlignment
c.NSTextAlignmentToCTTextAlignment
d.NSTextAlignmentGetCTTextAlignment
67) Which of the following is the default resizing mode?
a.UIImageResizingModeTile
b.UIImageResizingModeStretch
68) Which of the following is NOT a (delegate) protocol for UICollectionView?
a.UICollectionViewDelegate
b.UICollectionViewDelegateFlowLayout
c.UICollectionViewDelegateGridLayout
69) Which of the following classes is used to detect iPhone location information in iOS 6?
a.MKMapItem
b.MKPlacemarker
c.MKAnnotation
d.MKShape
70) Which of the following provides access to an identifier for serving ads?
a.iAd
b.Ad Support
c.Both a and b
71) Which of the following is NOT a debugging command for the LLDB debugger?
a.po
b.print
c.expression
d.print_r
72) Which of the following methods of the PassKit framework is used to check if the pass library is available?
a.isPassLibraryExist
b.canAccessPassLibrary
c.isPassLibraryAvailable
d.None of the above
73) In iOS 6, Facebook integration has been done using:
a. Facebook.framework
b. Social.framework
c. FBLogin.framework
d. SocialNetworks.framework
74) Which of the following is a new method of the UITableViewDelegate protocol?
a. tableView:indentationLevelForRowAtIndexPath:
b. tableView:performAction:forRowAtIndexPath:withSender:
c. tableView:shouldHighlightRowAtIndexPath:
d. tableView:shouldIndentWhileEditingRowAtIndexPath:
75) Which of the following is NOT true regarding the UISwitch class?
a. It is a Boolean control which is used to control the on/off state of a property.
b. You can specify images for the on/off states to customize this control.
c. The size of the switch control is fixed.
d. The UISwitch control color is not changeable. It cannot be changed with the Interface Builder.
76) What is the correct syntax for printing enumeration LLDB for the following enumeration?
enum TestEnum{TestEnumName,TestEnumSex,TestEnumAge}
a. print TestEnumName
b. print TestEnum::TestEnumName
c. ExprEssion TEstEnum::TEstEnumNamE
d. print_r (TestEnum->TestEnumName)
77) Which of the following classes is used to detect iPhone location information in iOS 6?
a.MKMapItem
b.MKPlacemarker
c.MKAnnotation
d.MKShape
e.None of the above.
78) Which of the following UILabel properties help adjust text within a UILabel?
a.lineBreakMode
b.adjustsFontSizeToFitWidth
c.numberOfLines
d.drawTextInRect:
79) Is it possible to set multiple architecture from Build Settings tab in Xcode for a project?
a.Yes
b.No
c.only in Xcode 4.5 or later
d.only in Xcode 4.5 or previous
80) Which of the following is not an Open Source Framework/Library?
a.MBProgressHUD
b.ASIHTTPRequest
c.RestKit
d.StoreKit
81) What could be the probable result if selector is unknown or undefined?
a.Causes memory leak
b.Causes application to terminate with error
c.Nothing will happen
d.None of above
82) Which of the following properties is preferred for setting formatted text in the iOS 6 UILabel class?
a.text
b.formattedText
c.styledString
d.attributedText
83) In order to make sure that a WebView is allowed to draw on screen only when the request is fully loaded, you use:
a.renderOnComplete
b.drawOnComplete
c.suppressesIncrementalRendering
d.waitForDraw
e.dataDetectorTypes
84) How can the application name of an iOS project be changed?
a.Change Bundle Display Name from info.plist
b.Rename Project
c.Change bundle identifier
d.Create a new project with New name
85) Which of the following font packages are supported by Cocoa-Touch?
a..ttf (True Type Font)
b..ttc (True Type font Collection)
c..otf (Open Type Font)
d..dFont (MAC OS X Data Fork Font)
86) Is it possible to deploy beta build on any device?
a.Yes beta build can be deployed on any iOS device.
b.Beta build can be deployed only on devices that are included in Mobile Provision certificate while compiling build.
c.Beta Build can be deployed only on Simulators.
d.All of above
87) Which of the following classes are used to restore the state of an application?
a.UIApplicationdelegate new methods for restoration
b.UIViewControllerRestoration
c.RestorePoint
d.UIStateRestore
88) Which of the following is the best way to add a UIToolbar above keyboard?
a.-(void)keyboardWillShow:(NSNotification *)notification
{
[self.view addSubview:toolbar];
}
b.-(void)textFieldDidBeginEditing:(UITextField *)textField
{
[self.view addSubview:toolbar];
}
c.Always keep UIToolBar visible on screen.
d.-(void)keyboardWillHide:(NSNotification *)notification
{
[self.view addSubview:toolbar];
}
89) What property in info.plist handles the association of file types in an iPhone application?
a.LSItemContentTypes
b.LSHandlerRank
c.CFBundleTypeName
d.CFBundleTypeRole
90) Which of the following is best JSON library to be used in iOS applications?
a.SBJSON
b.JSON kit
c.Touch JSON
d.None of these
91) Which property of UIBarButtonItem would be use to make a custom back button on the toolbar?
a.initWithCoder:(NSCoder *)
b.initWithImage:(UIImage *) style:(UIBarButtonItemStyle) target:(id) action:(SEL)
c.initWithCustomView:(UIView *)
d.initWithBarButtonSystemItem:UIBarButtonSystemItem target:(id) action:(SEL)
92) Which property would be used to get the UDID of UIDevice on iOS?
a.[UIDevice UDIDString]
b.[UIDevice uniqueIdentifier]
c.-[UIDevice identifierForVendor]
d.None of these
93) Which framework can be used to call SOAP web services in iOS applications?
a.gSOAP
b.ASIHTTP framework
c.wsdl2objc framework
d.None of these
94) How many methods are mandatory for using UICollectionViewDelegate?
a.4
b.2
c.1
d.0
95) What is the new assembly language for the LLVM compiler?
a.Universal Assembly Language (UAL)
b.United Assembly Language (UAL)
c.Unified Assembler Language (UAL)
Should you ever require the services of a hacker, i implore you to try your very best to hire only professionals. CYBERHACKTON@GMAIL.COM will increase your chances of getting your job completed. i was able to hire the services of an elite, asides the fact that i was provided a permanent solution to the service he rendered me but he gave a very efficient customer experience. he carried me along with every process and didn't leave me in the dark.
ReplyDeletecontact; CYBERHACKTON@GMAIL.COM
*University grades changing
*Twitters hack
*email accounts hack
*Websites hack
*Facebook hack
*Control devices remotely hack
*Burner Numbers hack
*Any social media account hack
*Android & iPhone Hack
*Text message interception hack
How I Got My Blank ATM Card And Became Weathy...
ReplyDeleteI'am Elizabeth Russ, me and my husband are here to testify about how we use Shawn Pablo ATM black card to make money and also have our own business today. Go get your blank ATM card today and be among the lucky ones. This PROGRAMMED blank ATM card is capable of hacking into any ATM machine, anywhere in the world. It has really changed our life for good and now we can say we are rich and we can never be poor again. You can withdraw the maximum of $ 10,000 daily We can proudly say our business is doing fine and we have up to 20,000 000 (20 millions dollars in our account) Is not illegal, there is no risk of being caught because it has been programmed in such a way that it is not traceable, it also has a technique that makes it impossible for the CCTV to detect you.. For details and cost on how to get yours today, email the hackers on: fastatmhackers@gmail.com
My husband was so smooth at hiding her infidelity and I had no proof for months, I saw a recommendation about a Private investigator and decided to give him a try.. the result was incredible because all my cheating husbands text messages, whatsapp, facebook and his phone conversations was sent directly to my Personal computer. Mr James helped me put a round-the-clock monitoring on him and I got concrete evidence and gave it to my lawyer..I say no to infidelity if your husband is an expert at hiding his cheating adventures contact him through Gmail he will help you(Worldcyberhackers) or WhatsApp : +12678773020
ReplyDeleteNeed The To Hire A Hacker❓ Then contact PYTHONAX✅
ReplyDeleteThe really amazing deal about contacting PYTHONAX is that the Hack done by us can’t get traced to you, as every Hacking job we do is strongly protected by our Firewall. It’s like saying if anyone tries to trace the Hack, it will lead them to us and we block whatever actions they are doing.
We have been Invisible to Authorities for almost a decade now and if you google PYTHONAX, not really about us comes out, you can only see comments made by us or about us.
Another Amazing thing to you benefit from Hiring our Hackers is that you get a Legit and the best Hacking service, As we provide you with Professional Hackers who have their Hacking Areas of specialization.
We perform every Hack there is, using special Hacking tools we get from the dark web.
Some list of Hacking Services we provide are-:
▪️Phone Hacking & Cloning ✅
▪️Computer Hacking ✅
▪️Emails & Social Media Account Hacking✅
▪️Recovering Deleted Files✅
▪️Tracking & Finding People ✅
▪️Hunting Down Scammers✅
▪️Hack detecting ✅
▪️Stealing/Copying Files & Documents From Restricted Networks and Servers ✅
▪️Bitcoin Multiplication✅
▪️Binary Option Money Recovery ✅
▪️Forex Trading Money Recovery✅
▪️IQ Option Money Recovery✅
And lots more......
Whatever Hacking service you require, just give us an Email to the Emails Address provided below.
pythonaxhacks@gmail.com
pythonaxservices@gmail.com
2020 © PYTHONAX.
Hello guys, contact deadlyhacker01@gmail.com or WhatsApp: +1 3478577580 if you need to hire a real hacker to remotely monitor your spouse's cell phone.
ReplyDeleteHello everyone I want to introduce you guys to a group a private investigators who can help you with information you need in any situation in life and they are ready to follow you step by step until your case is cleared just contact +17078685071 and you will happily ever after
ReplyDeletePremiumhackservices@gmail.com