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. Object Oriented based analogue to a function is called a...
instance variable of an object is valid
Object wrapper around primitive types like int - float - double - BOOl
Abstraction
method
2. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
a mechanism to enable specific callbacks
NSCoder
to get and set variables
Controller Objects[Managers]
3. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
draw images
only the innermost loop in which the break is executed is terminated
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
4. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
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.
the instance variables
delegates and dataSources
creates an instance of NSString that holds the character string
first responder
6. Any individual object belonging to any class...
superclass's
CGRect bounds
is an instance of that class
(id)initWithFrame:(CGRect)aRect;
7. 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.
instance variables
accessors - individually we call them 'getters' and 'setters'
UIViewController
an object's property
8. NSDictionary...
ordered collection of objects - immutable
self
Hash table - Look up objects using a key to get a value.
they need to be defined in the implementation file
9. super - is used...
storage
for inheritance - adopting the superclasses implementation
class's
creates an instance of NSString that holds the character string
10. 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...
its dataSource
causes the program to immediately exit from the loop it is executing - whether its for - while or do
self
setPossessionName
11. 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
references to objects
initializers
Maintenance of state
define it in the implemenation file
12. Reducing details to focus on the core concepts
view
Abstraction
delegates and dataSources
pointer - class
13. The only reason to temporarily own an object - is...
alloc - singleton - informational utility method?
the message release to all its entries
instance variables
to give it someone else - or another object
14. A pointer to the object being asked to execute a method
subview(s)
'getters' and 'setters'
receiver[message]
Abstraction
15. Origin of a view's coordinate system is _ left
callbacks
you must import the header file of that class
viewWillDissapear: and viewWillAppear:
upper
16. After accessors have been defined in the header file...
array[class - NSMutableArray]
the array relinquishes ownership of that object and no longer has a pointer to it
dealloc - is called on the object & the object's memory is returned to the heap
they need to be defined in the implementation file
17. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
viewWillDissapear: and viewWillAppear:
arguments[message]
the message release to all its entries
receiver
18. @property declares - and _ implements the setter and getter...
nil
in the dealloc - or when a Controller's view is 'unloaded'
@synthesize
the instance variables
19. Views have three properties related to their location and size: @property _ _;
subview(s)
a single-array can contain objects of different types
CGRect bounds - GCPoint center - CGRect frame
data source - delegate and view controller
20. 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
super - self
subview(s)
Functions
only the class and subclasses can access
21. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
only the class and subclasses can access
storage
self
nil
22. In any application with UINavigationController - the navigation controller...
UIViewController
pointer - class
has one root view controller
callbacks
23. Files Owner...
Is a placeholder object
instance
a single-array can contain objects of different types
self
24. A callback is a function that is supplied in advance of an event - and...
pointer to an object
is called every time the event occurs
ready-made instances - instantiation from scratch - and nib based instantiation
lowercase - uppercase
25. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
new instances of the class or retrieve some global property of the class.
UIView
class methods - initializers
view
26. In Objective C arrays can hold only...
references to objects
delegates and dataSources
storage
parentViewController
27. If a break statement is executed from within a set of nested loops...
Anytime you call a method with new - alloc or copy. You own and must release that object.
to get and set variables
only the innermost loop in which the break is executed is terminated
Maintenance of state
28. When an NSMutableArray is deallocated - it sends...
self
arguments[message]
the message release to all its entries
wait until the loop finishes processing the event - at the end release it
29. NSValue - class...
Generic object wrapper for other non-object data types
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
references to objects
message
30. A view is a subclass of _
UIView
ready-made instances - instantiation from scratch - and nib based instantiation
do so in viewDidLoad
@interface ClassName:SuperClassName
31. When making a tableView always...
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance variables
@interface ClassName:SuperClassName
reuse your cells
32. if you implemented both the setter and getter - the @synthesize method...
will be ignored
retain
callbacks
class's
33. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
pointer - class
do so in viewDidLoad
Instantiation from scratch
34. A UITableViewController can fill all three roles of...
will be ignored
data source - view controller and delegate
Ready-Made Instance
protocol
35. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
safety - subclassability and makes code look more consistent with C structs
Instantiation from scratch
@interface ClassName:SuperClassName
only the innermost loop in which the break is executed is terminated
36. When an object is removed from an NSMutableArray - that object is sent the message release;...
new instances of the class or retrieve some global property of the class.
instance
the array relinquishes ownership of that object and no longer has a pointer to it
Generic object wrapper for other non-object data types
37. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
safety - subclassability and makes code look more consistent with C structs
Functions
Controller Objects[Managers]
variable scope - if defined within a block
38. Name of the method to be executed
Controller Objects[Managers]
for inheritance - adopting the superclasses implementation
selector[message]
lowercase - uppercase
39. NSNumber - class...
object
Instantiation from scratch
Object wrapper around primitive types like int - float - double - BOOl
position
40. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
subview(s)
type - name and value
designated initializer
is an instance of that class
41. In a class method you cannot access...
data
Continue
the instance variables
CF - Ref
42. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
create a XIB file
CGRect bounds
super - self
superclass's
43. NSDate - class...
attributes - behavior
Used to find the time right now or to store past or future time/dates
receiver[message]
designated initializer
44. A function in the objective c library that simply displays or logs it's argument
define it in the implemenation file
creates an instance of NSString that holds the character string
message
NSLog routine
45. You use _ to implement the view
values
(id)initWithFrame:(CGRect)aRect;
CGRect bounds
CGRect
46. When an object is added to a NSMutableArray - that object is sent the message to retain;...
nil
Core Graphics Framework
instance variables
the array becomes an owner of that object and has a pointer to it.
47. If the view has no subviews - create it programmatically; if it has subviews
Maintenance of state
arguments[message]
ready-made instances - instantiation from scratch - and nib based instantiation
create a XIB file
48. Center and frame are used to _ your view
self
has one root view controller
position
calling code that does the instantiation for you
49. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
ordered collection of objects - immutable
initializers
only the class and subclasses can access
arguments[message]
50. In Cocoa Touch - the table view asks another object _ what it should display...
message
its dataSource
Continue
methods