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. if you implemented both the setter and getter - the @synthesize method...
will be ignored
creates an instance of NSString that holds the character string
message
they need to be defined in the implementation file
2. [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.
has one root view controller
%d
data
is an instance of that class
3. 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
NSCoder
creates an instance of NSString that holds the character string
setPossessionName
4. Classes describe two things...
methods
instance variables
attributes - behavior
pointers
5. NSArray - class...
size and position
CGRect
has one root view controller
ordered collection of objects - immutable
6. When an object is removed from an NSMutableArray - that object is sent the message release;...
data source - delegate and view controller
the array relinquishes ownership of that object and no longer has a pointer to it
Hash table - Look up objects using a key to get a value.
superclass's
7. Instance Variables by default are called @protected meaning...
ready-made instances - instantiation from scratch - and nib based instantiation
data source - view controller and delegate
only the class and subclasses can access
setPossessionName
8. A view represents a _ area
variable scope - if defined within a block
rectangular
Abstraction
pointer - class
9. A function in the objective c library that simply displays or logs it's argument
the instance variables
creates an instance of NSString that holds the character string
in the dealloc - or when a Controller's view is 'unloaded'
NSLog routine
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
arguments[message]
is an instance of that class
NSBundle
Functions
11. NSNumber - class...
setPossessionName
Object wrapper around primitive types like int - float - double - BOOl
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
has one root view controller
12. Reference Counting...
creating an initializer
Used to find the time right now or to store past or future time/dates
attributes - behavior
You take ownership for an object you want to keep a pointer to
13. A _ handles touch events.
UIViewController
only the innermost loop in which the break is executed is terminated
reuse your cells
view
14. Center and frame are used to _ your view
self
CF - Ref
position
wait until the loop finishes processing the event - at the end release it
15. Hold data and know nothing about the user interface
instance variables
CGRect
is called every time the event occurs
Model Objects[Factory Worker]
16. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
data
its dataSource
Instantiation from scratch
instance variable of an object is valid
17. 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
18. In any application with UINavigationController - the navigation controller...
methods for generating an instance
has one root view controller
subview(s)
Hash table - Look up objects using a key to get a value.
19. NSSet...
initializers
unordered collection of objects - objects must be unique
callbacks
dealloc - is called on the object & the object's memory is returned to the heap
20. Object Oriented based analogue to a function is called a...
superclass's
C Functionn
method
implementation
21. Execution of the break statement...
to give it someone else - or another object
methods for generating an instance
CGRect bounds
causes the program to immediately exit from the loop it is executing - whether its for - while or do
22. super - is used...
only the innermost loop in which the break is executed is terminated
copy - retain
for inheritance - adopting the superclasses implementation
Functions
23. A collection object - an ordered list of objects that can be accesed by an index
receiving and handling events that are associated with it
array[class - NSMutableArray]
CGRect bounds - GCPoint center - CGRect frame
data
24. 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
CGRect bounds - GCPoint center - CGRect frame
storage
parentViewController
Encapsulation of functionality
25. Just a floating point number - but we always use it for graphics.
CGFloat
receiver[message]
viewWillDissapear: and viewWillAppear:
the message release to all its entries
26. UIViewController has several methods that get called at certain times...
method
type - name and value
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
parentViewController
27. Categories are an Objective C way to add _ to an existing class without subclassing
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance variable of an object is valid
viewWillDissapear: and viewWillAppear:
methods
28. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
method
type - name and value
data source - delegate and view controller
class methods - initializers
29. Use of class methods - there are three...
will be ignored
Continue
create a XIB file
alloc - singleton - informational utility method?
30. UIView - designated initializer...
view
new instances of the class or retrieve some global property of the class.
implementation
(id)initWithFrame:(CGRect)aRect;
31. To load a Xib file manually - you use _
copy - retain
NSBundle
data source - view controller and delegate
first responder
32. 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.
first responder
implementation
receiver - selector - arguments
subview(s)
33. Prefixing a character string with an @ symbol [specific - NSString class]...
initializers
NSCoder
creates an instance of NSString that holds the character string
message
34. initWithFrame: the designated initializer for UIView gives the view
reuse your cells
size and position
NSLog routine
data source - view controller and delegate
35. id is a...
pointer to an object
message
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
(id)initWithFrame:(CGRect)aRect;
36. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
the array relinquishes ownership of that object and no longer has a pointer to it
CF - Ref
wait until the loop finishes processing the event - at the end release it
37. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
lowercase - uppercase
has one root view controller
%d
38. An instance is a device for maintaining state. It's a box for _ of data.
its dataSource
selector[message]
the instance variables
storage
39. NSDate - class...
reuse your cells
Used to find the time right now or to store past or future time/dates
instance
an object's property
40. 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
41. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
the array relinquishes ownership of that object and no longer has a pointer to it
attributes - behavior
method
object
42. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
nil
pointer to an object
Used to find the time right now or to store past or future time/dates
43. UITableViewController is a subclass of...
UIViewController
nil
Instantiation from scratch
instance variable of an object is valid
44. Name of the method to be executed
super - self
selector[message]
accessors - individually we call them 'getters' and 'setters'
group of global functions already assigned to this class
45. Also if you send the NSObject the _ message - you own that object.
Is a placeholder object
retain
view
instance variables
46. If you have extra work you want to do on the view...
do so in viewDidLoad
safety - subclassability and makes code look more consistent with C structs
cannot be added to an array
Maintenance of state
47. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
the array relinquishes ownership of that object and no longer has a pointer to it
@interface ClassName:SuperClassName
copy - retain
Used to find the time right now or to store past or future time/dates
48. In general - class methods tend to be factory methods - that is...
instance variables
dealloc - is called on the object & the object's memory is returned to the heap
Generic object wrapper for other non-object data types
methods for generating an instance
49. A callback is a function that is supplied in advance of an event - and...
the message release to all its entries
receiver[message]
is called every time the event occurs
Used to find the time right now or to store past or future time/dates
50. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
class
lowercase - uppercase
Hash table - Look up objects using a key to get a value.
view controller