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. Reference Counting...
only the innermost loop in which the break is executed is terminated
in the dealloc - or when a Controller's view is 'unloaded'
Generic object wrapper for other non-object data types
You take ownership for an object you want to keep a pointer to
2. Just a floating point number - but we always use it for graphics.
only the class and subclasses can access
is an instance of that class
viewWillDissapear: and viewWillAppear:
CGFloat
3. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
ready-made instances - instantiation from scratch - and nib based instantiation
rectangular
NSLog routine
4. 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....
Data Encapsulation
define it in the implemenation file
first responder
Is a placeholder object
5. Name of the method to be executed
a single-array can contain objects of different types
Abstraction
view controller
selector[message]
6. if you implemented both the setter and getter - the @synthesize method...
instance
only the class and subclasses can access
will be ignored
UIView
7. 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...
only the innermost loop in which the break is executed is terminated
only the class and subclasses can access
setPossessionName
the array becomes an owner of that object and has a pointer to it.
8. Only exists within the statement block there defined - outside of the block is fine
header files declare
variable scope - if defined within a block
an object's property
arguments[message]
9. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
self
wait until the loop finishes processing the event - at the end release it
is called every time the event occurs
10. Class methods typically either create
Maintenance of state
new instances of the class or retrieve some global property of the class.
UIViewController
message
11. A callback is a function that is supplied in advance of an event - and...
position
Model Objects[Factory Worker]
ordered collection of objects - immutable
is called every time the event occurs
12. UIImageView is used to...
CGRect bounds
draw images
instance
size and position
13. Reducing details to focus on the core concepts
Abstraction
CGRect bounds
NSBundle
NSLog routine
14. Delegation is an object oriented approach to
callbacks
C Functionn
data source - view controller and delegate
to get and set variables
15. In any application with UINavigationController - the navigation controller...
Used to find the time right now or to store past or future time/dates
has one root view controller
super - self
rectangular
16. A UITableViewController can fill all three roles of...
creating an initializer
data source - view controller and delegate
Encapsulation of functionality
Is a placeholder object
17. A command directed to an object is called an...
message
Functions
do so in viewDidLoad
has one root view controller
18. UIView - designated initializer...
variable scope - if defined within a block
data
is an instance of that class
(id)initWithFrame:(CGRect)aRect;
19. Number one use of protocols in iOS...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
you always return the newly initialized object(return self)
Anytime you call a method with new - alloc or copy. You own and must release that object.
delegates and dataSources
20. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
nil
variable scope - if defined within a block
new instances of the class or retrieve some global property of the class.
has one root view controller
21. Defining variables - three parts...
its dataSource
type - name and value
do so in viewDidLoad
method
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
a mechanism to enable specific callbacks
values
collection of collections - NSArray of an NSArray
retain
23. Class methods do not operate on an _ or have any access to _ variables....
the array relinquishes ownership of that object and no longer has a pointer to it
is called every time the event occurs
instance variables
instance
24. NSString *s = @'Hello - World'; is an example of...
rectangular
declaration and initialization of a variable
'getters' and 'setters'
Generic object wrapper for other non-object data types
25. Values to be supplied as the parameters to the method
Model Objects[Factory Worker]
arguments[message]
group of global functions already assigned to this class
Used to find the time right now or to store past or future time/dates
26. Center and frame are used to _ your view
parentViewController
position
receiving and handling events that are associated with it
view controller
27. If the view has no subviews - create it programmatically; if it has subviews
accessors - individually we call them 'getters' and 'setters'
create a XIB file
cannot be added to an array
C Functionn
28. Asking a class or object to execute a method
message
viewWillDissapear: and viewWillAppear:
array[class - NSMutableArray]
protocol
29. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
parentViewController
only the innermost loop in which the break is executed is terminated
instance variables
to get and set variables
30. A view represents a _ area
Anytime you call a method with new - alloc or copy. You own and must release that object.
type - name and value
group of global functions already assigned to this class
rectangular
31. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
'getters' and 'setters'
view controller's initialization method
in the dealloc - or when a Controller's view is 'unloaded'
32. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
self
calling code that does the instantiation for you
superclass's
@interface ClassName:SuperClassName
33. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
class's
a mechanism to enable specific callbacks
cannot be added to an array
data
34. 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
variable scope - if defined within a block
arguments[message]
the instance variables
Maintenance of state
35. Each _ has a 'designated' initializer method....
class
collection of collections - NSArray of an NSArray
only the innermost loop in which the break is executed is terminated
cannot be added to an array
36. 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
37. NSValue - class...
pointer - class
copy - retain
Generic object wrapper for other non-object data types
first responder
38. A UITableView usually needs three different pieces...
calling code that does the instantiation for you
data source - delegate and view controller
attributes - behavior
its dataSource
39. 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
40. When making a tableView always...
reuse your cells
viewWillDissapear: and viewWillAppear:
Anytime you call a method with new - alloc or copy. You own and must release that object.
super - self
41. To load a Xib file manually - you use _
pointer to an object
NSBundle
the array becomes an owner of that object and has a pointer to it.
collection of collections - NSArray of an NSArray
42. The integer prefix is...
an object's property
designated initializer
a single-array can contain objects of different types
%d
43. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
instance variable of an object is valid
instance
designated initializer
Functions
44. If a break statement is executed from within a set of nested loops...
the array becomes an owner of that object and has a pointer to it.
CGRect bounds - GCPoint center - CGRect frame
new instances of the class or retrieve some global property of the class.
only the innermost loop in which the break is executed is terminated
45. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
creates an instance of NSString that holds the character string
group of global functions already assigned to this class
receiver - selector - arguments
46. Views have three properties related to their location and size: @property _ _;
to get and set variables
CGRect bounds - GCPoint center - CGRect frame
its dataSource
CGFloat
47. 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
48. NSArray - important methods...
to get and set variables
the message release to all its entries
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
data source - view controller and delegate
49. A collection object - an ordered list of objects that can be accesed by an index
Continue
array[class - NSMutableArray]
wait until the loop finishes processing the event - at the end release it
rectangular
50. NSDictionary...
Hash table - Look up objects using a key to get a value.
callbacks
message
Continue