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. [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.
type - name and value
do so in viewDidLoad
references to objects
data
2. You use _ to implement the view
to give it someone else - or another object
CGRect bounds
Core Graphics Framework
draw images
3. NSString *s = @'Hello - World'; is an example of...
pointers
@synthesize
declaration and initialization of a variable
you always return the newly initialized object(return self)
4. At the top of any implementation file...
Object wrapper around primitive types like int - float - double - BOOl
you must import the header file of that class
NSCoder
in the dealloc - or when a Controller's view is 'unloaded'
5. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
dealloc - is called on the object & the object's memory is returned to the heap
Continue
self
draw images
6. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
7. The only reason to temporarily own an object - is...
safety - subclassability and makes code look more consistent with C structs
message
to give it someone else - or another object
in the dealloc - or when a Controller's view is 'unloaded'
8. NSNumber - class...
is an instance of that class
view controller's initialization method
Object wrapper around primitive types like int - float - double - BOOl
references to objects
9. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
you must import the header file of that class
Model Objects[Factory Worker]
data
10. Views have three properties related to their location and size: @property _ _;
UIViewController
to get and set variables
Ready-Made Instance
CGRect bounds - GCPoint center - CGRect frame
11. 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 _.
subview(s)
storage
Ready-Made Instance
instance of UIView or one of its subclasses
12. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
alloc - singleton - informational utility method?
receiver
superclass's
creates an instance of NSString that holds the character string
13. Proceed through the loop - jump back to the top and check again
they need to be defined in the implementation file
Continue
safety - subclassability and makes code look more consistent with C structs
callbacks
14. A _ handles touch events.
view controller's initialization method
'getters' and 'setters'
method
view
15. 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.
is called every time the event occurs
its dataSource
super - self
instance variables
16. A view is an...
upper
is called every time the event occurs
first responder
instance of UIView or one of its subclasses
17. Why properties?
Encapsulation of functionality
collection of collections - NSArray of an NSArray
data
safety - subclassability and makes code look more consistent with C structs
18. initWithFrame: the designated initializer for UIView gives the view
a single-array can contain objects of different types
data source - view controller and delegate
retain
size and position
19. A UITableViewController can fill all three roles of...
data source - view controller and delegate
object
UIViewController
its dataSource
20. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
(id)initWithFrame:(CGRect)aRect;
class's
to get and set variables
object
21. The integer prefix is...
object
is called every time the event occurs
Abstraction
%d
22. Defining variables - three parts...
data
object
methods
type - name and value
23. Ready-made instances...
data source - view controller and delegate
calling code that does the instantiation for you
the message release to all its entries
they need to be defined in the implementation file
24. How do I implement my drawRect?
Generic object wrapper for other non-object data types
view controller
values
Core Graphics Framework
25. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
creating an initializer
NSCoder
in the dealloc - or when a Controller's view is 'unloaded'
class's
26. 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.
an object's property
creating an initializer
viewWillDissapear: and viewWillAppear:
a single-array can contain objects of different types
27. 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.
receiving and handling events that are associated with it
an object's property
CGRect
first responder
28. A pointer to the object being asked to execute a method
in the dealloc - or when a Controller's view is 'unloaded'
receiver[message]
Generic object wrapper for other non-object data types
Anytime you call a method with new - alloc or copy. You own and must release that object.
29. If the view has no subviews - create it programmatically; if it has subviews
values
%d
reuse your cells
create a XIB file
30. Whenever a UINavigationController is about to swap views - it sends out two messages
data
viewWillDissapear: and viewWillAppear:
Anytime you call a method with new - alloc or copy. You own and must release that object.
Generic object wrapper for other non-object data types
31. NSArray - class...
ordered collection of objects - immutable
lowercase - uppercase
Instantiation from scratch
define it in the implemenation file
32. Reference Counting...
in the dealloc - or when a Controller's view is 'unloaded'
viewWillDissapear: and viewWillAppear:
CGRect
You take ownership for an object you want to keep a pointer to
33. if you implemented both the setter and getter - the @synthesize method...
data source - view controller and delegate
will be ignored
Functions
the array becomes an owner of that object and has a pointer to it.
34. Delegation is an object oriented approach to
Functions
receiver
Is a placeholder object
callbacks
35. 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
create a XIB file
receiver[message]
message
Functions
36. All objects are accessed using...
pointers
You take ownership for an object you want to keep a pointer to
declaration and initialization of a variable
storage
37. The root view controller typically creates the next view controller - and the next _ creates the one after that
pointers
do so in viewDidLoad
view controller
data
38. Also - because arrays only hold a pointer to an object...
'getters' and 'setters'
methods
Instantiation from scratch
a single-array can contain objects of different types
39. NSString objects are usually sent _ rather than _...
creating an initializer
copy - retain
methods for generating an instance
Instantiation from scratch
40. UITableViewController is a subclass of...
method
reuse your cells
UIViewController
header files declare
41. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
superclass's
Ready-Made Instance
collection of collections - NSArray of an NSArray
to get and set variables
42. 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
43. super - is used...
lowercase - uppercase
only the innermost loop in which the break is executed is terminated
for inheritance - adopting the superclasses implementation
variable scope - if defined within a block
44. @property - is using methods...
new instances of the class or retrieve some global property of the class.
instance variables
to get and set variables
CGRect
45. 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
message
a mechanism to enable specific callbacks
Instantiation from scratch
class methods - initializers
46. Designated initializer makes sure that every...
instance variable of an object is valid
%d
method
Object wrapper around primitive types like int - float - double - BOOl
47. Name of the method to be executed
selector[message]
class methods - initializers
safety - subclassability and makes code look more consistent with C structs
ready-made instances - instantiation from scratch - and nib based instantiation
48. 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
49. A function in the objective c library that simply displays or logs it's argument
superclass's
NSLog routine
Hash table - Look up objects using a key to get a value.
reuse your cells
50. NSValue - class...
designated initializer
viewWillDissapear: and viewWillAppear:
creating an initializer
Generic object wrapper for other non-object data types