SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
iOS 5 App Development Objective C
Start Test
Study First
Subjects
:
it-skills
,
apple
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. NSArray - important methods...
do so in viewDidLoad
Core Graphics Framework
instance variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
2. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
UIView
selector[message]
lowercase - uppercase
view
3. NSArray - class...
class's
ordered collection of objects - immutable
CGFloat
instance variables
4. A message is always contained in square brackets - and has three parts
CGRect
variable scope - if defined within a block
is an instance of that class
receiver - selector - arguments
5. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
first responder
attributes - behavior
Generic object wrapper for other non-object data types
instance variables
6. An instance is a device for maintaining state. It's a box for _ of data.
will be ignored
object
storage
the message release to all its entries
7. Prefixing a character string with an @ symbol [specific - NSString class]...
instance variables
alloc - singleton - informational utility method?
create a XIB file
creates an instance of NSString that holds the character string
8. After accessors have been defined in the header file...
pointers
view
upper
they need to be defined in the implementation file
9. A view is a subclass of _
UIView
message
has one root view controller
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
10. Primitives and C Structures...
data source - view controller and delegate
cannot be added to an array
ordered collection of objects - immutable
in the dealloc - or when a Controller's view is 'unloaded'
11. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
CGFloat
parentViewController
initializer
Generic object wrapper for other non-object data types
12. Each class picks one _ as it's designated initializer....
initializer
pointer - class
its dataSource
reuse your cells
13. To load a Xib file manually - you use _
NSLog routine
NSBundle
Is a placeholder object
first responder
14. Property List...
collection of collections - NSArray of an NSArray
group of global functions already assigned to this class
callbacks
only the class and subclasses can access
15. Use of class methods - there are three...
arguments[message]
CF - Ref
Generic object wrapper for other non-object data types
alloc - singleton - informational utility method?
16. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
is called every time the event occurs
@synthesize
copy - retain
object
17. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
group of global functions already assigned to this class
declaration and initialization of a variable
CGRect
first responder
18. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
initializer
receiver[message]
is an instance of that class
19. In general - class methods tend to be factory methods - that is...
methods for generating an instance
only the innermost loop in which the break is executed is terminated
create a XIB file
Is a placeholder object
20. In Cocoa Touch - the table view asks another object _ what it should display...
cannot be added to an array
Functions
pointer - class
its dataSource
21. Just a floating point number - but we always use it for graphics.
the instance variables
in the dealloc - or when a Controller's view is 'unloaded'
CGFloat
attributes - behavior
22. At the top of any implementation file...
an object's property
@interface ClassName:SuperClassName
receiving and handling events that are associated with it
you must import the header file of that class
23. How do I implement my drawRect?
receiver
a single-array can contain objects of different types
Encapsulation of functionality
Core Graphics Framework
24. Origin of a view's coordinate system is _ left
Is a placeholder object
upper
delegates and dataSources
in the dealloc - or when a Controller's view is 'unloaded'
25. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
Instantiation from scratch
data
CF - Ref
pointer - class
26. The only reason to temporarily own an object - is...
to give it someone else - or another object
CGFloat
object
will be ignored
27. Each _ has a 'designated' initializer method....
pointers
class
accessors - individually we call them 'getters' and 'setters'
parentViewController
28. A view is an...
draw images
do so in viewDidLoad
instance of UIView or one of its subclasses
class's
29. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
is an instance of that class
superclass's
Maintenance of state
Abstraction
30. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
NSCoder
%d
instance variables
references to objects
31. The integer prefix is...
instance
ordered collection of objects - immutable
is called every time the event occurs
%d
32. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
C Functionn
subview(s)
only the class and subclasses can access
33. NSValue - class...
superclass's
new instances of the class or retrieve some global property of the class.
group of global functions already assigned to this class
Generic object wrapper for other non-object data types
34. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
object
accessors - individually we call them 'getters' and 'setters'
instance variables
35. Name of the method to be executed
'getters' and 'setters'
selector[message]
receiver[message]
object
36. class methods...
retain
group of global functions already assigned to this class
creates an instance of NSString that holds the character string
Abstraction
37. The class is responsible for what instance variables the instance has - but not the _ of those variables.
callbacks
(id)initWithFrame:(CGRect)aRect;
values
CGRect bounds
38. Delegation is an object oriented approach to
data source - view controller and delegate
lowercase - uppercase
callbacks
Is a placeholder object
39. Categories are an Objective C way to add _ to an existing class without subclassing
values
CGRect bounds
methods
copy - retain
40. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
header files declare
class methods - initializers
its dataSource
protocol
41. NSString objects are usually sent _ rather than _...
alloc - singleton - informational utility method?
declaration and initialization of a variable
only the innermost loop in which the break is executed is terminated
copy - retain
42. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
NSLog routine
variable scope - if defined within a block
setPossessionName
creating an initializer
43. id is a...
a single-array can contain objects of different types
pointer to an object
view controller
CGRect
44. Class methods typically either create
class's
storage
receiver[message]
new instances of the class or retrieve some global property of the class.
45. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
CGRect bounds - GCPoint center - CGRect frame
receiving and handling events that are associated with it
arguments[message]
46. A method in a _ is required unless its preceded by an @optional.
class's
data source - delegate and view controller
protocol
Model Objects[Factory Worker]
47. NSDate - class...
self
reuse your cells
array[class - NSMutableArray]
Used to find the time right now or to store past or future time/dates
48. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
nil
protocol
instance of UIView or one of its subclasses
49. What does autorelease mean?
you must import the header file of that class
message
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
wait until the loop finishes processing the event - at the end release it
50. Reference Counting...
You take ownership for an object you want to keep a pointer to
Object wrapper around primitive types like int - float - double - BOOl
an object's property
do so in viewDidLoad