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. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
Continue
Core Graphics Framework
to give it someone else - or another object
designated initializer
2. if you implemented both the setter and getter - the @synthesize method...
alloc - singleton - informational utility method?
method
will be ignored
for inheritance - adopting the superclasses implementation
3. The class is responsible for what instance variables the instance has - but not the _ of those variables.
Abstraction
values
'getters' and 'setters'
protocol
4. A method in a _ is required unless its preceded by an @optional.
setPossessionName
protocol
Anytime you call a method with new - alloc or copy. You own and must release that object.
NSLog routine
5. How do I implement my drawRect?
Continue
Abstraction
Core Graphics Framework
the message release to all its entries
6. NSDictionary...
Hash table - Look up objects using a key to get a value.
Instantiation from scratch
Is a placeholder object
object
7. class methods...
Encapsulation of functionality
instance variables
Hash table - Look up objects using a key to get a value.
group of global functions already assigned to this class
8. Ready-made instances...
calling code that does the instantiation for you
viewWillDissapear: and viewWillAppear:
storage
the array becomes an owner of that object and has a pointer to it.
9. Core foundation classes are prefixed with _ and suffixed with _
instance of UIView or one of its subclasses
initializers
pointers
CF - Ref
10. What does autorelease mean?
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
declaration and initialization of a variable
receiver - selector - arguments
wait until the loop finishes processing the event - at the end release it
11. NSDate - class...
group of global functions already assigned to this class
Used to find the time right now or to store past or future time/dates
Core Graphics Framework
parentViewController
12. After accessors have been defined in the header file...
Core Graphics Framework
they need to be defined in the implementation file
its dataSource
view controller
13. Reference Counting...
you always return the newly initialized object(return self)
they need to be defined in the implementation file
alloc - singleton - informational utility method?
You take ownership for an object you want to keep a pointer to
14. A callback is a function that is supplied in advance of an event - and...
Continue
Anytime you call a method with new - alloc or copy. You own and must release that object.
is called every time the event occurs
Abstraction
15. Any individual object belonging to any class...
only the class and subclasses can access
selector[message]
view controller's initialization method
is an instance of that class
16. Just a floating point number - but we always use it for graphics.
its dataSource
CGFloat
methods
array[class - NSMutableArray]
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
variable scope - if defined within a block
UIView
CGRect
18. Property List...
collection of collections - NSArray of an NSArray
alloc - singleton - informational utility method?
first responder
cannot be added to an array
19. Center and frame are used to _ your view
rectangular
an object's property
Generic object wrapper for other non-object data types
position
20. Categories are an Objective C way to add _ to an existing class without subclassing
methods
UIView
data source - view controller and delegate
pointers
21. 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 _.
NSBundle
do so in viewDidLoad
position
subview(s)
22. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
arguments[message]
only the innermost loop in which the break is executed is terminated
receiver
initializer
23. The root view controller typically creates the next view controller - and the next _ creates the one after that
callbacks
view controller
pointer to an object
you must import the header file of that class
24. A view represents a _ area
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
rectangular
NSBundle
an object's property
25. Defining variables - three parts...
setPossessionName
you must import the header file of that class
storage
type - name and value
26. Proceed through the loop - jump back to the top and check again
only the innermost loop in which the break is executed is terminated
only the class and subclasses can access
designated initializer
Continue
27. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
Is a placeholder object
instance
selector[message]
28. super - is used...
implementation
calling code that does the instantiation for you
arguments[message]
for inheritance - adopting the superclasses implementation
29. 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
a mechanism to enable specific callbacks
class's
CF - Ref
creating an initializer
30. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
first responder
header files declare
rectangular
you must import the header file of that class
31. When do you take ownership?...
position
data source - delegate and view controller
Anytime you call a method with new - alloc or copy. You own and must release that object.
view controller
32. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
lowercase - uppercase
view controller
Model Objects[Factory Worker]
initializers
33. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
an object's property
subview(s)
new instances of the class or retrieve some global property of the class.
object
34. 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.
accessors - individually we call them 'getters' and 'setters'
delegates and dataSources
Data Encapsulation
NSLog routine
35. A pointer to the object being asked to execute a method
data
new instances of the class or retrieve some global property of the class.
NSBundle
receiver[message]
36. Designated initializer makes sure that every...
Used to find the time right now or to store past or future time/dates
receiver - selector - arguments
You take ownership for an object you want to keep a pointer to
instance variable of an object is valid
37. The only reason to temporarily own an object - is...
to give it someone else - or another object
data source - view controller and delegate
Maintenance of state
pointer to an object
38. You use _ to implement the view
CGRect bounds
'getters' and 'setters'
%d
the array relinquishes ownership of that object and no longer has a pointer to it
39. A function in the objective c library that simply displays or logs it's argument
parentViewController
the array becomes an owner of that object and has a pointer to it.
receiving and handling events that are associated with it
NSLog routine
40. 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.
attributes - behavior
rectangular
NSCoder
first responder
41. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
dealloc - is called on the object & the object's memory is returned to the heap
a mechanism to enable specific callbacks
Controller Objects[Managers]
42. 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
Encapsulation of functionality
only the innermost loop in which the break is executed is terminated
collection of collections - NSArray of an NSArray
Model Objects[Factory Worker]
43. A view is an...
to get and set variables
cannot be added to an array
pointer to an object
instance of UIView or one of its subclasses
44. @property - is using methods...
C Functionn
to get and set variables
method
class
45. A responder is responsible for...
receiving and handling events that are associated with it
a mechanism to enable specific callbacks
setPossessionName
they need to be defined in the implementation file
46. In general - class methods tend to be factory methods - that is...
NSLog routine
attributes - behavior
methods for generating an instance
Continue
47. In any application with UINavigationController - the navigation controller...
declaration and initialization of a variable
has one root view controller
object
retain
48. Values to be supplied as the parameters to the method
arguments[message]
object
references to objects
is called every time the event occurs
49. Each _ has a 'designated' initializer method....
values
class
method
ready-made instances - instantiation from scratch - and nib based instantiation
50. 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