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. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
the instance variables
draw images
has one root view controller
@interface ClassName:SuperClassName
2. Number one use of protocols in iOS...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
protocol
the array relinquishes ownership of that object and no longer has a pointer to it
delegates and dataSources
3. Name of the method to be executed
'getters' and 'setters'
view controller
is called every time the event occurs
selector[message]
4. Hold data and know nothing about the user interface
position
Model Objects[Factory Worker]
UIViewController
will be ignored
5. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
class methods - initializers
super - self
receiver[message]
instance of UIView or one of its subclasses
6. 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
7. Delegation is an object oriented approach to
subview(s)
CGRect bounds
callbacks
initializer
8. 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
Maintenance of state
data source - view controller and delegate
define it in the implemenation file
NSCoder
9. Instance Variables by default are called @protected meaning...
You take ownership for an object you want to keep a pointer to
accessors - individually we call them 'getters' and 'setters'
unordered collection of objects - objects must be unique
only the class and subclasses can access
10. 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
11. Designated initializer makes sure that every...
superclass's
Anytime you call a method with new - alloc or copy. You own and must release that object.
Generic object wrapper for other non-object data types
instance variable of an object is valid
12. NSDictionary...
Hash table - Look up objects using a key to get a value.
references to objects
ready-made instances - instantiation from scratch - and nib based instantiation
will be ignored
13. The integer prefix is...
define it in the implemenation file
%d
designated initializer
accessors - individually we call them 'getters' and 'setters'
14. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
CF - Ref
header files declare
instance variables
Functions
15. In the last line of an init method...
Data Encapsulation
you always return the newly initialized object(return self)
view controller
view controller's initialization method
16. Prefixing a character string with an @ symbol [specific - NSString class]...
class methods - initializers
creates an instance of NSString that holds the character string
receiver - selector - arguments
you must import the header file of that class
17. A UITableViewController can fill all three roles of...
callbacks
data source - view controller and delegate
its dataSource
safety - subclassability and makes code look more consistent with C structs
18. 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
19. Files Owner...
size and position
Is a placeholder object
data source - delegate and view controller
class
20. A collection object - an ordered list of objects that can be accesed by an index
view
NSLog routine
Core Graphics Framework
array[class - NSMutableArray]
21. UIViewController has several methods that get called at certain times...
methods
retain
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
define it in the implemenation file
22. The class is responsible for what instance variables the instance has - but not the _ of those variables.
declaration and initialization of a variable
array[class - NSMutableArray]
instance variables
values
23. When making a tableView always...
lowercase - uppercase
reuse your cells
Core Graphics Framework
new instances of the class or retrieve some global property of the class.
24. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
object
CGRect
callbacks
Controller Objects[Managers]
25. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
unordered collection of objects - objects must be unique
26. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
callbacks
size and position
%d
27. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
Controller Objects[Managers]
is an instance of that class
object
variable scope - if defined within a block
28. Each _ has a 'designated' initializer method....
@synthesize
class
calling code that does the instantiation for you
reuse your cells
29. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
wait until the loop finishes processing the event - at the end release it
attributes - behavior
30. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
a mechanism to enable specific callbacks
receiver - selector - arguments
instance of UIView or one of its subclasses
designated initializer
31. In Cocoa Touch - the table view asks another object _ what it should display...
calling code that does the instantiation for you
its dataSource
you must import the header file of that class
only the innermost loop in which the break is executed is terminated
32. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
initializer
instance of UIView or one of its subclasses
Ready-Made Instance
creating an initializer
33. if you implemented both the setter and getter - the @synthesize method...
will be ignored
group of global functions already assigned to this class
selector[message]
has one root view controller
34. If a break statement is executed from within a set of nested loops...
you must import the header file of that class
define it in the implemenation file
only the innermost loop in which the break is executed is terminated
causes the program to immediately exit from the loop it is executing - whether its for - while or do
35. Proceed through the loop - jump back to the top and check again
upper
super - self
@interface ClassName:SuperClassName
Continue
36. super - is used...
for inheritance - adopting the superclasses implementation
message
Encapsulation of functionality
data
37. A _ handles touch events.
Encapsulation of functionality
view
setPossessionName
arguments[message]
38. Categories are an Objective C way to add _ to an existing class without subclassing
methods
CGFloat
causes the program to immediately exit from the loop it is executing - whether its for - while or do
NSBundle
39. A responder is responsible for...
selector[message]
draw images
receiving and handling events that are associated with it
lowercase - uppercase
40. A method in a _ is required unless its preceded by an @optional.
methods for generating an instance
protocol
(id)initWithFrame:(CGRect)aRect;
viewWillDissapear: and viewWillAppear:
41. Center and frame are used to _ your view
header files declare
its dataSource
position
do so in viewDidLoad
42. 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
has one root view controller
collection of collections - NSArray of an NSArray
arguments[message]
43. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
ordered collection of objects - immutable
a single-array can contain objects of different types
retain
44. id is a...
pointer to an object
CF - Ref
the message release to all its entries
@synthesize
45. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
copy - retain
pointer - class
upper
46. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
safety - subclassability and makes code look more consistent with C structs
the array becomes an owner of that object and has a pointer to it.
array[class - NSMutableArray]
47. What does autorelease mean?
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
for inheritance - adopting the superclasses implementation
wait until the loop finishes processing the event - at the end release it
Data Encapsulation
48. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
Abstraction
implementation
lowercase - uppercase
NSBundle
49. NSDate - class...
alloc - singleton - informational utility method?
Used to find the time right now or to store past or future time/dates
safety - subclassability and makes code look more consistent with C structs
CF - Ref
50. Class methods do not operate on an _ or have any access to _ variables....
upper
new instances of the class or retrieve some global property of the class.
CGRect bounds - GCPoint center - CGRect frame
instance