Showing posts with label iphone interview questions. Show all posts
Showing posts with label iphone interview questions. Show all posts

Friday, 9 November 2012

Iphone developer technical Task : Enhancements in the App

Here is a simple Unit converter App.
Description : If you Enter any integer in the textfields,it gives the conversions as per the mentioned format.

So the actual task goes here..

It needs few enhancements that can be implemented with some additional piece of logic.
Find out where the App is lacking the behaviour of unit Conversion interms of UI(user interface) and implement them.

For your reference the actual code:

unitConverter.h


#import <UIKit/UIKit.h>
@interface ViewController : UIViewController<UITextFieldDelegate>
{
IBOutlet UITextField *txt1;
IBOutlet UITextField *txt2;
IBOutlet UITextField *txt3;
IBOutlet UITextField *txt4;
IBOutlet UIButton *btn;

}

-(IBAction)showValues:(id)sender;
@end

unitConverter.m


-(IBAction)showValues:(id)sender
{

if ([txt2 isFirstResponder])
{

NSString *inputString = [[NSString alloc]initWithFormat:txt2.text];
int value = [inputString intValue];
NSLog(@"%x",value);
txt3.text=[NSString stringWithFormat:@"%x", value];
txt2.text=[NSString stringWithFormat:@"%o", value];
txt4.text=[NSString stringWithFormat:@"%d", value];
}


else if ([txt3 isFirstResponder])
{

NSString *inputString = [[NSString alloc]initWithFormat:txt3.text];
int value = [inputString intValue];
NSLog(@"%x",value);
txt3.text=[NSString stringWithFormat:@"%x", value];
txt2.text=[NSString stringWithFormat:@"%o", value];
txt4.text=[NSString stringWithFormat:@"%d", value]; }

else if ([txt4 isFirstResponder])
{

NSString *inputString = [[NSString alloc]initWithFormat:txt4.text];
int value = [inputString intValue];
NSLog(@"%x",value);
txt3.text=[NSString stringWithFormat:@"%x", value];
txt2.text=[NSString stringWithFormat:@"%o", value];
txt4.text=[NSString stringWithFormat:@"%d", value];
}

}

- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
[textField resignFirstResponder];
return YES;
}

ScreenShots for your understanding.



Note : Please do Mapping in the xib file inorder to make the app work in the device or simulator.As there is a delegate for the textField (hide keypad) make sure that you do reverse mapping for the delegate to the file's owner.




Friday, 8 June 2012

Photon InfoTech Chennai Technical Interview Questions



1.    What r the APIs  u used in ur Projects?

2.    Diff  bw Synchronous and Asynchronous?

3.    NSOperation and NSOperationQueue?

4.    Explain about Memory management?

5.    Diff  bw Release and AutoRelease?

6.    Other ways to create object than alloc?

7.    Methods in NSObject?

8.    What is potocol?type?How do implement?

9.    Diff bw Interface and Protocol?

10.    What is UITableView?how do u Customize ur Tableview?

11.    NSCopying Protocol?

12.    Do u work on Push Notification?

13.    Do u work on WebView?

14.    Diff  bw Frame and Bound?



Tags:PhotonInfoTech Chennai   29-11-2011 Telephonic

Prokarma -Technical Interview questions




1.      Explain basic OOPs Concepts?

2.      What is Inheritance and Why?

3.      Types of Polymorphism?

4.      Explain Memorymanagement in Objective-C?

5.      What happens when we release a object?

6.      Do you need to call dealloc() method?

7.      Difference between  Retain and Copy?

8.      Difference between Release and Autorelease?

9.      What is Singleton Class? How to create your own singleton class?

10.      What is Property ,Synthesize and how to create your own setter and getter methods?

11.      What is Categeory,why,Disadvantages?

12.      Difference between Categeory and Inheritance?

13.      How do you handle exceptions in Objective-C?

14.      What is Delegate?

15.      What is CallBack?

16.      Have you worked on Protocol?




Tags:Prokarma Tech 23-11-2011 Telephonic

Verizon Technical Interview Questions



1.      Tell me about your Projects

2.      Tableview Datasource and delegate methods

3.      how does Memory allocated for the cell in tableview if take 100000  entities?

4.      what is property,explain each ans every attribute in property?

5.      what is @synthesize and why do we synthesize property?

6.      How to you use setter snd getter methods?

7.      how do you create your own setter snd getter methods?

8.      what is the differencee beetween NONATOMIC and ATOMIC?

9.      What is difference between Retain and Copy?

10.     what is Mutablecopy?

11.      What is MemoryLeak,how do you find it,overcome it?

12.      What is Protocol,Types of Protocols and Explain InformalProtocols with example?

13.      What is  Categeory ?How do Implement Categeory?

14.      What are the steps to follow for Webservice?

15.      What is the method used for synchronous reuest?

16.      What are the delegate methods used in webservice?

17.  Authentication in Webservice?

18.  what is xmlParsing?Type of XmlParsing?

19.  what is the class you used for xmlparing and what are other classes that can be used for xmlparsing?

20.  what is happening while SAX and DOM?

21.  difference between SAX and DOM?

22.  SAX is synchronous or asynchronous?

23.  Have you worked on XML?

Find Answers at Iphone Objective C Topics


Tags:Verizon 19-11-2011 face to face Iphone technical Questions

Thursday, 26 April 2012

Cerulean Information Technology Interview Task


Draw an Area chart using iPhone SDk. We need a class reusable class 
that will accept an array of values say sales count. Then the app should 
draw an area chart using this data. There should be X and Y axis bars. 
Between the chart and X axis line fill a gradient color. The input list  
will be having 5 - 10 set of values. The app should be free of any kind 
of crashes and memory leaks.