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. After accessors have been defined in the header file...
Generic object wrapper for other non-object data types
Anytime you call a method with new - alloc or copy. You own and must release that object.
they need to be defined in the implementation file
Model Objects[Factory Worker]
2. Center and frame are used to _ your view
the array becomes an owner of that object and has a pointer to it.
position
Instantiation from scratch
its dataSource
3. Origin of a view's coordinate system is _ left
protocol
Data Encapsulation
Controller Objects[Managers]
upper
4. Prefixing a character string with an @ symbol [specific - NSString class]...
safety - subclassability and makes code look more consistent with C structs
in the dealloc - or when a Controller's view is 'unloaded'
creates an instance of NSString that holds the character string
class methods - initializers
5. At the top of any implementation file...
methods for generating an instance
you must import the header file of that class
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
attributes - behavior
6. 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
7. Asking a class or object to execute a method
message
pointers
array[class - NSMutableArray]
size and position
8. In general - class methods tend to be factory methods - that is...
class
Maintenance of state
methods for generating an instance
receiver
9. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
class's
NSLog routine
position
10. 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.
instance
instance variables
receiver[message]
callbacks
11. 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.
pointer - class
CGRect bounds - GCPoint center - CGRect frame
storage
first responder
12. In the last line of an init method...
parentViewController
view controller
you always return the newly initialized object(return self)
self
13. id is a...
protocol
pointer to an object
Continue
receiving and handling events that are associated with it
14. 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
view
CGRect bounds
Maintenance of state
only the innermost loop in which the break is executed is terminated
15. Ready-made instances...
the array relinquishes ownership of that object and no longer has a pointer to it
creating an initializer
view controller
calling code that does the instantiation for you
16. 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 _.
Functions
storage
references to objects
subview(s)
17. if you implemented both the setter and getter - the @synthesize method...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
variable scope - if defined within a block
group of global functions already assigned to this class
will be ignored
18. [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.
nil
NSLog routine
data
initializers
19. You use _ to implement the view
CGRect bounds
CGFloat
(id)initWithFrame:(CGRect)aRect;
view controller
20. Reducing details to focus on the core concepts
to give it someone else - or another object
Abstraction
initializer
(id)initWithFrame:(CGRect)aRect;
21. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
view
dealloc - is called on the object & the object's memory is returned to the heap
the instance variables
22. 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
23. Defining variables - three parts...
subview(s)
type - name and value
references to objects
@synthesize
24. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
instance
super - self
initializer
do so in viewDidLoad
25. The only reason to temporarily own an object - is...
to get and set variables
to give it someone else - or another object
Core Graphics Framework
is an instance of that class
26. Each class picks one _ as it's designated initializer....
Generic object wrapper for other non-object data types
upper
initializer
values
27. Values to be supplied as the parameters to the method
arguments[message]
first responder
Is a placeholder object
do so in viewDidLoad
28. Categories are an Objective C way to add _ to an existing class without subclassing
methods
object
@synthesize
parentViewController
29. What does autorelease mean?
methods for generating an instance
view
Abstraction
wait until the loop finishes processing the event - at the end release it
30. A command directed to an object is called an...
its dataSource
collection of collections - NSArray of an NSArray
first responder
message
31. 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
32. A callback is a function that is supplied in advance of an event - and...
designated initializer
is called every time the event occurs
You take ownership for an object you want to keep a pointer to
CGRect bounds - GCPoint center - CGRect frame
33. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
Data Encapsulation
CF - Ref
Functions
CGRect
34. NSDictionary...
view controller's initialization method
accessors - individually we call them 'getters' and 'setters'
Hash table - Look up objects using a key to get a value.
declaration and initialization of a variable
35. Execution of the break statement...
Controller Objects[Managers]
values
causes the program to immediately exit from the loop it is executing - whether its for - while or do
arguments[message]
36. Class methods do not operate on an _ or have any access to _ variables....
reuse your cells
a single-array can contain objects of different types
super - self
instance
37. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
38. A view represents a _ area
in the dealloc - or when a Controller's view is 'unloaded'
group of global functions already assigned to this class
an object's property
rectangular
39. Primitives and C Structures...
'getters' and 'setters'
cannot be added to an array
only the innermost loop in which the break is executed is terminated
alloc - singleton - informational utility method?
40. Also if you send the NSObject the _ message - you own that object.
retain
implementation
methods for generating an instance
parentViewController
41. Also - because arrays only hold a pointer to an object...
instance variable of an object is valid
CGFloat
a single-array can contain objects of different types
methods for generating an instance
42. If you have extra work you want to do on the view...
Used to find the time right now or to store past or future time/dates
instance variable of an object is valid
do so in viewDidLoad
ready-made instances - instantiation from scratch - and nib based instantiation
43. A message is always contained in square brackets - and has three parts
callbacks
receiver - selector - arguments
pointer - class
protocol
44. In Cocoa Touch - the table view asks another object _ what it should display...
a single-array can contain objects of different types
class methods - initializers
viewWillDissapear: and viewWillAppear:
its dataSource
45. UIImageView is used to...
pointers
header files declare
they need to be defined in the implementation file
draw images
46. 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...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
create a XIB file
array[class - NSMutableArray]
setPossessionName
47. When making a tableView always...
Model Objects[Factory Worker]
reuse your cells
setPossessionName
the message release to all its entries
48. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
first responder
%d
receiver
super - self
49. A view is an...
instance of UIView or one of its subclasses
receiver
retain
Object wrapper around primitive types like int - float - double - BOOl
50. A pointer to the object being asked to execute a method
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiver[message]
instance variable of an object is valid
has one root view controller