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. Also if you send the NSObject the _ message - you own that object.
only the class and subclasses can access
super - self
retain
wait until the loop finishes processing the event - at the end release it
2. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
a mechanism to enable specific callbacks
object
to give it someone else - or another object
3. The only reason to temporarily own an object - is...
alloc - singleton - informational utility method?
to give it someone else - or another object
array[class - NSMutableArray]
the instance variables
4. Object Oriented based analogue to a function is called a...
implementation
cannot be added to an array
method
CF - Ref
5. Asking a class or object to execute a method
variable scope - if defined within a block
message
receiver
unordered collection of objects - objects must be unique
6. A pointer to the object being asked to execute a method
receiver[message]
methods
copy - retain
a mechanism to enable specific callbacks
7. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
@synthesize
@interface ClassName:SuperClassName
in the dealloc - or when a Controller's view is 'unloaded'
8. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
data
%d
Used to find the time right now or to store past or future time/dates
viewWillDissapear: and viewWillAppear:
9. Files Owner...
NSLog routine
Is a placeholder object
view controller
Hash table - Look up objects using a key to get a value.
10. What does autorelease mean?
the array relinquishes ownership of that object and no longer has a pointer to it
wait until the loop finishes processing the event - at the end release it
subview(s)
is an instance of that class
11. 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.
methods for generating an instance
instance variables
instance
parentViewController
12. UIImageView is used to...
receiver - selector - arguments
instance variable of an object is valid
@interface ClassName:SuperClassName
draw images
13. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
message
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Hash table - Look up objects using a key to get a value.
14. Ready-made instances...
calling code that does the instantiation for you
Used to find the time right now or to store past or future time/dates
ordered collection of objects - immutable
pointer to an object
15. Delegation is an object oriented approach to
Functions
callbacks
you must import the header file of that class
the instance variables
16. Classes describe two things...
header files declare
storage
super - self
attributes - behavior
17. A command directed to an object is called an...
super - self
message
has one root view controller
accessors - individually we call them 'getters' and 'setters'
18. 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
19. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
attributes - behavior
new instances of the class or retrieve some global property of the class.
protocol
Controller Objects[Managers]
20. Core foundation classes are prefixed with _ and suffixed with _
Instantiation from scratch
message
CF - Ref
Used to find the time right now or to store past or future time/dates
21. Class methods typically either create
new instances of the class or retrieve some global property of the class.
initializers
UIView
Abstraction
22. If a break statement is executed from within a set of nested loops...
superclass's
only the innermost loop in which the break is executed is terminated
Maintenance of state
NSBundle
23. Hold data and know nothing about the user interface
implementation
designated initializer
Model Objects[Factory Worker]
do so in viewDidLoad
24. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
viewWillDissapear: and viewWillAppear:
header files declare
calling code that does the instantiation for you
25. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
safety - subclassability and makes code look more consistent with C structs
CGRect bounds - GCPoint center - CGRect frame
only the innermost loop in which the break is executed is terminated
26. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
Model Objects[Factory Worker]
viewWillDissapear: and viewWillAppear:
Ready-Made Instance
27. NSArray - important methods...
C Functionn
upper
Functions
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
28. Each class picks one _ as it's designated initializer....
object
initializer
Anytime you call a method with new - alloc or copy. You own and must release that object.
the instance variables
29. Designated initializer makes sure that every...
storage
instance variable of an object is valid
new instances of the class or retrieve some global property of the class.
message
30. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
CGRect bounds
object
You take ownership for an object you want to keep a pointer to
initializers
31. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Functions
instance variables
upper
copy - retain
32. UITableViewController is a subclass of...
ready-made instances - instantiation from scratch - and nib based instantiation
is an instance of that class
UIViewController
arguments[message]
33. In general - class methods tend to be factory methods - that is...
cannot be added to an array
initializer
message
methods for generating an instance
34. Also - because arrays only hold a pointer to an object...
CF - Ref
subview(s)
a single-array can contain objects of different types
NSCoder
35. @property - is using methods...
to get and set variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Anytime you call a method with new - alloc or copy. You own and must release that object.
Maintenance of state
36. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
new instances of the class or retrieve some global property of the class.
super - self
wait until the loop finishes processing the event - at the end release it
37. When do you take ownership?...
class
@synthesize
Anytime you call a method with new - alloc or copy. You own and must release that object.
view controller
38. In Objective C arrays can hold only...
pointer - class
Anytime you call a method with new - alloc or copy. You own and must release that object.
references to objects
instance variables
39. If you have extra work you want to do on the view...
attributes - behavior
NSLog routine
draw images
do so in viewDidLoad
40. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
class methods - initializers
UIView
storage
NSCoder
41. NSString objects are usually sent _ rather than _...
delegates and dataSources
the array becomes an owner of that object and has a pointer to it.
copy - retain
create a XIB file
42. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
Continue
class methods - initializers
protocol
designated initializer
43. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
UIViewController
first responder
group of global functions already assigned to this class
message
44. To load a Xib file manually - you use _
NSCoder
NSBundle
has one root view controller
Model Objects[Factory Worker]
45. A view represents a _ area
rectangular
designated initializer
methods
reuse your cells
46. Categories are an Objective C way to add _ to an existing class without subclassing
declaration and initialization of a variable
Model Objects[Factory Worker]
methods
calling code that does the instantiation for you
47. In a class method you cannot access...
the instance variables
Hash table - Look up objects using a key to get a value.
Generic object wrapper for other non-object data types
to get and set variables
48. 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 _.
delegates and dataSources
rectangular
pointer - class
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
49. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
creating an initializer
Ready-Made Instance
lowercase - uppercase
50. NSValue - class...
selector[message]
calling code that does the instantiation for you
do so in viewDidLoad
Generic object wrapper for other non-object data types