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. 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
Maintenance of state
an object's property
instance
you always return the newly initialized object(return self)
2. Typically the designated initializer has parameters for the most important and frequently used _ of an object
you always return the newly initialized object(return self)
in the dealloc - or when a Controller's view is 'unloaded'
instance variables
instance of UIView or one of its subclasses
3. What does autorelease mean?
Controller Objects[Managers]
attributes - behavior
wait until the loop finishes processing the event - at the end release it
is an instance of that class
4. Ready-made instances...
calling code that does the instantiation for you
@interface ClassName:SuperClassName
UIViewController
data source - view controller and delegate
5. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
instance variables
the array becomes an owner of that object and has a pointer to it.
is called every time the event occurs
6. 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
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Is a placeholder object
Instantiation from scratch
parentViewController
7. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
Continue
header files declare
array[class - NSMutableArray]
8. An instance is a device for maintaining state. It's a box for _ of data.
ready-made instances - instantiation from scratch - and nib based instantiation
pointer to an object
storage
has one root view controller
9. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
Generic object wrapper for other non-object data types
they need to be defined in the implementation file
super - self
an object's property
10. Use of class methods - there are three...
instance variables
references to objects
CGRect
alloc - singleton - informational utility method?
11. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
to get and set variables
parentViewController
instance of UIView or one of its subclasses
receiver
12. After accessors have been defined in the header file...
designated initializer
they need to be defined in the implementation file
UIView
pointers
13. NSSet...
variable scope - if defined within a block
unordered collection of objects - objects must be unique
is an instance of that class
message
14. A pointer to the object being asked to execute a method
is an instance of that class
an object's property
calling code that does the instantiation for you
receiver[message]
15. To load a Xib file manually - you use _
NSBundle
has one root view controller
creates an instance of NSString that holds the character string
type - name and value
16. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
C Functionn
lowercase - uppercase
references to objects
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
17. Also if you send the NSObject the _ message - you own that object.
Functions
NSLog routine
instance of UIView or one of its subclasses
retain
18. A UITableViewController can fill all three roles of...
an object's property
data source - view controller and delegate
declaration and initialization of a variable
draw images
19. Each class picks one _ as it's designated initializer....
(id)initWithFrame:(CGRect)aRect;
initializer
first responder
setPossessionName
20. A UITableView usually needs three different pieces...
to get and set variables
data source - delegate and view controller
UIView
self
21. All objects are accessed using...
method
message
Maintenance of state
pointers
22. Property List...
view controller's initialization method
an object's property
collection of collections - NSArray of an NSArray
'getters' and 'setters'
23. NSString objects are usually sent _ rather than _...
@interface ClassName:SuperClassName
ready-made instances - instantiation from scratch - and nib based instantiation
message
copy - retain
24. Reducing details to focus on the core concepts
Abstraction
receiving and handling events that are associated with it
create a XIB file
nil
25. In Objective C arrays can hold only...
an object's property
object
new instances of the class or retrieve some global property of the class.
references to objects
26. UITableViewController is a subclass of...
the array relinquishes ownership of that object and no longer has a pointer to it
UIViewController
method
calling code that does the instantiation for you
27. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
instance of UIView or one of its subclasses
subview(s)
to get and set variables
array[class - NSMutableArray]
28. If you have extra work you want to do on the view...
reuse your cells
Abstraction
instance variable of an object is valid
do so in viewDidLoad
29. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
receiver
receiving and handling events that are associated with it
selector[message]
30. Why properties?
safety - subclassability and makes code look more consistent with C structs
receiver - selector - arguments
Encapsulation of functionality
calling code that does the instantiation for you
31. Classes describe two things...
rectangular
attributes - behavior
arguments[message]
(id)initWithFrame:(CGRect)aRect;
32. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
pointer to an object
position
size and position
@interface ClassName:SuperClassName
33. Reference Counting...
draw images
You take ownership for an object you want to keep a pointer to
creating an initializer
will be ignored
34. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
receiver[message]
type - name and value
header files declare
Generic object wrapper for other non-object data types
35. A callback is a function that is supplied in advance of an event - and...
Core Graphics Framework
is called every time the event occurs
Model Objects[Factory Worker]
receiver - selector - arguments
36. In a class method you cannot access...
CGRect bounds - GCPoint center - CGRect frame
alloc - singleton - informational utility method?
super - self
the instance variables
37. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
view controller
setPossessionName
reuse your cells
is called every time the event occurs
38. Object Oriented based analogue to a function is called a...
method
methods for generating an instance
creating an initializer
Controller Objects[Managers]
39. If a break statement is executed from within a set of nested loops...
data source - view controller and delegate
only the innermost loop in which the break is executed is terminated
storage
its dataSource
40. Values to be supplied as the parameters to the method
arguments[message]
initializers
(id)initWithFrame:(CGRect)aRect;
create a XIB file
41. Three ways instances are created...
subview(s)
causes the program to immediately exit from the loop it is executing - whether its for - while or do
ready-made instances - instantiation from scratch - and nib based instantiation
creates an instance of NSString that holds the character string
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.
NSBundle
creating an initializer
Object wrapper around primitive types like int - float - double - BOOl
data source - delegate and view controller
43. The integer prefix is...
%d
data source - delegate and view controller
upper
NSCoder
44. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
You take ownership for an object you want to keep a pointer to
implementation
UIViewController
Functions
45. @property declares - and _ implements the setter and getter...
data
@synthesize
CF - Ref
wait until the loop finishes processing the event - at the end release it
46. In the last line of an init method...
array[class - NSMutableArray]
type - name and value
you always return the newly initialized object(return self)
reuse your cells
47. Defining variables - three parts...
NSBundle
alloc - singleton - informational utility method?
data
type - name and value
48. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
object
retain
receiver - selector - arguments
49. id is a...
safety - subclassability and makes code look more consistent with C structs
nil
array[class - NSMutableArray]
pointer to an object
50. The root view controller typically creates the next view controller - and the next _ creates the one after that
to get and set variables
Core Graphics Framework
NSBundle
view controller