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. UITableViewController is a subclass of...
UIViewController
the array becomes an owner of that object and has a pointer to it.
ordered collection of objects - immutable
methods
2. A view is a subclass of _
UIView
You take ownership for an object you want to keep a pointer to
message
parentViewController
3. Proceed through the loop - jump back to the top and check again
Continue
%d
new instances of the class or retrieve some global property of the class.
Generic object wrapper for other non-object data types
4. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
class
values
NSLog routine
5. Only exists within the statement block there defined - outside of the block is fine
reuse your cells
variable scope - if defined within a block
Model Objects[Factory Worker]
is an instance of that class
6. 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
7. Origin of a view's coordinate system is _ left
accessors - individually we call them 'getters' and 'setters'
nil
copy - retain
upper
8. When an object is removed from an NSMutableArray - that object is sent the message release;...
a mechanism to enable specific callbacks
Abstraction
receiver
the array relinquishes ownership of that object and no longer has a pointer to it
9. super - is used...
dealloc - is called on the object & the object's memory is returned to the heap
self
data source - view controller and delegate
for inheritance - adopting the superclasses implementation
10. Class methods do not operate on an _ or have any access to _ variables....
delegates and dataSources
creating an initializer
Is a placeholder object
instance
11. In any application with UINavigationController - the navigation controller...
has one root view controller
CGRect bounds - GCPoint center - CGRect frame
data source - delegate and view controller
designated initializer
12. 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
13. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
draw images
creates an instance of NSString that holds the character string
lowercase - uppercase
will be ignored
14. Ready-made instances...
Data Encapsulation
attributes - behavior
calling code that does the instantiation for you
Continue
15. 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
16. A collection object - an ordered list of objects that can be accesed by an index
draw images
array[class - NSMutableArray]
do so in viewDidLoad
the instance variables
17. A view represents a _ area
rectangular
self
parentViewController
pointers
18. 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
CF - Ref
Functions
variable scope - if defined within a block
accessors - individually we call them 'getters' and 'setters'
19. You use _ to implement the view
CGRect bounds
NSLog routine
class
cannot be added to an array
20. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
You take ownership for an object you want to keep a pointer to
Data Encapsulation
receiver - selector - arguments
21. In Cocoa Touch - the table view asks another object _ what it should display...
NSLog routine
@interface ClassName:SuperClassName
Continue
its dataSource
22. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
values
reuse your cells
view controller
23. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
class methods - initializers
a single-array can contain objects of different types
object
viewWillDissapear: and viewWillAppear:
24. Core foundation classes are prefixed with _ and suffixed with _
define it in the implemenation file
view controller
header files declare
CF - Ref
25. @property declares - and _ implements the setter and getter...
has one root view controller
@synthesize
receiver
an object's property
26. if you implemented both the setter and getter - the @synthesize method...
setPossessionName
will be ignored
Continue
implementation
27. If you have extra work you want to do on the view...
header files declare
do so in viewDidLoad
protocol
instance
28. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
designated initializer
receiver[message]
to give it someone else - or another object
29. 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 _.
define it in the implemenation file
declaration and initialization of a variable
superclass's
subview(s)
30. Categories are an Objective C way to add _ to an existing class without subclassing
will be ignored
methods
group of global functions already assigned to this class
safety - subclassability and makes code look more consistent with C structs
31. Instance Variables by default are called @protected meaning...
pointer - class
a single-array can contain objects of different types
message
only the class and subclasses can access
32. If the view has no subviews - create it programmatically; if it has subviews
pointer - class
CF - Ref
the instance variables
create a XIB file
33. Three ways instances are created...
only the innermost loop in which the break is executed is terminated
receiver
ready-made instances - instantiation from scratch - and nib based instantiation
an object's property
34. Reference Counting...
implementation
you must import the header file of that class
Maintenance of state
You take ownership for an object you want to keep a pointer to
35. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
creating an initializer
NSCoder
subview(s)
You take ownership for an object you want to keep a pointer to
36. 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.
self
viewWillDissapear: and viewWillAppear:
Data Encapsulation
copy - retain
37. Property List...
collection of collections - NSArray of an NSArray
upper
the array becomes an owner of that object and has a pointer to it.
(id)initWithFrame:(CGRect)aRect;
38. An instance is a device for maintaining state. It's a box for _ of data.
reuse your cells
its dataSource
storage
a single-array can contain objects of different types
39. A pointer to the object being asked to execute a method
accessors - individually we call them 'getters' and 'setters'
designated initializer
to give it someone else - or another object
receiver[message]
40. id is a...
rectangular
pointer to an object
message
instance variable of an object is valid
41. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
selector[message]
accessors - individually we call them 'getters' and 'setters'
receiver
42. Primitives and C Structures...
only the innermost loop in which the break is executed is terminated
retain
class's
cannot be added to an array
43. initWithFrame: the designated initializer for UIView gives the view
parentViewController
size and position
type - name and value
receiver
44. NSDictionary...
pointer - class
protocol
Hash table - Look up objects using a key to get a value.
rectangular
45. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
values
initializers
NSCoder
ready-made instances - instantiation from scratch - and nib based instantiation
46. The integer prefix is...
%d
rectangular
you must import the header file of that class
position
47. NSArray - important methods...
data source - view controller and delegate
define it in the implemenation file
in the dealloc - or when a Controller's view is 'unloaded'
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
48. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
in the dealloc - or when a Controller's view is 'unloaded'
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
upper
49. Classes describe two things...
initializers
instance variables
rectangular
attributes - behavior
50. Designated initializer makes sure that every...
implementation
Maintenance of state
message
instance variable of an object is valid