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 responder is responsible for...
receiving and handling events that are associated with it
Anytime you call a method with new - alloc or copy. You own and must release that object.
unordered collection of objects - objects must be unique
instance of UIView or one of its subclasses
2. NSValue - class...
Generic object wrapper for other non-object data types
view
you always return the newly initialized object(return self)
CGRect bounds
3. When do you take ownership?...
group of global functions already assigned to this class
do so in viewDidLoad
UIViewController
Anytime you call a method with new - alloc or copy. You own and must release that object.
4. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
view controller
message
do so in viewDidLoad
5. Execution of the break statement...
Ready-Made Instance
new instances of the class or retrieve some global property of the class.
delegates and dataSources
causes the program to immediately exit from the loop it is executing - whether its for - while or do
6. UIImageView is used to...
setPossessionName
instance variables
nil
draw images
7. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
alloc - singleton - informational utility method?
instance
Ready-Made Instance
message
8. id is a...
You take ownership for an object you want to keep a pointer to
pointer to an object
group of global functions already assigned to this class
you always return the newly initialized object(return self)
9. Each _ has a 'designated' initializer method....
class
Core Graphics Framework
values
Hash table - Look up objects using a key to get a value.
10. A pointer to the object being asked to execute a method
attributes - behavior
only the innermost loop in which the break is executed is terminated
CGFloat
receiver[message]
11. if you implemented both the setter and getter - the @synthesize method...
upper
data source - delegate and view controller
will be ignored
the instance variables
12. NSArray - important methods...
instance variables
view controller's initialization method
the instance variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
13. Defining variables - three parts...
'getters' and 'setters'
CGFloat
initializers
type - name and value
14. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
class methods - initializers
Instantiation from scratch
@synthesize
a mechanism to enable specific callbacks
15. Reducing details to focus on the core concepts
instance
Abstraction
Anytime you call a method with new - alloc or copy. You own and must release that object.
references to objects
16. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
class methods - initializers
'getters' and 'setters'
C Functionn
delegates and dataSources
17. The root view controller typically creates the next view controller - and the next _ creates the one after that
Used to find the time right now or to store past or future time/dates
Instantiation from scratch
view controller
Abstraction
18. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
dealloc - is called on the object & the object's memory is returned to the heap
view controller's initialization method
receiver
Is a placeholder object
19. Delegation is an object oriented approach to
the instance variables
callbacks
parentViewController
variable scope - if defined within a block
20. Primitives and C Structures...
cannot be added to an array
is an instance of that class
values
type - name and value
21. In Cocoa Touch - the table view asks another object _ what it should display...
CGFloat
viewWillDissapear: and viewWillAppear:
Encapsulation of functionality
its dataSource
22. NSDate - class...
Used to find the time right now or to store past or future time/dates
CF - Ref
CGRect
declaration and initialization of a variable
23. Just a floating point number - but we always use it for graphics.
CGFloat
instance of UIView or one of its subclasses
Functions
group of global functions already assigned to this class
24. Whenever a UINavigationController is about to swap views - it sends out two messages
receiver - selector - arguments
Object wrapper around primitive types like int - float - double - BOOl
viewWillDissapear: and viewWillAppear:
NSCoder
25. The class is responsible for what instance variables the instance has - but not the _ of those variables.
unordered collection of objects - objects must be unique
values
position
implementation
26. All objects are accessed using...
pointers
new instances of the class or retrieve some global property of the class.
CGRect
unordered collection of objects - objects must be unique
27. A message is always contained in square brackets - and has three parts
selector[message]
safety - subclassability and makes code look more consistent with C structs
Generic object wrapper for other non-object data types
receiver - selector - arguments
28. Number one use of protocols in iOS...
type - name and value
do so in viewDidLoad
CF - Ref
delegates and dataSources
29. Origin of a view's coordinate system is _ left
CGRect bounds - GCPoint center - CGRect frame
upper
you must import the header file of that class
group of global functions already assigned to this class
30. 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
31. @property declares - and _ implements the setter and getter...
will be ignored
initializers
attributes - behavior
@synthesize
32. A UITableView usually needs three different pieces...
ordered collection of objects - immutable
receiver[message]
Encapsulation of functionality
data source - delegate and view controller
33. A view represents a _ area
%d
rectangular
nil
Object wrapper around primitive types like int - float - double - BOOl
34. A collection object - an ordered list of objects that can be accesed by an index
draw images
@synthesize
array[class - NSMutableArray]
receiver - selector - arguments
35. A method in a _ is required unless its preceded by an @optional.
you must import the header file of that class
protocol
cannot be added to an array
calling code that does the instantiation for you
36. Proceed through the loop - jump back to the top and check again
Ready-Made Instance
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Continue
cannot be added to an array
37. Files Owner...
Anytime you call a method with new - alloc or copy. You own and must release that object.
Is a placeholder object
reuse your cells
the message release to all its entries
38. NSSet...
unordered collection of objects - objects must be unique
size and position
Functions
a single-array can contain objects of different types
39. Core foundation classes are prefixed with _ and suffixed with _
object
will be ignored
CF - Ref
nil
40. NSDictionary...
Hash table - Look up objects using a key to get a value.
first responder
CGRect bounds
initializer
41. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
Hash table - Look up objects using a key to get a value.
group of global functions already assigned to this class
upper
42. When an object is removed from an NSMutableArray - that object is sent the message release;...
initializer
array[class - NSMutableArray]
the array relinquishes ownership of that object and no longer has a pointer to it
class
43. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
nil
alloc - singleton - informational utility method?
Controller Objects[Managers]
Model Objects[Factory Worker]
44. An instance is a device for maintaining state. It's a box for _ of data.
receiving and handling events that are associated with it
pointers
instance of UIView or one of its subclasses
storage
45. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
message
retain
(id)initWithFrame:(CGRect)aRect;
46. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
cannot be added to an array
NSBundle
@interface ClassName:SuperClassName
a single-array can contain objects of different types
47. Only exists within the statement block there defined - outside of the block is fine
Anytime you call a method with new - alloc or copy. You own and must release that object.
variable scope - if defined within a block
dealloc - is called on the object & the object's memory is returned to the heap
alloc - singleton - informational utility method?
48. 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.
super - self
only the class and subclasses can access
variable scope - if defined within a block
instance variables
49. 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
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
view
Model Objects[Factory Worker]
50. A view is an...
Core Graphics Framework
instance of UIView or one of its subclasses
'getters' and 'setters'
data source - delegate and view controller