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. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
Object wrapper around primitive types like int - float - double - BOOl
header files declare
NSBundle
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
2. A UITableView usually needs three different pieces...
type - name and value
array[class - NSMutableArray]
Continue
data source - delegate and view controller
3. Three ways instances are created...
instance variables
CGRect bounds
ready-made instances - instantiation from scratch - and nib based instantiation
causes the program to immediately exit from the loop it is executing - whether its for - while or do
4. Execution of the break statement...
Is a placeholder object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
NSCoder
Continue
5. When an object is added to a NSMutableArray - that object is sent the message to retain;...
define it in the implemenation file
calling code that does the instantiation for you
the array becomes an owner of that object and has a pointer to it.
CGRect bounds - GCPoint center - CGRect frame
6. At the top of any implementation file...
class's
you must import the header file of that class
super - self
is called every time the event occurs
7. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
@synthesize
callbacks
define it in the implemenation file
8. If a break statement is executed from within a set of nested loops...
%d
an object's property
reuse your cells
only the innermost loop in which the break is executed is terminated
9. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
they need to be defined in the implementation file
Maintenance of state
C Functionn
10. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
instance of UIView or one of its subclasses
create a XIB file
array[class - NSMutableArray]
11. In Objective C arrays can hold only...
object
NSBundle
references to objects
view controller's initialization method
12. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
the message release to all its entries
creating an initializer
header files declare
Ready-Made Instance
13. Categories are an Objective C way to add _ to an existing class without subclassing
instance variable of an object is valid
its dataSource
cannot be added to an array
methods
14. 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
15. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Used to find the time right now or to store past or future time/dates
super - self
a mechanism to enable specific callbacks
16. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
variable scope - if defined within a block
implementation
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
C Functionn
17. Files Owner...
subview(s)
Is a placeholder object
implementation
self
18. if you implemented both the setter and getter - the @synthesize method...
class's
the array becomes an owner of that object and has a pointer to it.
will be ignored
UIView
19. 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
20. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
Is a placeholder object
self
Object wrapper around primitive types like int - float - double - BOOl
21. Whenever a UINavigationController is about to swap views - it sends out two messages
super - self
data source - view controller and delegate
viewWillDissapear: and viewWillAppear:
values
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 _.
pointer - class
Instantiation from scratch
Hash table - Look up objects using a key to get a value.
Is a placeholder object
23. Each _ has a 'designated' initializer method....
class
header files declare
(id)initWithFrame:(CGRect)aRect;
receiver[message]
24. 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
25. You use _ to implement the view
object
CGRect bounds
attributes - behavior
Hash table - Look up objects using a key to get a value.
26. super - is used...
its dataSource
implementation
for inheritance - adopting the superclasses implementation
subview(s)
27. 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.
the instance variables
view controller
instance variables
will be ignored
28. NSDictionary...
only the innermost loop in which the break is executed is terminated
UIView
Hash table - Look up objects using a key to get a value.
size and position
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. A responder is responsible for...
receiver[message]
receiving and handling events that are associated with it
new instances of the class or retrieve some global property of the class.
values
31. The only reason to temporarily own an object - is...
view
to give it someone else - or another object
object
initializers
32. 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
a mechanism to enable specific callbacks
the array becomes an owner of that object and has a pointer to it.
storage
draw images
33. Just a floating point number - but we always use it for graphics.
lowercase - uppercase
CF - Ref
has one root view controller
CGFloat
34. Number one use of protocols in iOS...
delegates and dataSources
object
NSBundle
Used to find the time right now or to store past or future time/dates
35. After accessors have been defined in the header file...
receiver[message]
CGRect bounds
they need to be defined in the implementation file
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
36. NSValue - class...
Core Graphics Framework
'getters' and 'setters'
methods
Generic object wrapper for other non-object data types
37. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
unordered collection of objects - objects must be unique
receiver
Abstraction
data source - view controller and delegate
38. If the view has no subviews - create it programmatically; if it has subviews
define it in the implemenation file
Generic object wrapper for other non-object data types
will be ignored
create a XIB file
39. A view is an...
instance of UIView or one of its subclasses
initializer
safety - subclassability and makes code look more consistent with C structs
reuse your cells
40. 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
41. Ready-made instances...
position
calling code that does the instantiation for you
is called every time the event occurs
viewWillDissapear: and viewWillAppear:
42. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
receiver - selector - arguments
designated initializer
CGRect bounds - GCPoint center - CGRect frame
Instantiation from scratch
43. 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
initializer
%d
receiver - selector - arguments
44. All objects are accessed using...
Used to find the time right now or to store past or future time/dates
pointers
Continue
methods for generating an instance
45. Only exists within the statement block there defined - outside of the block is fine
create a XIB file
C Functionn
only the innermost loop in which the break is executed is terminated
variable scope - if defined within a block
46. Why properties?
instance
Model Objects[Factory Worker]
instance variables
safety - subclassability and makes code look more consistent with C structs
47. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
UIViewController
self
view controller's initialization method
NSLog routine
48. NSString objects are usually sent _ rather than _...
instance variables
self
data source - delegate and view controller
copy - retain
49. A callback is a function that is supplied in advance of an event - and...
lowercase - uppercase
new instances of the class or retrieve some global property of the class.
creating an initializer
is called every time the event occurs
50. When an object is removed from an NSMutableArray - that object is sent the message release;...
nil
super - self
the array relinquishes ownership of that object and no longer has a pointer to it
causes the program to immediately exit from the loop it is executing - whether its for - while or do