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. NSDictionary...
creating an initializer
Hash table - Look up objects using a key to get a value.
CF - Ref
Ready-Made Instance
2. A message is always contained in square brackets - and has three parts
methods
(id)initWithFrame:(CGRect)aRect;
accessors - individually we call them 'getters' and 'setters'
receiver - selector - arguments
3. 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
storage
class methods - initializers
Maintenance of state
Data Encapsulation
4. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
cannot be added to an array
parentViewController
Anytime you call a method with new - alloc or copy. You own and must release that object.
copy - retain
5. 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 _.
nil
selector[message]
draw images
subview(s)
6. 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
7. A view is an...
view controller
instance of UIView or one of its subclasses
CGFloat
the instance variables
8. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
lowercase - uppercase
CGRect
Instantiation from scratch
is called every time the event occurs
9. The root view controller typically creates the next view controller - and the next _ creates the one after that
class's
Hash table - Look up objects using a key to get a value.
instance variables
view controller
10. A view represents a _ area
will be ignored
superclass's
CF - Ref
rectangular
11. When an NSMutableArray is deallocated - it sends...
the instance variables
the message release to all its entries
the array relinquishes ownership of that object and no longer has a pointer to it
NSLog routine
12. Use of class methods - there are three...
self
attributes - behavior
references to objects
alloc - singleton - informational utility method?
13. You use _ to implement the view
CGRect bounds
first responder
its dataSource
method
14. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
protocol
CF - Ref
Maintenance of state
15. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
alloc - singleton - informational utility method?
class methods - initializers
header files declare
in the dealloc - or when a Controller's view is 'unloaded'
16. A method in a _ is required unless its preceded by an @optional.
safety - subclassability and makes code look more consistent with C structs
in the dealloc - or when a Controller's view is 'unloaded'
view
protocol
17. Property List...
collection of collections - NSArray of an NSArray
message
references to objects
header files declare
18. NSNumber - class...
new instances of the class or retrieve some global property of the class.
in the dealloc - or when a Controller's view is 'unloaded'
Object wrapper around primitive types like int - float - double - BOOl
to get and set variables
19. 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....
reuse your cells
Continue
unordered collection of objects - objects must be unique
define it in the implemenation file
20. At the top of any implementation file...
reuse your cells
class methods - initializers
its dataSource
you must import the header file of that class
21. NSString objects are usually sent _ rather than _...
designated initializer
position
UIViewController
copy - retain
22. Asking a class or object to execute a method
message
instance variables
receiving and handling events that are associated with it
the message release to all its entries
23. When making a tableView always...
view controller's initialization method
reuse your cells
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
array[class - NSMutableArray]
24. In Cocoa Touch - the table view asks another object _ what it should display...
variable scope - if defined within a block
initializers
its dataSource
Instantiation from scratch
25. NSString *s = @'Hello - World'; is an example of...
the array relinquishes ownership of that object and no longer has a pointer to it
viewWillDissapear: and viewWillAppear:
declaration and initialization of a variable
Is a placeholder object
26. If a break statement is executed from within a set of nested loops...
reuse your cells
instance variables
variable scope - if defined within a block
only the innermost loop in which the break is executed is terminated
27. 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
28. In any application with UINavigationController - the navigation controller...
NSLog routine
has one root view controller
implementation
Is a placeholder object
29. class methods...
instance variables
class methods - initializers
only the innermost loop in which the break is executed is terminated
group of global functions already assigned to this class
30. When an object is added to a NSMutableArray - that object is sent the message to retain;...
Hash table - Look up objects using a key to get a value.
the array becomes an owner of that object and has a pointer to it.
calling code that does the instantiation for you
implementation
31. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
receiver - selector - arguments
storage
receiver
32. 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
33. Files Owner...
data source - view controller and delegate
implementation
to get and set variables
Is a placeholder object
34. Object Oriented based analogue to a function is called a...
NSLog routine
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiver
method
35. Categories are an Objective C way to add _ to an existing class without subclassing
upper
methods
attributes - behavior
only the innermost loop in which the break is executed is terminated
36. id is a...
group of global functions already assigned to this class
rectangular
unordered collection of objects - objects must be unique
pointer to an object
37. Also if you send the NSObject the _ message - you own that object.
define it in the implemenation file
Abstraction
retain
group of global functions already assigned to this class
38. When do you take ownership?...
retain
accessors - individually we call them 'getters' and 'setters'
Anytime you call a method with new - alloc or copy. You own and must release that object.
methods
39. Views have three properties related to their location and size: @property _ _;
instance variable of an object is valid
CGRect bounds - GCPoint center - CGRect frame
CGFloat
for inheritance - adopting the superclasses implementation
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.
receiver
first responder
ready-made instances - instantiation from scratch - and nib based instantiation
is an instance of that class
41. Also - because arrays only hold a pointer to an object...
lowercase - uppercase
initializers
position
a single-array can contain objects of different types
42. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
only the class and subclasses can access
message
you must import the header file of that class
Instantiation from scratch
43. A command directed to an object is called an...
is called every time the event occurs
Core Graphics Framework
first responder
message
44. If you have extra work you want to do on the view...
delegates and dataSources
values
do so in viewDidLoad
methods
45. To load a Xib file manually - you use _
NSBundle
type - name and value
CF - Ref
cannot be added to an array
46. Class methods do not operate on an _ or have any access to _ variables....
(id)initWithFrame:(CGRect)aRect;
creates an instance of NSString that holds the character string
instance
method
47. An instance is a device for maintaining state. It's a box for _ of data.
delegates and dataSources
storage
CGRect bounds
copy - retain
48. super - is used...
for inheritance - adopting the superclasses implementation
values
Is a placeholder object
message
49. Each class picks one _ as it's designated initializer....
callbacks
(id)initWithFrame:(CGRect)aRect;
values
initializer
50. if you implemented both the setter and getter - the @synthesize method...
will be ignored
implementation
new instances of the class or retrieve some global property of the class.
copy - retain