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. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
initializer
copy - retain
pointer - class
CGRect bounds - GCPoint center - CGRect frame
2. Reference Counting...
%d
to give it someone else - or another object
You take ownership for an object you want to keep a pointer to
CGRect
3. The only reason to temporarily own an object - is...
initializer
you must import the header file of that class
to give it someone else - or another object
instance variables
4. Execution of the break statement...
callbacks
position
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
5. NSValue - class...
pointer to an object
Maintenance of state
Generic object wrapper for other non-object data types
@interface ClassName:SuperClassName
6. Why properties?
safety - subclassability and makes code look more consistent with C structs
%d
method
instance variables
7. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
Abstraction
initializer
Anytime you call a method with new - alloc or copy. You own and must release that object.
8. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
methods
to give it someone else - or another object
you must import the header file of that class
9. Use of class methods - there are three...
@interface ClassName:SuperClassName
alloc - singleton - informational utility method?
CGRect bounds - GCPoint center - CGRect frame
receiving and handling events that are associated with it
10. Class methods typically either create
to get and set variables
group of global functions already assigned to this class
new instances of the class or retrieve some global property of the class.
creating an initializer
11. 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
12. Class methods do not operate on an _ or have any access to _ variables....
Object wrapper around primitive types like int - float - double - BOOl
draw images
instance
Core Graphics Framework
13. You use _ to implement the view
alloc - singleton - informational utility method?
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
CGRect bounds
Continue
14. id is a...
the instance variables
pointer to an object
Object wrapper around primitive types like int - float - double - BOOl
Encapsulation of functionality
15. A UITableView usually needs three different pieces...
lowercase - uppercase
receiver - selector - arguments
instance
data source - delegate and view controller
16. NSDate - class...
superclass's
Used to find the time right now or to store past or future time/dates
group of global functions already assigned to this class
its dataSource
17. Hold data and know nothing about the user interface
instance variable of an object is valid
collection of collections - NSArray of an NSArray
cannot be added to an array
Model Objects[Factory Worker]
18. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
lowercase - uppercase
Anytime you call a method with new - alloc or copy. You own and must release that object.
methods for generating an instance
19. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
20. Center and frame are used to _ your view
CGRect bounds - GCPoint center - CGRect frame
receiver - selector - arguments
position
message
21. A pointer to the object being asked to execute a method
Core Graphics Framework
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiver[message]
CGRect bounds - GCPoint center - CGRect frame
22. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
designated initializer
reuse your cells
new instances of the class or retrieve some global property of the class.
receiver
23. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
upper
for inheritance - adopting the superclasses implementation
view controller's initialization method
24. @property declares - and _ implements the setter and getter...
@synthesize
dealloc - is called on the object & the object's memory is returned to the heap
Maintenance of state
define it in the implemenation file
25. 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
storage
view controller's initialization method
new instances of the class or retrieve some global property of the class.
Maintenance of state
26. Views have three properties related to their location and size: @property _ _;
copy - retain
super - self
CGRect bounds - GCPoint center - CGRect frame
they need to be defined in the implementation file
27. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
a single-array can contain objects of different types
Instantiation from scratch
group of global functions already assigned to this class
variable scope - if defined within a block
28. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
you must import the header file of that class
subview(s)
self
in the dealloc - or when a Controller's view is 'unloaded'
29. NSDictionary...
in the dealloc - or when a Controller's view is 'unloaded'
Hash table - Look up objects using a key to get a value.
(id)initWithFrame:(CGRect)aRect;
Model Objects[Factory Worker]
30. A view is an...
selector[message]
instance of UIView or one of its subclasses
dealloc - is called on the object & the object's memory is returned to the heap
protocol
31. Each _ has a 'designated' initializer method....
class
group of global functions already assigned to this class
Maintenance of state
message
32. When an object is removed from an NSMutableArray - that object is sent the message release;...
unordered collection of objects - objects must be unique
callbacks
initializer
the array relinquishes ownership of that object and no longer has a pointer to it
33. The root view controller typically creates the next view controller - and the next _ creates the one after that
to give it someone else - or another object
method
storage
view controller
34. 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
Generic object wrapper for other non-object data types
alloc - singleton - informational utility method?
the array relinquishes ownership of that object and no longer has a pointer to it
35. The integer prefix is...
%d
dealloc - is called on the object & the object's memory is returned to the heap
cannot be added to an array
initializer
36. NSString objects are usually sent _ rather than _...
copy - retain
they need to be defined in the implementation file
creating an initializer
(id)initWithFrame:(CGRect)aRect;
37. UITableViewController is a subclass of...
UIViewController
instance of UIView or one of its subclasses
position
Abstraction
38. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
39. class methods...
group of global functions already assigned to this class
a mechanism to enable specific callbacks
initializer
Is a placeholder object
40. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
Data Encapsulation
reuse your cells
instance variable of an object is valid
Object wrapper around primitive types like int - float - double - BOOl
41. Asking a class or object to execute a method
has one root view controller
accessors - individually we call them 'getters' and 'setters'
message
NSLog routine
42. If the view has no subviews - create it programmatically; if it has subviews
group of global functions already assigned to this class
UIViewController
reuse your cells
create a XIB file
43. A view represents a _ area
the array relinquishes ownership of that object and no longer has a pointer to it
designated initializer
Instantiation from scratch
rectangular
44. If a break statement is executed from within a set of nested loops...
receiver[message]
designated initializer
view
only the innermost loop in which the break is executed is terminated
45. Each class picks one _ as it's designated initializer....
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
%d
initializer
declaration and initialization of a variable
46. After accessors have been defined in the header file...
message
NSLog routine
they need to be defined in the implementation file
instance variable of an object is valid
47. In a class method you cannot access...
viewWillDissapear: and viewWillAppear:
Functions
the instance variables
'getters' and 'setters'
48. Origin of a view's coordinate system is _ left
@synthesize
upper
in the dealloc - or when a Controller's view is 'unloaded'
@interface ClassName:SuperClassName
49. At the top of any implementation file...
object
data source - view controller and delegate
self
you must import the header file of that class
50. When making a tableView always...
methods for generating an instance
reuse your cells
@synthesize
data source - view controller and delegate