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 view is a subclass of _
attributes - behavior
UIView
Hash table - Look up objects using a key to get a value.
safety - subclassability and makes code look more consistent with C structs
2. A UITableViewController can fill all three roles of...
data source - view controller and delegate
upper
new instances of the class or retrieve some global property of the class.
references to objects
3. When an object is removed from an NSMutableArray - that object is sent the message release;...
Continue
the message release to all its entries
the array relinquishes ownership of that object and no longer has a pointer to it
dealloc - is called on the object & the object's memory is returned to the heap
4. 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...
%d
ready-made instances - instantiation from scratch - and nib based instantiation
setPossessionName
storage
5. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
self
Maintenance of state
header files declare
6. A callback is a function that is supplied in advance of an event - and...
self
is called every time the event occurs
storage
instance variables
7. An instance is a device for maintaining state. It's a box for _ of data.
safety - subclassability and makes code look more consistent with C structs
super - self
a single-array can contain objects of different types
storage
8. 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
view controller's initialization method
self
NSBundle
parentViewController
9. A view is an...
draw images
instance of UIView or one of its subclasses
instance variables
data
10. [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.
alloc - singleton - informational utility method?
data
instance variables
implementation
11. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
Continue
data source - delegate and view controller
unordered collection of objects - objects must be unique
Encapsulation of functionality
12. The class is responsible for what instance variables the instance has - but not the _ of those variables.
size and position
will be ignored
%d
values
13. Instance Variables by default are called @protected meaning...
subview(s)
@interface ClassName:SuperClassName
setPossessionName
only the class and subclasses can access
14. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
data source - view controller and delegate
you always return the newly initialized object(return self)
variable scope - if defined within a block
header files declare
15. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
new instances of the class or retrieve some global property of the class.
array[class - NSMutableArray]
Controller Objects[Managers]
an object's property
16. UIView - designated initializer...
references to objects
(id)initWithFrame:(CGRect)aRect;
a mechanism to enable specific callbacks
delegates and dataSources
17. Core foundation classes are prefixed with _ and suffixed with _
will be ignored
class methods - initializers
CF - Ref
only the class and subclasses can access
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. 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 variables
attributes - behavior
view controller's initialization method
view controller
20. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
designated initializer
is called every time the event occurs
copy - retain
21. 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
pointers
Object wrapper around primitive types like int - float - double - BOOl
Maintenance of state
Generic object wrapper for other non-object data types
22. 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 _.
variable scope - if defined within a block
subview(s)
you must import the header file of that class
to get and set variables
23. Prefixing a character string with an @ symbol [specific - NSString class]...
callbacks
safety - subclassability and makes code look more consistent with C structs
do so in viewDidLoad
creates an instance of NSString that holds the character string
24. if you implemented both the setter and getter - the @synthesize method...
calling code that does the instantiation for you
NSCoder
will be ignored
data
25. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
Encapsulation of functionality
receiving and handling events that are associated with it
designated initializer
creating an initializer
26. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
UIViewController
@synthesize
type - name and value
27. Ready-made instances...
%d
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance variables
calling code that does the instantiation for you
28. 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.
self
first responder
the array becomes an owner of that object and has a pointer to it.
upper
29. Three ways instances are created...
accessors - individually we call them 'getters' and 'setters'
Core Graphics Framework
ready-made instances - instantiation from scratch - and nib based instantiation
object
30. Reducing details to focus on the core concepts
create a XIB file
Abstraction
NSLog routine
'getters' and 'setters'
31. Primitives and C Structures...
cannot be added to an array
NSBundle
is called every time the event occurs
initializer
32. NSValue - class...
ordered collection of objects - immutable
Generic object wrapper for other non-object data types
pointers
is called every time the event occurs
33. super - is used...
rectangular
the message release to all its entries
causes the program to immediately exit from the loop it is executing - whether its for - while or do
for inheritance - adopting the superclasses implementation
34. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
for inheritance - adopting the superclasses implementation
to get and set variables
view controller's initialization method
class methods - initializers
35. @property declares - and _ implements the setter and getter...
UIViewController
Maintenance of state
superclass's
@synthesize
36. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
%d
position
is an instance of that class
37. Property List...
data
data source - view controller and delegate
Data Encapsulation
collection of collections - NSArray of an NSArray
38. In Cocoa Touch - the table view asks another object _ what it should display...
designated initializer
type - name and value
its dataSource
data
39. Asking a class or object to execute a method
safety - subclassability and makes code look more consistent with C structs
create a XIB file
message
has one root view controller
40. A method in a _ is required unless its preceded by an @optional.
Model Objects[Factory Worker]
storage
Used to find the time right now or to store past or future time/dates
protocol
41. 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
create a XIB file
retain
to give it someone else - or another object
42. A block of statements identified by a name that can accept one or more arguments passed to it by value and can optionally return a value
receiver[message]
only the innermost loop in which the break is executed is terminated
selector[message]
Functions
43. Class methods do not operate on an _ or have any access to _ variables....
instance
unordered collection of objects - objects must be unique
the message release to all its entries
CGRect bounds - GCPoint center - CGRect frame
44. It's class is sent the message alloc - which creates an instance of that class and returns a pointer to it - and then that instance is sent the message init - which gives its instance variables initial values.
size and position
reuse your cells
instance variables
creating an initializer
45. NSDictionary...
Hash table - Look up objects using a key to get a value.
superclass's
is called every time the event occurs
view controller
46. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
'getters' and 'setters'
group of global functions already assigned to this class
position
47. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
you always return the newly initialized object(return self)
pointer to an object
first responder
CGRect
48. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
Functions
upper
define it in the implemenation file
viewWillDissapear: and viewWillAppear:
49. Center and frame are used to _ your view
receiver[message]
initializers
position
Core Graphics Framework
50. The only reason to temporarily own an object - is...
pointer to an object
storage
to give it someone else - or another object
receiving and handling events that are associated with it