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. When do you take ownership?...
type - name and value
Anytime you call a method with new - alloc or copy. You own and must release that object.
UIView
pointer - class
2. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
CGFloat
CGRect
collection of collections - NSArray of an NSArray
designated initializer
3. Also if you send the NSObject the _ message - you own that object.
lowercase - uppercase
self
wait until the loop finishes processing the event - at the end release it
retain
4. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
nil
group of global functions already assigned to this class
the message release to all its entries
5. Prefixing a character string with an @ symbol [specific - NSString class]...
collection of collections - NSArray of an NSArray
%d
creates an instance of NSString that holds the character string
CGRect
6. A view is a subclass of _
view
UIView
You take ownership for an object you want to keep a pointer to
message
7. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
nil
ordered collection of objects - immutable
Instantiation from scratch
Object wrapper around primitive types like int - float - double - BOOl
8. In general - class methods tend to be factory methods - that is...
methods for generating an instance
CGRect bounds
wait until the loop finishes processing the event - at the end release it
first responder
9. Why properties?
Ready-Made Instance
safety - subclassability and makes code look more consistent with C structs
declaration and initialization of a variable
copy - retain
10. 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
Functions
variable scope - if defined within a block
to give it someone else - or another object
Ready-Made Instance
11. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
draw images
subview(s)
callbacks
12. 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 _.
data source - view controller and delegate
Model Objects[Factory Worker]
position
subview(s)
13. if you implemented both the setter and getter - the @synthesize method...
the message release to all its entries
will be ignored
CGRect bounds - GCPoint center - CGRect frame
you must import the header file of that class
14. 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
You take ownership for an object you want to keep a pointer to
parentViewController
Functions
CF - Ref
15. In any application with UINavigationController - the navigation controller...
the array relinquishes ownership of that object and no longer has a pointer to it
the instance variables
ready-made instances - instantiation from scratch - and nib based instantiation
has one root view controller
16. A function in the objective c library that simply displays or logs it's argument
will be ignored
type - name and value
instance
NSLog routine
17. @property declares - and _ implements the setter and getter...
view controller
class's
@synthesize
view
18. Name of the method to be executed
selector[message]
Instantiation from scratch
Generic object wrapper for other non-object data types
receiver[message]
19. A UITableView usually needs three different pieces...
data source - delegate and view controller
to give it someone else - or another object
selector[message]
first responder
20. NSSet...
unordered collection of objects - objects must be unique
define it in the implemenation file
receiver - selector - arguments
pointer to an object
21. Typically the designated initializer has parameters for the most important and frequently used _ of an object
methods
declaration and initialization of a variable
instance variables
creating an initializer
22. Core foundation classes are prefixed with _ and suffixed with _
(id)initWithFrame:(CGRect)aRect;
retain
CF - Ref
accessors - individually we call them 'getters' and 'setters'
23. Class methods typically either create
new instances of the class or retrieve some global property of the class.
NSLog routine
Encapsulation of functionality
object
24. Categories are an Objective C way to add _ to an existing class without subclassing
they need to be defined in the implementation file
class
calling code that does the instantiation for you
methods
25. NSValue - class...
Hash table - Look up objects using a key to get a value.
class's
implementation
Generic object wrapper for other non-object data types
26. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
values
has one root view controller
@interface ClassName:SuperClassName
is an instance of that class
27. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
methods for generating an instance
@interface ClassName:SuperClassName
delegates and dataSources
CGRect
28. 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.
creating an initializer
accessors - individually we call them 'getters' and 'setters'
data source - view controller and delegate
first responder
29. An instance is a device for maintaining state. It's a box for _ of data.
NSLog routine
header files declare
storage
setPossessionName
30. Property List...
initializers
instance variables
Controller Objects[Managers]
collection of collections - NSArray of an NSArray
31. After accessors have been defined in the header file...
they need to be defined in the implementation file
array[class - NSMutableArray]
class's
will be ignored
32. NSString *s = @'Hello - World'; is an example of...
has one root view controller
NSLog routine
declaration and initialization of a variable
receiver
33. Whenever a UINavigationController is about to swap views - it sends out two messages
initializers
viewWillDissapear: and viewWillAppear:
copy - retain
receiving and handling events that are associated with it
34. The only reason to temporarily own an object - is...
to give it someone else - or another object
you always return the newly initialized object(return self)
type - name and value
subview(s)
35. A view is an...
type - name and value
creating an initializer
instance of UIView or one of its subclasses
methods for generating an instance
36. 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
37. class methods...
group of global functions already assigned to this class
declaration and initialization of a variable
creates an instance of NSString that holds the character string
methods
38. Class methods do not operate on an _ or have any access to _ variables....
an object's property
instance
alloc - singleton - informational utility method?
references to objects
39. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Hash table - Look up objects using a key to get a value.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
setPossessionName
Controller Objects[Managers]
40. A pointer to the object being asked to execute a method
array[class - NSMutableArray]
receiver[message]
Functions
UIView
41. Files Owner...
ready-made instances - instantiation from scratch - and nib based instantiation
the array relinquishes ownership of that object and no longer has a pointer to it
Is a placeholder object
data source - view controller and delegate
42. 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.
position
implementation
dealloc - is called on the object & the object's memory is returned to the heap
You take ownership for an object you want to keep a pointer to
43. Any individual object belonging to any class...
object
instance variables
the array relinquishes ownership of that object and no longer has a pointer to it
is an instance of that class
44. 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.
NSCoder
Data Encapsulation
will be ignored
receiving and handling events that are associated with it
45. If you have extra work you want to do on the view...
do so in viewDidLoad
pointer to an object
class's
C Functionn
46. 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
to get and set variables
parentViewController
class's
47. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
'getters' and 'setters'
header files declare
designated initializer
implementation
48. A responder is responsible for...
group of global functions already assigned to this class
receiving and handling events that are associated with it
setPossessionName
(id)initWithFrame:(CGRect)aRect;
49. UITableViewController is a subclass of...
nil
Abstraction
UIViewController
has one root view controller
50. initWithFrame: the designated initializer for UIView gives the view
instance
NSLog routine
creating an initializer
size and position