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. 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
UIViewController
a mechanism to enable specific callbacks
is called every time the event occurs
NSLog routine
2. How do I implement my drawRect?
CGFloat
Core Graphics Framework
pointers
view controller
3. Delegation is an object oriented approach to
Is a placeholder object
You take ownership for an object you want to keep a pointer to
callbacks
ordered collection of objects - immutable
4. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
calling code that does the instantiation for you
CGRect
data source - view controller and delegate
5. After accessors have been defined in the header file...
they need to be defined in the implementation file
instance variables
data source - view controller and delegate
pointer - class
6. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
NSLog routine
references to objects
Core Graphics Framework
7. The only reason to temporarily own an object - is...
an object's property
Model Objects[Factory Worker]
to give it someone else - or another object
Anytime you call a method with new - alloc or copy. You own and must release that object.
8. 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.
Instantiation from scratch
creating an initializer
setPossessionName
only the class and subclasses can access
9. A function in the objective c library that simply displays or logs it's argument
methods for generating an instance
class
NSLog routine
will be ignored
10. A view is an...
header files declare
the array becomes an owner of that object and has a pointer to it.
view
instance of UIView or one of its subclasses
11. Defining variables - three parts...
selector[message]
variable scope - if defined within a block
type - name and value
data source - view controller and delegate
12. Three ways instances are created...
UIViewController
Object wrapper around primitive types like int - float - double - BOOl
ready-made instances - instantiation from scratch - and nib based instantiation
callbacks
13. class methods...
NSBundle
super - self
superclass's
group of global functions already assigned to this class
14. You use _ to implement the view
pointer to an object
CGRect bounds
Anytime you call a method with new - alloc or copy. You own and must release that object.
Maintenance of state
15. Reducing details to focus on the core concepts
@synthesize
C Functionn
Abstraction
@interface ClassName:SuperClassName
16. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
17. Designated initializer makes sure that every...
subview(s)
do so in viewDidLoad
Is a placeholder object
instance variable of an object is valid
18. Any individual object belonging to any class...
position
is an instance of that class
Model Objects[Factory Worker]
instance variables
19. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
upper
retain
reuse your cells
Instantiation from scratch
20. A pointer to the object being asked to execute a method
instance
object
has one root view controller
receiver[message]
21. When an NSMutableArray is deallocated - it sends...
values
the message release to all its entries
(id)initWithFrame:(CGRect)aRect;
upper
22. NSDate - class...
Used to find the time right now or to store past or future time/dates
initializers
callbacks
the instance variables
23. UIImageView is used to...
draw images
Hash table - Look up objects using a key to get a value.
subview(s)
receiver
24. To load a Xib file manually - you use _
define it in the implemenation file
super - self
NSBundle
retain
25. 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
data source - delegate and view controller
parentViewController
receiver
its dataSource
26. Classes describe two things...
receiving and handling events that are associated with it
in the dealloc - or when a Controller's view is 'unloaded'
attributes - behavior
designated initializer
27. @property - is using methods...
to get and set variables
do so in viewDidLoad
methods
object
28. 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 _.
nil
CGRect bounds - GCPoint center - CGRect frame
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
parentViewController
29. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance of UIView or one of its subclasses
pointer - class
variable scope - if defined within a block
30. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
31. Name of the method to be executed
Controller Objects[Managers]
Data Encapsulation
receiver
selector[message]
32. If you have extra work you want to do on the view...
CF - Ref
initializers
self
do so in viewDidLoad
33. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
class
callbacks
CGRect bounds - GCPoint center - CGRect frame
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.
(id)initWithFrame:(CGRect)aRect;
instance variables
ordered collection of objects - immutable
is an instance of that class
35. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
message
view controller's initialization method
designated initializer
superclass's
36. An instance is a device for maintaining state. It's a box for _ of data.
designated initializer
initializers
storage
is an instance of that class
37. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
unordered collection of objects - objects must be unique
in the dealloc - or when a Controller's view is 'unloaded'
creates an instance of NSString that holds the character string
38. NSArray - important methods...
has one root view controller
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
designated initializer
class
39. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
the array becomes an owner of that object and has a pointer to it.
methods for generating an instance
view controller's initialization method
40. Property List...
only the innermost loop in which the break is executed is terminated
collection of collections - NSArray of an NSArray
self
CGRect
41. When making a tableView always...
pointer - class
implementation
has one root view controller
reuse your cells
42. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
nil
NSLog routine
Hash table - Look up objects using a key to get a value.
define it in the implemenation file
43. 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
44. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
ordered collection of objects - immutable
Continue
receiver[message]
45. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Anytime you call a method with new - alloc or copy. You own and must release that object.
reuse your cells
Generic object wrapper for other non-object data types
46. A command directed to an object is called an...
callbacks
'getters' and 'setters'
message
(id)initWithFrame:(CGRect)aRect;
47. Just a floating point number - but we always use it for graphics.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
methods for generating an instance
Is a placeholder object
CGFloat
48. Reference Counting...
You take ownership for an object you want to keep a pointer to
Used to find the time right now or to store past or future time/dates
designated initializer
methods for generating an instance
49. A collection object - an ordered list of objects that can be accesed by an index
NSCoder
class methods - initializers
array[class - NSMutableArray]
C Functionn
50. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
You take ownership for an object you want to keep a pointer to
pointer to an object
class methods - initializers