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. Origin of a view's coordinate system is _ left
first responder
you always return the newly initialized object(return self)
array[class - NSMutableArray]
upper
2. After accessors have been defined in the header file...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
implementation
they need to be defined in the implementation file
has one root view controller
3. 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
4. A pointer to the object being asked to execute a method
type - name and value
safety - subclassability and makes code look more consistent with C structs
wait until the loop finishes processing the event - at the end release it
receiver[message]
5. When an object is removed from an NSMutableArray - that object is sent the message release;...
CGRect bounds - GCPoint center - CGRect frame
in the dealloc - or when a Controller's view is 'unloaded'
Model Objects[Factory Worker]
the array relinquishes ownership of that object and no longer has a pointer to it
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....
CF - Ref
super - self
Maintenance of state
pointer - class
7. Any individual object belonging to any class...
the array becomes an owner of that object and has a pointer to it.
class methods - initializers
upper
is an instance of that class
8. Reference Counting...
instance
class
You take ownership for an object you want to keep a pointer to
upper
9. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
%d
instance variables
Ready-Made Instance
NSCoder
10. 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
11. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
instance variables
%d
initializers
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
12. When an object is added to a NSMutableArray - that object is sent the message to retain;...
its dataSource
collection of collections - NSArray of an NSArray
CGFloat
the array becomes an owner of that object and has a pointer to it.
13. 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
14. Delegation is an object oriented approach to
callbacks
Hash table - Look up objects using a key to get a value.
instance variables
header files declare
15. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
instance of UIView or one of its subclasses
object
Controller Objects[Managers]
to get and set variables
16. Categories are an Objective C way to add _ to an existing class without subclassing
is an instance of that class
methods
view controller's initialization method
Data Encapsulation
17. Designated initializer makes sure that every...
data
%d
instance variable of an object is valid
attributes - behavior
18. Also if you send the NSObject the _ message - you own that object.
draw images
retain
%d
rectangular
19. In the last line of an init method...
arguments[message]
you always return the newly initialized object(return self)
causes the program to immediately exit from the loop it is executing - whether its for - while or do
group of global functions already assigned to this class
20. Three ways instances are created...
only the class and subclasses can access
ready-made instances - instantiation from scratch - and nib based instantiation
receiver[message]
C Functionn
21. When making a tableView always...
only the innermost loop in which the break is executed is terminated
NSLog routine
methods
reuse your cells
22. Defining variables - three parts...
Encapsulation of functionality
array[class - NSMutableArray]
header files declare
type - name and value
23. In a class method you cannot access...
super - self
Maintenance of state
in the dealloc - or when a Controller's view is 'unloaded'
the instance variables
24. UIImageView is used to...
first responder
NSLog routine
object
draw images
25. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
the instance variables
designated initializer
pointers
to give it someone else - or another object
26. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
is called every time the event occurs
C Functionn
pointer to an object
they need to be defined in the implementation file
27. 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
Core Graphics Framework
data
method
28. @property - is using methods...
unordered collection of objects - objects must be unique
to get and set variables
Ready-Made Instance
view controller
29. Each _ has a 'designated' initializer method....
class
declaration and initialization of a variable
new instances of the class or retrieve some global property of the class.
CGRect
30. @property declares - and _ implements the setter and getter...
its dataSource
class's
nil
@synthesize
31. 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
parentViewController
create a XIB file
define it in the implemenation file
has one root view controller
32. A view is a subclass of _
UIView
superclass's
new instances of the class or retrieve some global property of the class.
Continue
33. In general - class methods tend to be factory methods - that is...
UIViewController
methods for generating an instance
@interface ClassName:SuperClassName
Maintenance of state
34. 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
35. A method in a _ is required unless its preceded by an @optional.
protocol
Maintenance of state
delegates and dataSources
Encapsulation of functionality
36. A UITableView usually needs three different pieces...
is called every time the event occurs
new instances of the class or retrieve some global property of the class.
data source - delegate and view controller
instance variables
37. UIViewController has several methods that get called at certain times...
CGRect
super - self
variable scope - if defined within a block
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
38. Object Oriented based analogue to a function is called a...
super - self
group of global functions already assigned to this class
define it in the implemenation file
method
39. 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
40. Instance Variables by default are called @protected meaning...
C Functionn
data source - view controller and delegate
only the class and subclasses can access
Functions
41. NSValue - class...
Model Objects[Factory Worker]
instance variables
Generic object wrapper for other non-object data types
view controller
42. A _ handles touch events.
You take ownership for an object you want to keep a pointer to
subview(s)
view
initializers
43. 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
arguments[message]
they need to be defined in the implementation file
the array relinquishes ownership of that object and no longer has a pointer to it
44. NSArray - important methods...
accessors - individually we call them 'getters' and 'setters'
references to objects
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
the array becomes an owner of that object and has a pointer to it.
45. 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...
instance variables
nil
Generic object wrapper for other non-object data types
setPossessionName
46. NSSet...
view controller's initialization method
unordered collection of objects - objects must be unique
CF - Ref
instance variables
47. A function in the objective c library that simply displays or logs it's argument
NSLog routine
CGRect bounds - GCPoint center - CGRect frame
'getters' and 'setters'
cannot be added to an array
48. Center and frame are used to _ your view
the array relinquishes ownership of that object and no longer has a pointer to it
position
class
@interface ClassName:SuperClassName
49. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
implementation
protocol
calling code that does the instantiation for you
Instantiation from scratch
50. To load a Xib file manually - you use _
its dataSource
NSBundle
group of global functions already assigned to this class
create a XIB file