SlideShare una empresa de Scribd logo
1 de 12
iPhone Interview Questions and
Answers.
http://www.tops-int.com
http://www.tops-int.com/iphone-training.html
TOPS Technologies - iPhone training in ahmedabad
http://www.tops-int.com/iphone-training.html
1
iPhone Interview Questions and
Answers.
TOPS Technologies - iPhone training in ahmedabad
2
• Module 1 – Fundamentals
• Module 2 – Learning the Language (Objective C)
• Module 3 – IPhone OS
• Module 4 – Application Development in Iphone
• Module 5 – Database
• Module 6 – Applicability to Industrial Projects
• Tools
What is iPhone OS?
TOPS Technologies - iPhone training in ahmedabad
3
• iPhone OS runs on iPhone and iPod touch
devices. Hardware devices are managed by
iPhone OS and provides the technologies
needed for implementing native applications
on the phone. The OS ships with several
system applications such as Mail, Safari,
Phone, which provide standard services to
the user.
 What is iPhone sdk?
TOPS Technologies - iPhone training in ahmedabad
4
•  iPhone SDK is available with tools and
interfaces needed for developing, installing
and running custom native applications.
Native applications are built using the iPhone
OS’s system frameworks and Objective-C
language and run directly on iPhone OS.
Native applications are installed physically on
a device and can run in presence or absence
of network connection.
What is iPhone Architecture? 
TOPS Technologies - iPhone training in ahmedabad
5
• It is similar to MacOS X architecture. It acts
as an intermediary between the iPhone and
iPod hardware an the appearing applications
on the screen. The user created applications
never interact directly with the appropriate
drivers, which protects the user applications
from changes to the hardware.
 What is MVC ? MVC Architecture of 
iPhone App.
TOPS Technologies - iPhone training in ahmedabad
6
Here are the reasons why we should use the MVC (Model View Controller)design pattern.
1. They are resuable : When the problems occurs, there is no need to invent a new
solution, we just have to follow the pattern and adopt it as necessary.
2. They are expressive: By using the MVC design pattern our application becomes more
expressive.
1). Model: The model object knows about all the data that need to be displayed. It is model
who is aware about all the operations that can be applied to transform that object. It only
represents the data of an application. The model represents enterprise data and the business
rules that govern access to and updates of this data. Model is not aware about the presentation
data and how that data will be displayed to the browser.
2). View: The view represents the presentation of the application. The view object refers to the
model. It uses the query methods of the model to obtain the contents and renders it. The view
is not dependent on the application logic. It remains same if there is any modification in the
business logic. In other words, we can say that it is the responsibility of the of the view's to
maintain the consistency in its presentation when the model changes.
3). Controller: Whenever the user sends a request for something then it always go through
the controller. The controller is responsible for intercepting the requests from view and passes
it to the model for the appropriate action. After the action has been taken on the data, the
controller is responsible for directing the appropriate view to the user. In GUIs, the views and
the controllers often work very closely together.
What are the ways to store data
localy on device ?
TOPS Technologies - iPhone training in ahmedabad
7
 We store data localy in device through:
1. Plist.
2. NSUserDefaults.
3. SQLite.
4. CoreData.
Difference between COCOA,COCOA
touch and objective C ?
TOPS Technologies - iPhone training in ahmedabad
8
• Objective C is a dynamic programming language - a bit like C++
and a bit like Java.
Cocoa is the application framework for Mac OS X. Cocoa Touch is
the application framework for iPhone and iPod Touch - very similar
to Cocoa. Cocoa is commonly referred to as the combination of
the Foundation and AppKit frameworks, while Cocoa Touch is the
combination of the Foundation and UIKit frameworks. Cocoa and
Cocoa Touch sit on top of other collections of frameworks to
create the API stacks. The other layers are Media, Core Services
and Core OS. The main difference between Cocoa and Cocoa
touch is that the UI classes and APIs aren't the same as Mac OS
X, so instead of NSTextField, you have UITextField. Many of the
classes share the same functionality and can be ported quite
easily by simply changing the class name, though most will require
some more changes, but usually nothing too heavy. There are also
some differences between the Foundation frameworks in Cocoa
and Cocoa Touch, most commonly missing classes, eg, Cocoa
has NSHost and Cocoa Touch doesn't.
Difference between shallow copy and deep
copy?
TOPS Technologies - iPhone training in ahmedabad
9
• Shallow copy is also known as address copy. In this process
you only copy address not actual data while in deep copy
you copy data. Suppose there are two objects A and B. A is
pointing to a different array while B is pointing to different
array. Now what I will do is following to do shallow copy.Char
*A = {‘a’,’b’,’c’};
Char *B = {‘x’,’y’,’z’};
B = A;
Now B is pointing
is at same location where A pointer is pointing.Both A and B
in this case sharing same data. if change is made both will
get altered value of data.Advantage is that coping process is
very fast and is independent of size of array.while in deep
copy data is also copied. This process is slow but Both A
and B have their own copies and changes made to any
copy, other will copy will not be affected.
Question and answer
 What is the purpose of UIWindow object?
Ans. The presentation of one or more views on a screen is coordinated by 
UIWindow object.
* Whats the difference between frame and bounds?
Ans. The frame of a view is the rectangle, expressed as a location (x,y) and 
size (width,height) relative to the superview it is contained within. The 
bounds of a view is the rectangle, expressed as a location (x,y) and size 
(width,height) relative to its own coordinate system (0,0).
* What is @interface?
Ans. It’s a keyword used to declare the Class.
* What is @implementation?
Ans. It’s a keyword used to define the Class.
TOPS Technologies - iPhone training in ahmedabad
10
Question and answer
 Garbage collector in iPhone?
Ans. iOS 5.0 has got the ARC ( Automated reference counting ). Objective 
C does not have a garbage collector rather it uses the reference counting 
algorithm to manage the memory. This was the developers task until Apple 
launched iOS 5.0. Again if you are targeting iOS 4.0 or earlier , ARC is no 
more a choice for you.
* What is delegate?
Ans.  Delegate is an object that handles the events happening on an 
object. To do that delegate has to follow a protocol specifying the task it is 
going to handle .
* What is @synthesize?
Ans. We use @synthesize to generate getters and setters automatically 
from compiler. We declare properties and then generate getter and setter 
method by using @synthesize.
TOPS Technologies - iPhone training in ahmedabad
11
iPhone training institute
TOPS Technologies - iPhone training in ahmedabad
12

Más contenido relacionado

Destacado

Executive communication group discussion
Executive communication  group discussionExecutive communication  group discussion
Executive communication group discussion
Roy Thomas
 
iOS Application Lifecycle
iOS Application LifecycleiOS Application Lifecycle
iOS Application Lifecycle
Siva Prasad K V
 
Core Graphics & Core Animation
Core Graphics & Core AnimationCore Graphics & Core Animation
Core Graphics & Core Animation
Andreas Blick
 

Destacado (13)

Creating Container View Controllers
Creating Container View ControllersCreating Container View Controllers
Creating Container View Controllers
 
Core Animation
Core AnimationCore Animation
Core Animation
 
Building Modern Audio Apps with AVAudioEngine
Building Modern Audio Apps with AVAudioEngineBuilding Modern Audio Apps with AVAudioEngine
Building Modern Audio Apps with AVAudioEngine
 
Mastering Media with AV Foundation
Mastering Media with AV FoundationMastering Media with AV Foundation
Mastering Media with AV Foundation
 
Executive communication group discussion
Executive communication  group discussionExecutive communication  group discussion
Executive communication group discussion
 
Master Video with AV Foundation
Master Video with AV FoundationMaster Video with AV Foundation
Master Video with AV Foundation
 
OOPS features using Objective C
OOPS features using Objective COOPS features using Objective C
OOPS features using Objective C
 
Composing and Editing Media with AV Foundation
Composing and Editing Media with AV FoundationComposing and Editing Media with AV Foundation
Composing and Editing Media with AV Foundation
 
Animation in iOS
Animation in iOSAnimation in iOS
Animation in iOS
 
iOS Application Lifecycle
iOS Application LifecycleiOS Application Lifecycle
iOS Application Lifecycle
 
Core Graphics & Core Animation
Core Graphics & Core AnimationCore Graphics & Core Animation
Core Graphics & Core Animation
 
Graphics Libraries
Graphics LibrariesGraphics Libraries
Graphics Libraries
 
Objective-C for Java Developers
Objective-C for Java DevelopersObjective-C for Java Developers
Objective-C for Java Developers
 

Más de TOPS Technologies

Web designing live project training
Web designing live project trainingWeb designing live project training
Web designing live project training
TOPS Technologies
 
08 10-2013 gtu projects - develop final sem gtu project in i phone
08 10-2013 gtu projects - develop final sem gtu project in i phone08 10-2013 gtu projects - develop final sem gtu project in i phone
08 10-2013 gtu projects - develop final sem gtu project in i phone
TOPS Technologies
 

Más de TOPS Technologies (20)

Learn java objects inheritance-overriding-polymorphism
Learn java objects  inheritance-overriding-polymorphismLearn java objects  inheritance-overriding-polymorphism
Learn java objects inheritance-overriding-polymorphism
 
Surat tops conducted one hour seminar on “corporate basic skills”
Surat tops conducted  one hour seminar on “corporate basic skills”Surat tops conducted  one hour seminar on “corporate basic skills”
Surat tops conducted one hour seminar on “corporate basic skills”
 
Word press interview question and answer tops technologies
Word press interview question and answer   tops technologiesWord press interview question and answer   tops technologies
Word press interview question and answer tops technologies
 
How to install android sdk
How to install android sdkHow to install android sdk
How to install android sdk
 
Software testing and quality assurance
Software testing and quality assuranceSoftware testing and quality assurance
Software testing and quality assurance
 
Basics in software testing
Basics in software testingBasics in software testing
Basics in software testing
 
Learn advanced java programming
Learn advanced java programmingLearn advanced java programming
Learn advanced java programming
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
What is ui element in i phone developmetn
What is ui element in i phone developmetnWhat is ui element in i phone developmetn
What is ui element in i phone developmetn
 
How to create android applications
How to create android applicationsHow to create android applications
How to create android applications
 
Java live project training
Java live project trainingJava live project training
Java live project training
 
Software testing live project training
Software testing live project trainingSoftware testing live project training
Software testing live project training
 
Web designing live project training
Web designing live project trainingWeb designing live project training
Web designing live project training
 
Php live project training
Php live project trainingPhp live project training
Php live project training
 
iPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologiesiPhone training in ahmedabad by tops technologies
iPhone training in ahmedabad by tops technologies
 
Php training in ahmedabad
Php training in ahmedabadPhp training in ahmedabad
Php training in ahmedabad
 
Java training in ahmedabad
Java training in ahmedabadJava training in ahmedabad
Java training in ahmedabad
 
08 10-2013 gtu projects - develop final sem gtu project in i phone
08 10-2013 gtu projects - develop final sem gtu project in i phone08 10-2013 gtu projects - develop final sem gtu project in i phone
08 10-2013 gtu projects - develop final sem gtu project in i phone
 
GTU PHP Project Training Guidelines
GTU PHP Project Training GuidelinesGTU PHP Project Training Guidelines
GTU PHP Project Training Guidelines
 
GTU Asp.net Project Training Guidelines
GTU Asp.net Project Training GuidelinesGTU Asp.net Project Training Guidelines
GTU Asp.net Project Training Guidelines
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

iPhone Interview Question And Answer Latest For fresher

  • 1. iPhone Interview Questions and Answers. http://www.tops-int.com http://www.tops-int.com/iphone-training.html TOPS Technologies - iPhone training in ahmedabad http://www.tops-int.com/iphone-training.html 1
  • 2. iPhone Interview Questions and Answers. TOPS Technologies - iPhone training in ahmedabad 2 • Module 1 – Fundamentals • Module 2 – Learning the Language (Objective C) • Module 3 – IPhone OS • Module 4 – Application Development in Iphone • Module 5 – Database • Module 6 – Applicability to Industrial Projects • Tools
  • 3. What is iPhone OS? TOPS Technologies - iPhone training in ahmedabad 3 • iPhone OS runs on iPhone and iPod touch devices. Hardware devices are managed by iPhone OS and provides the technologies needed for implementing native applications on the phone. The OS ships with several system applications such as Mail, Safari, Phone, which provide standard services to the user.
  • 4.  What is iPhone sdk? TOPS Technologies - iPhone training in ahmedabad 4 •  iPhone SDK is available with tools and interfaces needed for developing, installing and running custom native applications. Native applications are built using the iPhone OS’s system frameworks and Objective-C language and run directly on iPhone OS. Native applications are installed physically on a device and can run in presence or absence of network connection.
  • 5. What is iPhone Architecture?  TOPS Technologies - iPhone training in ahmedabad 5 • It is similar to MacOS X architecture. It acts as an intermediary between the iPhone and iPod hardware an the appearing applications on the screen. The user created applications never interact directly with the appropriate drivers, which protects the user applications from changes to the hardware.
  • 6.  What is MVC ? MVC Architecture of  iPhone App. TOPS Technologies - iPhone training in ahmedabad 6 Here are the reasons why we should use the MVC (Model View Controller)design pattern. 1. They are resuable : When the problems occurs, there is no need to invent a new solution, we just have to follow the pattern and adopt it as necessary. 2. They are expressive: By using the MVC design pattern our application becomes more expressive. 1). Model: The model object knows about all the data that need to be displayed. It is model who is aware about all the operations that can be applied to transform that object. It only represents the data of an application. The model represents enterprise data and the business rules that govern access to and updates of this data. Model is not aware about the presentation data and how that data will be displayed to the browser. 2). View: The view represents the presentation of the application. The view object refers to the model. It uses the query methods of the model to obtain the contents and renders it. The view is not dependent on the application logic. It remains same if there is any modification in the business logic. In other words, we can say that it is the responsibility of the of the view's to maintain the consistency in its presentation when the model changes. 3). Controller: Whenever the user sends a request for something then it always go through the controller. The controller is responsible for intercepting the requests from view and passes it to the model for the appropriate action. After the action has been taken on the data, the controller is responsible for directing the appropriate view to the user. In GUIs, the views and the controllers often work very closely together.
  • 7. What are the ways to store data localy on device ? TOPS Technologies - iPhone training in ahmedabad 7  We store data localy in device through: 1. Plist. 2. NSUserDefaults. 3. SQLite. 4. CoreData.
  • 8. Difference between COCOA,COCOA touch and objective C ? TOPS Technologies - iPhone training in ahmedabad 8 • Objective C is a dynamic programming language - a bit like C++ and a bit like Java. Cocoa is the application framework for Mac OS X. Cocoa Touch is the application framework for iPhone and iPod Touch - very similar to Cocoa. Cocoa is commonly referred to as the combination of the Foundation and AppKit frameworks, while Cocoa Touch is the combination of the Foundation and UIKit frameworks. Cocoa and Cocoa Touch sit on top of other collections of frameworks to create the API stacks. The other layers are Media, Core Services and Core OS. The main difference between Cocoa and Cocoa touch is that the UI classes and APIs aren't the same as Mac OS X, so instead of NSTextField, you have UITextField. Many of the classes share the same functionality and can be ported quite easily by simply changing the class name, though most will require some more changes, but usually nothing too heavy. There are also some differences between the Foundation frameworks in Cocoa and Cocoa Touch, most commonly missing classes, eg, Cocoa has NSHost and Cocoa Touch doesn't.
  • 9. Difference between shallow copy and deep copy? TOPS Technologies - iPhone training in ahmedabad 9 • Shallow copy is also known as address copy. In this process you only copy address not actual data while in deep copy you copy data. Suppose there are two objects A and B. A is pointing to a different array while B is pointing to different array. Now what I will do is following to do shallow copy.Char *A = {‘a’,’b’,’c’};
Char *B = {‘x’,’y’,’z’};
B = A;
Now B is pointing is at same location where A pointer is pointing.Both A and B in this case sharing same data. if change is made both will get altered value of data.Advantage is that coping process is very fast and is independent of size of array.while in deep copy data is also copied. This process is slow but Both A and B have their own copies and changes made to any copy, other will copy will not be affected.
  • 10. Question and answer  What is the purpose of UIWindow object? Ans. The presentation of one or more views on a screen is coordinated by  UIWindow object. * Whats the difference between frame and bounds? Ans. The frame of a view is the rectangle, expressed as a location (x,y) and  size (width,height) relative to the superview it is contained within. The  bounds of a view is the rectangle, expressed as a location (x,y) and size  (width,height) relative to its own coordinate system (0,0). * What is @interface? Ans. It’s a keyword used to declare the Class. * What is @implementation? Ans. It’s a keyword used to define the Class. TOPS Technologies - iPhone training in ahmedabad 10
  • 11. Question and answer  Garbage collector in iPhone? Ans. iOS 5.0 has got the ARC ( Automated reference counting ). Objective  C does not have a garbage collector rather it uses the reference counting  algorithm to manage the memory. This was the developers task until Apple  launched iOS 5.0. Again if you are targeting iOS 4.0 or earlier , ARC is no  more a choice for you. * What is delegate? Ans.  Delegate is an object that handles the events happening on an  object. To do that delegate has to follow a protocol specifying the task it is  going to handle . * What is @synthesize? Ans. We use @synthesize to generate getters and setters automatically  from compiler. We declare properties and then generate getter and setter  method by using @synthesize. TOPS Technologies - iPhone training in ahmedabad 11