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 view is an...
copy - retain
instance of UIView or one of its subclasses
Data Encapsulation
delegates and dataSources
2. A UITableView usually needs three different pieces...
dealloc - is called on the object & the object's memory is returned to the heap
superclass's
class
data source - delegate and view controller
3. Hold data and know nothing about the user interface
copy - retain
data source - view controller and delegate
Model Objects[Factory Worker]
Object wrapper around primitive types like int - float - double - BOOl
4. NSString *s = @'Hello - World'; is an example of...
Hash table - Look up objects using a key to get a value.
for inheritance - adopting the superclasses implementation
declaration and initialization of a variable
pointer to an object
5. initWithFrame: the designated initializer for UIView gives the view
%d
size and position
references to objects
accessors - individually we call them 'getters' and 'setters'
6. A callback is a function that is supplied in advance of an event - and...
for inheritance - adopting the superclasses implementation
is called every time the event occurs
Functions
unordered collection of objects - objects must be unique
7. 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....
instance variables
define it in the implemenation file
Generic object wrapper for other non-object data types
accessors - individually we call them 'getters' and 'setters'
8. Just a floating point number - but we always use it for graphics.
self
Used to find the time right now or to store past or future time/dates
CGFloat
Encapsulation of functionality
9. UIViewController has several methods that get called at certain times...
lowercase - uppercase
has one root view controller
view
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
10. Why properties?
CGRect bounds
only the class and subclasses can access
the array relinquishes ownership of that object and no longer has a pointer to it
safety - subclassability and makes code look more consistent with C structs
11. super - is used...
for inheritance - adopting the superclasses implementation
class methods - initializers
message
an object's property
12. 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 _.
pointer - class
position
instance variable of an object is valid
in the dealloc - or when a Controller's view is 'unloaded'
13. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
first responder
Model Objects[Factory Worker]
(id)initWithFrame:(CGRect)aRect;
14. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
class methods - initializers
variable scope - if defined within a block
parentViewController
15. @property declares - and _ implements the setter and getter...
CGRect bounds
@synthesize
references to objects
you always return the newly initialized object(return self)
16. if you implemented both the setter and getter - the @synthesize method...
view controller
Hash table - Look up objects using a key to get a value.
will be ignored
class methods - initializers
17. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
will be ignored
receiver
the array relinquishes ownership of that object and no longer has a pointer to it
object
18. The integer prefix is...
Abstraction
%d
method
Functions
19. @property - is using methods...
NSCoder
to get and set variables
new instances of the class or retrieve some global property of the class.
CGRect bounds
20. 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.
pointer - class
instance variables
instance variable of an object is valid
for inheritance - adopting the superclasses implementation
21. If a break statement is executed from within a set of nested loops...
CGRect bounds - GCPoint center - CGRect frame
the array relinquishes ownership of that object and no longer has a pointer to it
%d
only the innermost loop in which the break is executed is terminated
22. Ready-made instances...
new instances of the class or retrieve some global property of the class.
calling code that does the instantiation for you
data source - view controller and delegate
only the class and subclasses can access
23. An instance is a device for maintaining state. It's a box for _ of data.
initializer
collection of collections - NSArray of an NSArray
define it in the implemenation file
storage
24. In Cocoa Touch - the table view asks another object _ what it should display...
method
view
its dataSource
do so in viewDidLoad
25. How do I implement my drawRect?
array[class - NSMutableArray]
the message release to all its entries
Core Graphics Framework
is an instance of that class
26. Whenever a UINavigationController is about to swap views - it sends out two messages
CGRect
receiving and handling events that are associated with it
group of global functions already assigned to this class
viewWillDissapear: and viewWillAppear:
27. UIView - designated initializer...
Maintenance of state
receiver - selector - arguments
ordered collection of objects - immutable
(id)initWithFrame:(CGRect)aRect;
28. In Objective C arrays can hold only...
references to objects
wait until the loop finishes processing the event - at the end release it
@interface ClassName:SuperClassName
you must import the header file of that class
29. 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
30. Primitives and C Structures...
cannot be added to an array
'getters' and 'setters'
create a XIB file
instance variables
31. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
Controller Objects[Managers]
C Functionn
copy - retain
setPossessionName
32. NSArray - class...
view controller
ordered collection of objects - immutable
the instance variables
view
33. When an NSMutableArray is deallocated - it sends...
copy - retain
the message release to all its entries
collection of collections - NSArray of an NSArray
is an instance of that class
34. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
NSCoder
group of global functions already assigned to this class
Model Objects[Factory Worker]
lowercase - uppercase
35. Number one use of protocols in iOS...
copy - retain
view controller's initialization method
delegates and dataSources
instance of UIView or one of its subclasses
36. Values to be supplied as the parameters to the method
references to objects
parentViewController
method
arguments[message]
37. UIImageView is used to...
Generic object wrapper for other non-object data types
draw images
class
instance variables
38. 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
39. A function in the objective c library that simply displays or logs it's argument
the array becomes an owner of that object and has a pointer to it.
superclass's
class
NSLog routine
40. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
CGRect bounds - GCPoint center - CGRect frame
data
calling code that does the instantiation for you
@interface ClassName:SuperClassName
41. Origin of a view's coordinate system is _ left
ordered collection of objects - immutable
upper
Hash table - Look up objects using a key to get a value.
has one root view controller
42. Reference Counting...
data source - delegate and view controller
view controller
You take ownership for an object you want to keep a pointer to
delegates and dataSources
43. Any individual object belonging to any class...
UIViewController
is an instance of that class
header files declare
will be ignored
44. 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
45. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
lowercase - uppercase
header files declare
designated initializer
Instantiation from scratch
46. Each class picks one _ as it's designated initializer....
declaration and initialization of a variable
instance variables
variable scope - if defined within a block
initializer
47. NSString objects are usually sent _ rather than _...
Model Objects[Factory Worker]
copy - retain
its dataSource
Hash table - Look up objects using a key to get a value.
48. If the view has no subviews - create it programmatically; if it has subviews
ready-made instances - instantiation from scratch - and nib based instantiation
create a XIB file
receiving and handling events that are associated with it
instance variable of an object is valid
49. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
instance variable of an object is valid
super - self
values
50. 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 _.
a single-array can contain objects of different types
nil
@synthesize
receiver - selector - arguments