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. Delegation is an object oriented approach to
the instance variables
upper
callbacks
only the innermost loop in which the break is executed is terminated
2. id is a...
pointer to an object
data source - view controller and delegate
implementation
is called every time the event occurs
3. When do you take ownership?...
NSCoder
initializers
Anytime you call a method with new - alloc or copy. You own and must release that object.
class methods - initializers
4. NSString objects are usually sent _ rather than _...
copy - retain
callbacks
the instance variables
CF - Ref
5. Ready-made instances...
is an instance of that class
callbacks
calling code that does the instantiation for you
Functions
6. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
pointers
You take ownership for an object you want to keep a pointer to
self
class's
7. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
in the dealloc - or when a Controller's view is 'unloaded'
instance of UIView or one of its subclasses
do so in viewDidLoad
8. A callback is a function that is supplied in advance of an event - and...
type - name and value
receiver
instance variables
is called every time the event occurs
9. 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
initializers
calling code that does the instantiation for you
self
10. A method in a _ is required unless its preceded by an @optional.
group of global functions already assigned to this class
You take ownership for an object you want to keep a pointer to
references to objects
protocol
11. 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
12. In Cocoa Touch - the table view asks another object _ what it should display...
class methods - initializers
its dataSource
NSLog routine
is an instance of that class
13. A view is a subclass of _
retain
UIView
data
storage
14. Defining variables - three parts...
Controller Objects[Managers]
type - name and value
view
Anytime you call a method with new - alloc or copy. You own and must release that object.
15. Views have three properties related to their location and size: @property _ _;
upper
Ready-Made Instance
'getters' and 'setters'
CGRect bounds - GCPoint center - CGRect frame
16. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
CGFloat
for inheritance - adopting the superclasses implementation
array[class - NSMutableArray]
17. 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
18. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
selector[message]
receiver
19. Each class picks one _ as it's designated initializer....
collection of collections - NSArray of an NSArray
initializer
receiving and handling events that are associated with it
class's
20. Asking a class or object to execute a method
instance variables
message
Data Encapsulation
nil
21. An instance is a device for maintaining state. It's a box for _ of data.
storage
@interface ClassName:SuperClassName
unordered collection of objects - objects must be unique
the array becomes an owner of that object and has a pointer to it.
22. Origin of a view's coordinate system is _ left
protocol
CGRect bounds
Model Objects[Factory Worker]
upper
23. 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
safety - subclassability and makes code look more consistent with C structs
creates an instance of NSString that holds the character string
NSBundle
24. At the top of any implementation file...
you must import the header file of that class
reuse your cells
data
the array relinquishes ownership of that object and no longer has a pointer to it
25. NSSet...
subview(s)
view controller's initialization method
delegates and dataSources
unordered collection of objects - objects must be unique
26. 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.
will be ignored
receiver
Data Encapsulation
Abstraction
27. In any application with UINavigationController - the navigation controller...
has one root view controller
Encapsulation of functionality
class
pointers
28. Center and frame are used to _ your view
position
causes the program to immediately exit from the loop it is executing - whether its for - while or do
pointer - class
declaration and initialization of a variable
29. if you implemented both the setter and getter - the @synthesize method...
object
will be ignored
nil
unordered collection of objects - objects must be unique
30. 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.
CGRect bounds
Used to find the time right now or to store past or future time/dates
Controller Objects[Managers]
instance variables
31. When making a tableView always...
Maintenance of state
reuse your cells
instance variables
initializers
32. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
receiver
33. All objects are accessed using...
pointers
setPossessionName
only the innermost loop in which the break is executed is terminated
Is a placeholder object
34. A responder is responsible for...
receiver
receiving and handling events that are associated with it
data source - view controller and delegate
C Functionn
35. UITableViewController is a subclass of...
UIViewController
safety - subclassability and makes code look more consistent with C structs
instance of UIView or one of its subclasses
UIView
36. Class methods do not operate on an _ or have any access to _ variables....
Maintenance of state
do so in viewDidLoad
creates an instance of NSString that holds the character string
instance
37. Just a floating point number - but we always use it for graphics.
they need to be defined in the implementation file
CGFloat
subview(s)
UIView
38. The integer prefix is...
designated initializer
%d
pointer - class
only the innermost loop in which the break is executed is terminated
39. A function in the objective c library that simply displays or logs it's argument
NSLog routine
accessors - individually we call them 'getters' and 'setters'
(id)initWithFrame:(CGRect)aRect;
Model Objects[Factory Worker]
40. 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
a mechanism to enable specific callbacks
You take ownership for an object you want to keep a pointer to
Maintenance of state
upper
41. Reducing details to focus on the core concepts
has one root view controller
Abstraction
values
cannot be added to an array
42. Core foundation classes are prefixed with _ and suffixed with _
attributes - behavior
CF - Ref
collection of collections - NSArray of an NSArray
Maintenance of state
43. Object Oriented based analogue to a function is called a...
receiving and handling events that are associated with it
lowercase - uppercase
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
method
44. NSDictionary...
Hash table - Look up objects using a key to get a value.
delegates and dataSources
upper
self
45. In general - class methods tend to be factory methods - that is...
You take ownership for an object you want to keep a pointer to
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
subview(s)
methods for generating an instance
46. 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
47. 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....
You take ownership for an object you want to keep a pointer to
create a XIB file
define it in the implemenation file
Instantiation from scratch
48. NSDate - class...
creating an initializer
ready-made instances - instantiation from scratch - and nib based instantiation
Used to find the time right now or to store past or future time/dates
selector[message]
49. After accessors have been defined in the header file...
viewWillDissapear: and viewWillAppear:
dealloc - is called on the object & the object's memory is returned to the heap
they need to be defined in the implementation file
header files declare
50. Categories are an Objective C way to add _ to an existing class without subclassing
class
Generic object wrapper for other non-object data types
methods
the array relinquishes ownership of that object and no longer has a pointer to it