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. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
you must import the header file of that class
Encapsulation of functionality
Instantiation from scratch
references to objects
2. super - is used...
implementation
NSCoder
callbacks
for inheritance - adopting the superclasses implementation
3. Origin of a view's coordinate system is _ left
CGRect
upper
view
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
4. In a class method you cannot access...
Encapsulation of functionality
the instance variables
first responder
methods
5. Object Oriented based analogue to a function is called a...
Controller Objects[Managers]
method
is an instance of that class
initializers
6. Each _ has a 'designated' initializer method....
class
object
new instances of the class or retrieve some global property of the class.
CGFloat
7. 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...
implementation
has one root view controller
reuse your cells
setPossessionName
8. UIViewController has several methods that get called at certain times...
superclass's
Hash table - Look up objects using a key to get a value.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
view
9. After accessors have been defined in the header file...
they need to be defined in the implementation file
only the class and subclasses can access
type - name and value
view controller's initialization method
10. Class methods typically either create
creating an initializer
@interface ClassName:SuperClassName
storage
new instances of the class or retrieve some global property of the class.
11. If you have extra work you want to do on the view...
do so in viewDidLoad
a single-array can contain objects of different types
collection of collections - NSArray of an NSArray
safety - subclassability and makes code look more consistent with C structs
12. NSSet...
copy - retain
unordered collection of objects - objects must be unique
cannot be added to an array
Maintenance of state
13. 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
14. 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.
%d
Encapsulation of functionality
you always return the newly initialized object(return self)
instance variables
15. Use of class methods - there are three...
alloc - singleton - informational utility method?
view
@interface ClassName:SuperClassName
instance variable of an object is valid
16. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
only the innermost loop in which the break is executed is terminated
viewWillDissapear: and viewWillAppear:
super - self
Functions
17. Whenever a UINavigationController is about to swap views - it sends out two messages
CGRect
viewWillDissapear: and viewWillAppear:
nil
an object's property
18. A UITableViewController can fill all three roles of...
implementation
the message release to all its entries
Used to find the time right now or to store past or future time/dates
data source - view controller and delegate
19. id is a...
array[class - NSMutableArray]
Functions
pointer to an object
to get and set variables
20. Just a floating point number - but we always use it for graphics.
CGFloat
view controller
receiver
size and position
21. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
rectangular
calling code that does the instantiation for you
receiver
references to objects
22. 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 _.
superclass's
accessors - individually we call them 'getters' and 'setters'
UIView
pointer - class
23. A callback is a function that is supplied in advance of an event - and...
callbacks
is called every time the event occurs
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
retain
24. 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 _.
NSCoder
subview(s)
cannot be added to an array
header files declare
25. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
26. At the top of any implementation file...
Controller Objects[Managers]
instance variables
you must import the header file of that class
receiver[message]
27. NSDictionary...
Hash table - Look up objects using a key to get a value.
CF - Ref
in the dealloc - or when a Controller's view is 'unloaded'
unordered collection of objects - objects must be unique
28. UIImageView is used to...
draw images
UIView
you always return the newly initialized object(return self)
You take ownership for an object you want to keep a pointer to
29. NSNumber - class...
a mechanism to enable specific callbacks
Used to find the time right now or to store past or future time/dates
Object wrapper around primitive types like int - float - double - BOOl
selector[message]
30. initWithFrame: the designated initializer for UIView gives the view
CGRect bounds
you must import the header file of that class
size and position
reuse your cells
31. In any application with UINavigationController - the navigation controller...
type - name and value
view controller
they need to be defined in the implementation file
has one root view controller
32. 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 _.
references to objects
Continue
you must import the header file of that class
nil
33. 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
34. The only reason to temporarily own an object - is...
to give it someone else - or another object
declaration and initialization of a variable
is an instance of that class
selector[message]
35. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
reuse your cells
Anytime you call a method with new - alloc or copy. You own and must release that object.
references to objects
36. @property - is using methods...
to get and set variables
in the dealloc - or when a Controller's view is 'unloaded'
methods for generating an instance
instance of UIView or one of its subclasses
37. Values to be supplied as the parameters to the method
header files declare
@synthesize
setPossessionName
arguments[message]
38. A pointer to the object being asked to execute a method
Hash table - Look up objects using a key to get a value.
receiver[message]
new instances of the class or retrieve some global property of the class.
superclass's
39. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
receiver[message]
dealloc - is called on the object & the object's memory is returned to the heap
initializers
40. @property declares - and _ implements the setter and getter...
to give it someone else - or another object
@synthesize
UIViewController
type - name and value
41. A responder is responsible for...
will be ignored
CGRect
instance
receiving and handling events that are associated with it
42. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
safety - subclassability and makes code look more consistent with C structs
CGRect
NSBundle
Encapsulation of functionality
43. Primitives and C Structures...
Encapsulation of functionality
receiver[message]
ready-made instances - instantiation from scratch - and nib based instantiation
cannot be added to an array
44. Reference Counting...
data source - delegate and view controller
You take ownership for an object you want to keep a pointer to
type - name and value
the instance variables
45. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
position
superclass's
Controller Objects[Managers]
46. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
define it in the implemenation file
data source - delegate and view controller
self
variable scope - if defined within a block
47. NSString *s = @'Hello - World'; is an example of...
header files declare
Data Encapsulation
nil
declaration and initialization of a variable
48. In Objective C arrays can hold only...
values
header files declare
Ready-Made Instance
references to objects
49. Defining variables - three parts...
type - name and value
Functions
UIView
nil
50. Files Owner...
Is a placeholder object
CGRect bounds - GCPoint center - CGRect frame
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
arguments[message]