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. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
Anytime you call a method with new - alloc or copy. You own and must release that object.
message
lowercase - uppercase
2. 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.
define it in the implemenation file
dealloc - is called on the object & the object's memory is returned to the heap
instance variables
parentViewController
3. Categories are an Objective C way to add _ to an existing class without subclassing
methods
will be ignored
CGRect bounds
data
4. A UITableViewController can fill all three roles of...
wait until the loop finishes processing the event - at the end release it
you must import the header file of that class
calling code that does the instantiation for you
data source - view controller and delegate
5. NSDate - class...
Used to find the time right now or to store past or future time/dates
data
collection of collections - NSArray of an NSArray
a mechanism to enable specific callbacks
6. Each class picks one _ as it's designated initializer....
initializer
the array relinquishes ownership of that object and no longer has a pointer to it
array[class - NSMutableArray]
draw images
7. Classes describe two things...
the message release to all its entries
attributes - behavior
Instantiation from scratch
rectangular
8. Files Owner...
%d
Is a placeholder object
class's
to get and set variables
9. class methods...
@interface ClassName:SuperClassName
you always return the newly initialized object(return self)
methods
group of global functions already assigned to this class
10. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
you always return the newly initialized object(return self)
You take ownership for an object you want to keep a pointer to
methods for generating an instance
implementation
11. Each _ has a 'designated' initializer method....
collection of collections - NSArray of an NSArray
attributes - behavior
class
only the class and subclasses can access
12. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
@synthesize
Abstraction
receiver
implementation
13. super - is used...
for inheritance - adopting the superclasses implementation
implementation
CF - Ref
parentViewController
14. Designated initializer makes sure that every...
pointer to an object
instance variable of an object is valid
Instantiation from scratch
copy - retain
15. Use of class methods - there are three...
alloc - singleton - informational utility method?
its dataSource
cannot be added to an array
creating an initializer
16. Hold data and know nothing about the user interface
reuse your cells
storage
Model Objects[Factory Worker]
receiving and handling events that are associated with it
17. 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
18. if you implemented both the setter and getter - the @synthesize method...
will be ignored
Instantiation from scratch
creating an initializer
CGFloat
19. When making a tableView always...
is an instance of that class
Abstraction
accessors - individually we call them 'getters' and 'setters'
reuse your cells
20. Origin of a view's coordinate system is _ left
upper
accessors - individually we call them 'getters' and 'setters'
data
view controller
21. Also if you send the NSObject the _ message - you own that object.
retain
creates an instance of NSString that holds the character string
NSCoder
header files declare
22. A function in the objective c library that simply displays or logs it's argument
NSLog routine
Anytime you call a method with new - alloc or copy. You own and must release that object.
creating an initializer
object
23. A view represents a _ area
delegates and dataSources
rectangular
CGFloat
Ready-Made Instance
24. @property - is using methods...
view controller's initialization method
methods for generating an instance
receiver - selector - arguments
to get and set variables
25. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
values
object
%d
26. Views have three properties related to their location and size: @property _ _;
NSLog routine
Is a placeholder object
CGRect bounds - GCPoint center - CGRect frame
for inheritance - adopting the superclasses implementation
27. The only reason to temporarily own an object - is...
to give it someone else - or another object
message
group of global functions already assigned to this class
define it in the implemenation file
28. UITableViewController is a subclass of...
UIViewController
Controller Objects[Managers]
method
superclass's
29. NSValue - class...
lowercase - uppercase
@synthesize
ready-made instances - instantiation from scratch - and nib based instantiation
Generic object wrapper for other non-object data types
30. Property List...
Abstraction
collection of collections - NSArray of an NSArray
alloc - singleton - informational utility method?
Hash table - Look up objects using a key to get a value.
31. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
create a XIB file
designated initializer
CGRect
accessors - individually we call them 'getters' and 'setters'
32. 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.
the message release to all its entries
UIView
ordered collection of objects - immutable
Data Encapsulation
33. To load a Xib file manually - you use _
NSBundle
is an instance of that class
to get and set variables
draw images
34. In Cocoa Touch - the table view asks another object _ what it should display...
an object's property
CGRect bounds - GCPoint center - CGRect frame
its dataSource
to give it someone else - or another object
35. Whenever a UINavigationController is about to swap views - it sends out two messages
header files declare
viewWillDissapear: and viewWillAppear:
an object's property
only the innermost loop in which the break is executed is terminated
36. Why properties?
safety - subclassability and makes code look more consistent with C structs
Model Objects[Factory Worker]
is an instance of that class
Encapsulation of functionality
37. Reducing details to focus on the core concepts
ordered collection of objects - immutable
define it in the implemenation file
receiver[message]
Abstraction
38. Instance Variables by default are called @protected meaning...
viewWillDissapear: and viewWillAppear:
rectangular
Ready-Made Instance
only the class and subclasses can access
39. 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.
CGFloat
first responder
(id)initWithFrame:(CGRect)aRect;
the array becomes an owner of that object and has a pointer to it.
40. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
instance variables
Object wrapper around primitive types like int - float - double - BOOl
the message release to all its entries
41. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
42. An instance is a device for maintaining state. It's a box for _ of data.
you always return the newly initialized object(return self)
view
superclass's
storage
43. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
retain
receiving and handling events that are associated with it
class methods - initializers
Encapsulation of functionality
44. In a class method you cannot access...
method
the instance variables
create a XIB file
wait until the loop finishes processing the event - at the end release it
45. initWithFrame: the designated initializer for UIView gives the view
initializers
size and position
values
Used to find the time right now or to store past or future time/dates
46. Execution of the break statement...
parentViewController
pointer to an object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
unordered collection of objects - objects must be unique
47. After accessors have been defined in the header file...
receiving and handling events that are associated with it
will be ignored
delegates and dataSources
they need to be defined in the implementation file
48. Primitives and C Structures...
has one root view controller
cannot be added to an array
Encapsulation of functionality
storage
49. In general - class methods tend to be factory methods - that is...
first responder
ordered collection of objects - immutable
declaration and initialization of a variable
methods for generating an instance
50. In any application with UINavigationController - the navigation controller...
parentViewController
view controller's initialization method
data source - view controller and delegate
has one root view controller