iOS Interview Questions -Part i
iOS Interview Questions -Part ii
iOS Interview Questions -Part iii
iOS Interview Questions -Part iv
iOS Interview Questions -Part v
iOS Interview Questions -Part vi
iOS Interview Questions -Part vii
iOS Interview Questions -Part viii
iOS Interview Questions -Part ix
iOS Interview Questions -Part ii
iOS Interview Questions -Part iii
iOS Interview Questions -Part iv
iOS Interview Questions -Part v
iOS Interview Questions -Part vi
iOS Interview Questions -Part vii
iOS Interview Questions -Part viii
iOS Interview Questions -Part ix
View controller objects takes care of the presentation of app’s content on the screen. A view controller is used to manage a single view along with the collection of subviews. It makes its views visible by installing them in the app’s window.
200.Which is the super class of all view controller objects?
UIViewController class. The functionality for loading views, presenting them, rotating them in response to device rotations, and several other standard system behaviors are provided by UIViewController class.
UIViewController class. The functionality for loading views, presenting them, rotating them in response to device rotations, and several other standard system behaviors are provided by UIViewController class.
201.What is the purpose of UIWindow object?
The presentation of one or more views on a screen is coordinated by UIWindow object.
The presentation of one or more views on a screen is coordinated by UIWindow object.
202.How do you change the content of your app in order to change the views displayed in the corresponding window?
To change the content of your app, you use a view controller to change the views displayed in the corresponding window. Remember, window itself is never replaced.
To change the content of your app, you use a view controller to change the views displayed in the corresponding window. Remember, window itself is never replaced.
203.Define view object.
Views along with controls are used to provide visual representation of the app content. View is an object that draws content in a designated rectangular area and it responds to events within that area.
Views along with controls are used to provide visual representation of the app content. View is an object that draws content in a designated rectangular area and it responds to events within that area.
204.Apart from incorporating views and controls, what else an app can incorporate?
Apart from incorporating views and controls, an app can also incorporate Core Animation layers into its view and control hierarchies.
Apart from incorporating views and controls, an app can also incorporate Core Animation layers into its view and control hierarchies.
205.What are layer objects and what do they represent?
Layer objects are data objects which represent visual content. Layer objects are used by views to render their content. Custom layer objects can also be added to the interface to implement complex animations and other types of sophisticated visual effects.
Layer objects are data objects which represent visual content. Layer objects are used by views to render their content. Custom layer objects can also be added to the interface to implement complex animations and other types of sophisticated visual effects.
206.What is App Bundle?
When you build your iOS app, Xcode packages it as a bundle. Abundle is a directory in the file system that groups related resources together in one place. An iOS app bundle contains the app executable file and supporting resource files such as app icons, image files, and localized content.
When you build your iOS app, Xcode packages it as a bundle. Abundle is a directory in the file system that groups related resources together in one place. An iOS app bundle contains the app executable file and supporting resource files such as app icons, image files, and localized content.
207.Define property?
It is used to access instance variables outside of class.
It is used to access instance variables outside of class.
208.Why synthesized is used?
After declaring property we will have to tell compiler instantly by using synthesize directive. This tells the compiler to generate setter and getter methods.
After declaring property we will have to tell compiler instantly by using synthesize directive. This tells the compiler to generate setter and getter methods.
209.What is retaining?
It is reference count for an object.
It is reference count for an object.
210.What is webservice?
To get data in form of xml ,by using this we can get data from a server.
211.What is parsing?
To get data from web service we use parsing.
To get data from web service we use parsing.
212.which xml parser we use on iphone?
“NSXML” Parser.
“NSXML” Parser.
213.Which type of parse does iphone support?
“SAX” parser.
“SAX” parser.
214.Name those classes used to establish connection b/w application to webserver?
(a)NSURL
(b)NSURL REQUEST
(c)NSURL CONNECTION.
(a)NSURL
(b)NSURL REQUEST
(c)NSURL CONNECTION.
215.Tell the difference between DOM and SAX Parser?
(a)Dom is “documents based parser”.
b)SAX is a event driven parser
(a)Dom is “documents based parser”.
b)SAX is a event driven parser
216.Name three method of NSXML parser.
(1)did start element
(2)did end element
(3)found character.
217.Tell methods used in NSURLConnection
(1)Connection did receive Response
(2)Connection did recevice Datat
(3)Connection fail with error
(4)Connection did finish loading.
(1)Connection did receive Response
(2)Connection did recevice Datat
(3)Connection fail with error
(4)Connection did finish loading.
218.What is json-parser?
JSON(Java script object notation)is a parser used to get data from web Server.
JSON(Java script object notation)is a parser used to get data from web Server.
219.By default which things are in the application?
iPhone applications by default have 3 things
1.main: entry point of application.
2.Appdelegate: perform basic application and functionality.
3.Window: provide uiinterface.
iPhone applications by default have 3 things
1.main: entry point of application.
2.Appdelegate: perform basic application and functionality.
3.Window: provide uiinterface.
220.Tell me about tab bar controller?
It is used to display the data on the view.
It is used to display the data on the view.
221.Which are the protocols used in table view?
Table view contain two delegate protocols
(1) Uitable view data source
(2).Uitable view delegate.
ui view table view data source three method namely
(1)No of sections.
(2)No of rows in sections.
(3)Cell for row index path row.
In ui table view delegate contain
Did select row at index path row
Table view contain two delegate protocols
(1) Uitable view data source
(2).Uitable view delegate.
ui view table view data source three method namely
(1)No of sections.
(2)No of rows in sections.
(3)Cell for row index path row.
In ui table view delegate contain
Did select row at index path row
222.Name data base used in iphone?
(1)Sql lite
2)Plist
3)Xml
4)Core Data
(1)Sql lite
2)Plist
3)Xml
4)Core Data
223.Tell four frameworks used in iphone?
(1)Ui kit framework
(2)Map kit framework
(3)ADI kit framework
(4)Core data framework
(5)core foundation framework
(1)Ui kit framework
(2)Map kit framework
(3)ADI kit framework
(4)Core data framework
(5)core foundation framework
224.Tell me about single inheritance in objective-c?
Objective c subclass can derived from a single parent class.It is called “single inheritance”.
Objective c subclass can derived from a single parent class.It is called “single inheritance”.
225.Tell me about the MVC architecture?
M-model, V-view, C-controller
Main advantage of MVC architecture is to provide “reusability and security” by separating the layer by using MVC architecture.
Model: it is a class model is interact with database.
Controller: controller is used for by getting the data from model and controls the views.Display the information in views.
M-model, V-view, C-controller
Main advantage of MVC architecture is to provide “reusability and security” by separating the layer by using MVC architecture.
Model: it is a class model is interact with database.
Controller: controller is used for by getting the data from model and controls the views.Display the information in views.
226.What is the instance methods?
Instance methods are essentially code routines that perform tasks so instances of clases we create methods to get and set the instance variables and to display the current values of these variables.
Declaration of instance method :
– (void)click me: (id)sender;
Void is return type which does not giving any thing here.
Click me is method name.
Id is data type which returns any type of object.
Instance methods are essentially code routines that perform tasks so instances of clases we create methods to get and set the instance variables and to display the current values of these variables.
Declaration of instance method :
– (void)click me: (id)sender;
Void is return type which does not giving any thing here.
Click me is method name.
Id is data type which returns any type of object.
227.What is the class method?
Class methods work at the class level and are common to all instance of a class these methods are specific to the class overall as opposed to working on different instance data encapsulated in each class instance.
@interface class name :ns object
{
}
+(class name *)new alloc:
-(int)total open
Class methods work at the class level and are common to all instance of a class these methods are specific to the class overall as opposed to working on different instance data encapsulated in each class instance.
@interface class name :ns object
{
}
+(class name *)new alloc:
-(int)total open
228.What is data encapsulation?
Data is contained within objects and is not accessible by any other than via methods defined on the class is called data encapsulation.
Data is contained within objects and is not accessible by any other than via methods defined on the class is called data encapsulation.
229.What is accessor methods?
Accessor methods are methods belonging to a class that allow to get and set the values of instance valuables contained within the class.
Accessor methods are methods belonging to a class that allow to get and set the values of instance valuables contained within the class.
230.What is synthesized accessor methods?
Objective-c provides a mechanism that automates the creation of accessor methods that are called synthesized accessor methods that are implemented through use of the @property and @synthesized.
Objective-c provides a mechanism that automates the creation of accessor methods that are called synthesized accessor methods that are implemented through use of the @property and @synthesized.
231.How to access the encapsulated data in objective-c?
(a)Data encapsulation encourages the use of methods to +get and set the values of instance variables in a class.
(b)But the developer to want to directly access an instance variable without having to go through an accessor method.
(c) In objective-c syntax for an instance variable is as follow [class instance variable name]
(a)Data encapsulation encourages the use of methods to +get and set the values of instance variables in a class.
(b)But the developer to want to directly access an instance variable without having to go through an accessor method.
(c) In objective-c syntax for an instance variable is as follow [class instance variable name]
FabGreenTechnologies-Madivala
FabGreenTechnologies.com
FabGreenTechnologies.com
No comments:
Post a Comment