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 Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
class's
you must import the header file of that class
Is a placeholder object
2. Proceed through the loop - jump back to the top and check again
you always return the newly initialized object(return self)
Continue
is an instance of that class
nil
3. In a class method you cannot access...
collection of collections - NSArray of an NSArray
the instance variables
nil
ready-made instances - instantiation from scratch - and nib based instantiation
4. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
reuse your cells
C Functionn
Ready-Made Instance
Instantiation from scratch
5. Delegation is an object oriented approach to
Abstraction
storage
message
callbacks
6. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Used to find the time right now or to store past or future time/dates
method
Maintenance of state
7. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
only the class and subclasses can access
CGFloat
class's
8. When an NSMutableArray is deallocated - it sends...
@synthesize
dealloc - is called on the object & the object's memory is returned to the heap
message
the message release to all its entries
9. 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
10. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
CGRect bounds
a mechanism to enable specific callbacks
Anytime you call a method with new - alloc or copy. You own and must release that object.
CGRect
11. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
pointers
CGRect
object
instance variables
12. Reducing details to focus on the core concepts
creates an instance of NSString that holds the character string
data source - view controller and delegate
Abstraction
dealloc - is called on the object & the object's memory is returned to the heap
13. if you implemented both the setter and getter - the @synthesize method...
will be ignored
data source - delegate and view controller
they need to be defined in the implementation file
view controller's initialization method
14. Center and frame are used to _ your view
position
is an instance of that class
instance variable of an object is valid
instance of UIView or one of its subclasses
15. In the last line of an init method...
@interface ClassName:SuperClassName
alloc - singleton - informational utility method?
you always return the newly initialized object(return self)
is an instance of that class
16. NSArray - important methods...
attributes - behavior
reuse your cells
selector[message]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
17. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
implementation
UIView
Generic object wrapper for other non-object data types
view controller's initialization method
18. Reference Counting...
CGRect bounds - GCPoint center - CGRect frame
You take ownership for an object you want to keep a pointer to
viewWillDissapear: and viewWillAppear:
CGFloat
19. In Objective C arrays can hold only...
data source - view controller and delegate
You take ownership for an object you want to keep a pointer to
message
references to objects
20. To load a Xib file manually - you use _
class's
arguments[message]
group of global functions already assigned to this class
NSBundle
21. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
object
NSCoder
size and position
has one root view controller
22. Classes describe two things...
(id)initWithFrame:(CGRect)aRect;
message
attributes - behavior
implementation
23. How do I implement my drawRect?
method
@interface ClassName:SuperClassName
Core Graphics Framework
C Functionn
24. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
25. A callback is a function that is supplied in advance of an event - and...
Anytime you call a method with new - alloc or copy. You own and must release that object.
is called every time the event occurs
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Controller Objects[Managers]
26. 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
C Functionn
parentViewController
draw images
Model Objects[Factory Worker]
27. Each _ has a 'designated' initializer method....
class
they need to be defined in the implementation file
to get and set variables
accessors - individually we call them 'getters' and 'setters'
28. Any individual object belonging to any class...
object
is an instance of that class
unordered collection of objects - objects must be unique
only the innermost loop in which the break is executed is terminated
29. 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
30. 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...
data source - delegate and view controller
receiving and handling events that are associated with it
causes the program to immediately exit from the loop it is executing - whether its for - while or do
setPossessionName
31. The integer prefix is...
%d
Controller Objects[Managers]
selector[message]
define it in the implemenation file
32. The only reason to temporarily own an object - is...
instance variable of an object is valid
to give it someone else - or another object
in the dealloc - or when a Controller's view is 'unloaded'
CGFloat
33. NSString objects are usually sent _ rather than _...
ready-made instances - instantiation from scratch - and nib based instantiation
declaration and initialization of a variable
Used to find the time right now or to store past or future time/dates
copy - retain
34. A _ handles touch events.
view
protocol
NSCoder
Anytime you call a method with new - alloc or copy. You own and must release that object.
35. id is a...
variable scope - if defined within a block
instance variables
create a XIB file
pointer to an object
36. NSDate - class...
collection of collections - NSArray of an NSArray
Model Objects[Factory Worker]
delegates and dataSources
Used to find the time right now or to store past or future time/dates
37. An instance is a device for maintaining state. It's a box for _ of data.
Used to find the time right now or to store past or future time/dates
storage
calling code that does the instantiation for you
lowercase - uppercase
38. 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
39. Values to be supplied as the parameters to the method
You take ownership for an object you want to keep a pointer to
arguments[message]
view
nil
40. Class methods do not operate on an _ or have any access to _ variables....
callbacks
arguments[message]
Is a placeholder object
instance
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 _.
the array relinquishes ownership of that object and no longer has a pointer to it
pointer to an object
@interface ClassName:SuperClassName
pointer - class
42. At the top of any implementation file...
@interface ClassName:SuperClassName
you must import the header file of that class
lowercase - uppercase
Hash table - Look up objects using a key to get a value.
43. 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
44. Views have three properties related to their location and size: @property _ _;
is an instance of that class
selector[message]
for inheritance - adopting the superclasses implementation
CGRect bounds - GCPoint center - CGRect frame
45. A view represents a _ area
rectangular
CGFloat
accessors - individually we call them 'getters' and 'setters'
unordered collection of objects - objects must be unique
46. 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....
CGFloat
delegates and dataSources
define it in the implemenation file
view controller
47. UIView - designated initializer...
implementation
(id)initWithFrame:(CGRect)aRect;
instance of UIView or one of its subclasses
Encapsulation of functionality
48. A UITableView usually needs three different pieces...
references to objects
Used to find the time right now or to store past or future time/dates
do so in viewDidLoad
data source - delegate and view controller
49. 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
ordered collection of objects - immutable
they need to be defined in the implementation file
callbacks
50. Hold data and know nothing about the user interface
is an instance of that class
viewWillDissapear: and viewWillAppear:
unordered collection of objects - objects must be unique
Model Objects[Factory Worker]