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. Center and frame are used to _ your view
Model Objects[Factory Worker]
position
lowercase - uppercase
instance of UIView or one of its subclasses
2. UIView - designated initializer...
data source - delegate and view controller
(id)initWithFrame:(CGRect)aRect;
super - self
you always return the newly initialized object(return self)
3. 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
4. In Cocoa Touch - the table view asks another object _ what it should display...
a single-array can contain objects of different types
retain
its dataSource
C Functionn
5. Reference Counting...
instance variables
Functions
Abstraction
You take ownership for an object you want to keep a pointer to
6. When an object is removed from an NSMutableArray - that object is sent the message release;...
they need to be defined in the implementation file
Is a placeholder object
its dataSource
the array relinquishes ownership of that object and no longer has a pointer to it
7. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
initializer
instance variables
pointer to an object
8. UIImageView is used to...
protocol
Instantiation from scratch
draw images
NSLog routine
9. 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
10. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
data
the array relinquishes ownership of that object and no longer has a pointer to it
parentViewController
11. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
(id)initWithFrame:(CGRect)aRect;
viewWillDissapear: and viewWillAppear:
self
setPossessionName
12. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
the instance variables
instance of UIView or one of its subclasses
alloc - singleton - informational utility method?
13. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
receiver[message]
class methods - initializers
Functions
arguments[message]
14. Designated initializer makes sure that every...
instance variable of an object is valid
first responder
viewWillDissapear: and viewWillAppear:
a mechanism to enable specific callbacks
15. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
in the dealloc - or when a Controller's view is 'unloaded'
selector[message]
lowercase - uppercase
initializers
16. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
instance variables
instance variable of an object is valid
%d
17. The integer prefix is...
Model Objects[Factory Worker]
NSBundle
%d
calling code that does the instantiation for you
18. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
instance variables
method
storage
19. The class is responsible for what instance variables the instance has - but not the _ of those variables.
@interface ClassName:SuperClassName
the instance variables
delegates and dataSources
values
20. Ready-made instances...
calling code that does the instantiation for you
values
data source - delegate and view controller
super - self
21. Primitives and C Structures...
initializer
implementation
creates an instance of NSString that holds the character string
cannot be added to an array
22. 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
in the dealloc - or when a Controller's view is 'unloaded'
group of global functions already assigned to this class
a mechanism to enable specific callbacks
subview(s)
23. Property List...
instance
@synthesize
a mechanism to enable specific callbacks
collection of collections - NSArray of an NSArray
24. Asking a class or object to execute a method
NSLog routine
CF - Ref
message
do so in viewDidLoad
25. 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....
define it in the implemenation file
lowercase - uppercase
UIViewController
Ready-Made Instance
26. When do you take ownership?...
only the innermost loop in which the break is executed is terminated
ordered collection of objects - immutable
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance variable of an object is valid
27. Object Oriented based analogue to a function is called a...
method
message
instance variables
NSCoder
28. 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.
unordered collection of objects - objects must be unique
implementation
pointer to an object
C Functionn
29. Whenever a UINavigationController is about to swap views - it sends out two messages
NSLog routine
viewWillDissapear: and viewWillAppear:
array[class - NSMutableArray]
super - self
30. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
is an instance of that class
callbacks
safety - subclassability and makes code look more consistent with C structs
designated initializer
31. An instance is a device for maintaining state. It's a box for _ of data.
do so in viewDidLoad
Hash table - Look up objects using a key to get a value.
delegates and dataSources
storage
32. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
Anytime you call a method with new - alloc or copy. You own and must release that object.
nil
selector[message]
NSCoder
33. In general - class methods tend to be factory methods - that is...
methods for generating an instance
message
group of global functions already assigned to this class
is an instance of that class
34. if you implemented both the setter and getter - the @synthesize method...
will be ignored
class
(id)initWithFrame:(CGRect)aRect;
implementation
35. id is a...
Model Objects[Factory Worker]
Continue
methods
pointer to an object
36. Values to be supplied as the parameters to the method
Controller Objects[Managers]
arguments[message]
pointer to an object
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
37. Use of class methods - there are three...
methods for generating an instance
alloc - singleton - informational utility method?
instance variables
super - self
38. A collection object - an ordered list of objects that can be accesed by an index
data source - view controller and delegate
array[class - NSMutableArray]
you must import the header file of that class
first responder
39. initWithFrame: the designated initializer for UIView gives the view
ordered collection of objects - immutable
storage
size and position
they need to be defined in the implementation file
40. Each class picks one _ as it's designated initializer....
draw images
viewWillDissapear: and viewWillAppear:
has one root view controller
initializer
41. 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.
methods
Ready-Made Instance
the instance variables
creating an initializer
42. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
group of global functions already assigned to this class
NSLog routine
UIView
43. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
callbacks
NSCoder
Ready-Made Instance
44. In any application with UINavigationController - the navigation controller...
UIView
has one root view controller
object
collection of collections - NSArray of an NSArray
45. Delegation is an object oriented approach to
variable scope - if defined within a block
viewWillDissapear: and viewWillAppear:
unordered collection of objects - objects must be unique
callbacks
46. Core foundation classes are prefixed with _ and suffixed with _
CGRect
CF - Ref
values
for inheritance - adopting the superclasses implementation
47. Proceed through the loop - jump back to the top and check again
Continue
will be ignored
parentViewController
is an instance of that class
48. 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
Instantiation from scratch
has one root view controller
CGFloat
Functions
49. 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
50. Also - because arrays only hold a pointer to an object...
object
%d
a single-array can contain objects of different types
designated initializer