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. 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 _.
the message release to all its entries
pointer - class
causes the program to immediately exit from the loop it is executing - whether its for - while or do
@interface ClassName:SuperClassName
2. A UITableViewController can fill all three roles of...
alloc - singleton - informational utility method?
lowercase - uppercase
data source - view controller and delegate
%d
3. When an object is removed from an NSMutableArray - that object is sent the message release;...
storage
you always return the newly initialized object(return self)
instance
the array relinquishes ownership of that object and no longer has a pointer to it
4. How do I implement my drawRect?
Hash table - Look up objects using a key to get a value.
Core Graphics Framework
CF - Ref
is called every time the event occurs
5. 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 _.
define it in the implemenation file
only the innermost loop in which the break is executed is terminated
Encapsulation of functionality
subview(s)
6. At the top of any implementation file...
you must import the header file of that class
causes the program to immediately exit from the loop it is executing - whether its for - while or do
type - name and value
Data Encapsulation
7. Instance Variables by default are called @protected meaning...
'getters' and 'setters'
position
only the class and subclasses can access
array[class - NSMutableArray]
8. Classes describe two things...
only the class and subclasses can access
wait until the loop finishes processing the event - at the end release it
attributes - behavior
they need to be defined in the implementation file
9. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
self
(id)initWithFrame:(CGRect)aRect;
ordered collection of objects - immutable
10. Execution of the break statement...
receiver
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Data Encapsulation
variable scope - if defined within a block
11. NSDate - class...
view
Used to find the time right now or to store past or future time/dates
the instance variables
@synthesize
12. Also if you send the NSObject the _ message - you own that object.
values
methods for generating an instance
retain
the array relinquishes ownership of that object and no longer has a pointer to it
13. When making a tableView always...
values
setPossessionName
reuse your cells
calling code that does the instantiation for you
14. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
the message release to all its entries
setPossessionName
they need to be defined in the implementation file
15. The integer prefix is...
draw images
for inheritance - adopting the superclasses implementation
the message release to all its entries
%d
16. In a class method you cannot access...
for inheritance - adopting the superclasses implementation
the instance variables
receiving and handling events that are associated with it
message
17. When an NSMutableArray is deallocated - it sends...
viewWillDissapear: and viewWillAppear:
Core Graphics Framework
the message release to all its entries
view
18. All objects are accessed using...
an object's property
pointers
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Generic object wrapper for other non-object data types
19. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
@synthesize
class methods - initializers
new instances of the class or retrieve some global property of the class.
Ready-Made Instance
20. 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
21. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
super - self
arguments[message]
self
method
22. Name of the method to be executed
Is a placeholder object
in the dealloc - or when a Controller's view is 'unloaded'
selector[message]
viewWillDissapear: and viewWillAppear:
23. UITableViewController is a subclass of...
ordered collection of objects - immutable
you must import the header file of that class
UIViewController
delegates and dataSources
24. Typically the designated initializer has parameters for the most important and frequently used _ of an object
implementation
define it in the implemenation file
instance variables
class's
25. Each class picks one _ as it's designated initializer....
initializer
Ready-Made Instance
Maintenance of state
receiver - selector - arguments
26. NSSet...
collection of collections - NSArray of an NSArray
create a XIB file
unordered collection of objects - objects must be unique
instance
27. Any individual object belonging to any class...
is an instance of that class
values
instance of UIView or one of its subclasses
message
28. 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
29. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
declaration and initialization of a variable
in the dealloc - or when a Controller's view is 'unloaded'
the array relinquishes ownership of that object and no longer has a pointer to it
NSCoder
30. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
instance of UIView or one of its subclasses
pointer to an object
Ready-Made Instance
NSLog routine
31. 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.
in the dealloc - or when a Controller's view is 'unloaded'
instance variables
Used to find the time right now or to store past or future time/dates
retain
32. Reducing details to focus on the core concepts
storage
callbacks
Abstraction
reuse your cells
33. Categories are an Objective C way to add _ to an existing class without subclassing
NSCoder
message
CGRect bounds
methods
34. A UITableView usually needs three different pieces...
message
to get and set variables
data source - delegate and view controller
instance variable of an object is valid
35. The class is responsible for what instance variables the instance has - but not the _ of those variables.
reuse your cells
values
implementation
size and position
36. NSValue - class...
method
Generic object wrapper for other non-object data types
alloc - singleton - informational utility method?
only the class and subclasses can access
37. The only reason to temporarily own an object - is...
to give it someone else - or another object
position
an object's property
class methods - initializers
38. In Cocoa Touch - the table view asks another object _ what it should display...
define it in the implemenation file
Continue
draw images
its dataSource
39. A responder is responsible for...
receiving and handling events that are associated with it
view controller
storage
safety - subclassability and makes code look more consistent with C structs
40. [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.
NSBundle
%d
will be ignored
data
41. UIImageView is used to...
the message release to all its entries
draw images
Data Encapsulation
ordered collection of objects - immutable
42. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Maintenance of state
subview(s)
(id)initWithFrame:(CGRect)aRect;
43. Core foundation classes are prefixed with _ and suffixed with _
creating an initializer
CF - Ref
receiver
CGRect bounds - GCPoint center - CGRect frame
44. Files Owner...
the instance variables
array[class - NSMutableArray]
Is a placeholder object
storage
45. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
safety - subclassability and makes code look more consistent with C structs
initializer
they need to be defined in the implementation file
header files declare
46. Only exists within the statement block there defined - outside of the block is fine
do so in viewDidLoad
ready-made instances - instantiation from scratch - and nib based instantiation
variable scope - if defined within a block
draw images
47. 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
48. A collection object - an ordered list of objects that can be accesed by an index
object
message
array[class - NSMutableArray]
draw images
49. 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...
cannot be added to an array
delegates and dataSources
setPossessionName
dealloc - is called on the object & the object's memory is returned to the heap
50. 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