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 a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
Generic object wrapper for other non-object data types
in the dealloc - or when a Controller's view is 'unloaded'
data
parentViewController
2. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
subview(s)
protocol
methods for generating an instance
3. The only reason to temporarily own an object - is...
instance variable of an object is valid
Used to find the time right now or to store past or future time/dates
to give it someone else - or another object
collection of collections - NSArray of an NSArray
4. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
CF - Ref
reuse your cells
Hash table - Look up objects using a key to get a value.
5. 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.
implementation
Object wrapper around primitive types like int - float - double - BOOl
Data Encapsulation
to give it someone else - or another object
6. When making a tableView always...
receiver - selector - arguments
is called every time the event occurs
size and position
reuse your cells
7. Values to be supplied as the parameters to the method
ordered collection of objects - immutable
self
message
arguments[message]
8. Use of class methods - there are three...
receiver[message]
the array becomes an owner of that object and has a pointer to it.
alloc - singleton - informational utility method?
initializer
9. A message is always contained in square brackets - and has three parts
declaration and initialization of a variable
safety - subclassability and makes code look more consistent with C structs
receiver - selector - arguments
instance of UIView or one of its subclasses
10. NSSet...
selector[message]
unordered collection of objects - objects must be unique
UIViewController
cannot be added to an array
11. After accessors have been defined in the header file...
subview(s)
they need to be defined in the implementation file
variable scope - if defined within a block
a single-array can contain objects of different types
12. Class methods do not operate on an _ or have any access to _ variables....
instance
arguments[message]
pointer to an object
Hash table - Look up objects using a key to get a value.
13. A UITableView usually needs three different pieces...
draw images
lowercase - uppercase
superclass's
data source - delegate and view controller
14. Whenever a UINavigationController is about to swap views - it sends out two messages
reuse your cells
new instances of the class or retrieve some global property of the class.
position
viewWillDissapear: and viewWillAppear:
15. Instance Variables by default are called @protected meaning...
message
only the class and subclasses can access
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
class methods - initializers
16. Also if you send the NSObject the _ message - you own that object.
calling code that does the instantiation for you
variable scope - if defined within a block
selector[message]
retain
17. 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
18. Primitives and C Structures...
cannot be added to an array
do so in viewDidLoad
Is a placeholder object
in the dealloc - or when a Controller's view is 'unloaded'
19. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
view controller's initialization method
you must import the header file of that class
header files declare
Controller Objects[Managers]
20. 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
Used to find the time right now or to store past or future time/dates
Functions
(id)initWithFrame:(CGRect)aRect;
you must import the header file of that class
21. Name of the method to be executed
selector[message]
storage
message
@synthesize
22. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
Data Encapsulation
data
pointer - class
delegates and dataSources
23. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
accessors - individually we call them 'getters' and 'setters'
data source - delegate and view controller
Encapsulation of functionality
'getters' and 'setters'
24. 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
25. A function in the objective c library that simply displays or logs it's argument
array[class - NSMutableArray]
NSLog routine
message
Ready-Made Instance
26. NSString *s = @'Hello - World'; is an example of...
initializer
you must import the header file of that class
declaration and initialization of a variable
message
27. In Cocoa Touch - the table view asks another object _ what it should display...
UIViewController
safety - subclassability and makes code look more consistent with C structs
its dataSource
they need to be defined in the implementation file
28. NSValue - class...
to give it someone else - or another object
initializers
Generic object wrapper for other non-object data types
subview(s)
29. 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
30. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
rectangular
an object's property
@interface ClassName:SuperClassName
upper
31. Each class picks one _ as it's designated initializer....
alloc - singleton - informational utility method?
copy - retain
initializer
upper
32. class methods...
you always return the newly initialized object(return self)
group of global functions already assigned to this class
new instances of the class or retrieve some global property of the class.
view
33. Origin of a view's coordinate system is _ left
C Functionn
variable scope - if defined within a block
instance
upper
34. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Used to find the time right now or to store past or future time/dates
'getters' and 'setters'
instance variables
wait until the loop finishes processing the event - at the end release it
35. [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.
Encapsulation of functionality
data
instance variables
Maintenance of state
36. 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.
Encapsulation of functionality
array[class - NSMutableArray]
creating an initializer
reuse your cells
37. In any application with UINavigationController - the navigation controller...
has one root view controller
attributes - behavior
UIView
arguments[message]
38. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
retain
class methods - initializers
@interface ClassName:SuperClassName
39. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
alloc - singleton - informational utility method?
instance variable of an object is valid
accessors - individually we call them 'getters' and 'setters'
Ready-Made Instance
40. if you implemented both the setter and getter - the @synthesize method...
define it in the implemenation file
will be ignored
selector[message]
new instances of the class or retrieve some global property of the class.
41. NSArray - class...
Encapsulation of functionality
callbacks
ordered collection of objects - immutable
class
42. Classes describe two things...
class
attributes - behavior
You take ownership for an object you want to keep a pointer to
NSLog routine
43. NSArray - important methods...
instance variable of an object is valid
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CGRect
Encapsulation of functionality
44. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
values
class methods - initializers
selector[message]
you must import the header file of that class
45. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
will be ignored
a single-array can contain objects of different types
Encapsulation of functionality
46. A responder is responsible for...
collection of collections - NSArray of an NSArray
Instantiation from scratch
callbacks
receiving and handling events that are associated with it
47. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
the array becomes an owner of that object and has a pointer to it.
designated initializer
NSCoder
they need to be defined in the implementation file
48. 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...
header files declare
is called every time the event occurs
instance variables
setPossessionName
49. @property declares - and _ implements the setter and getter...
@synthesize
rectangular
header files declare
instance variables
50. 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.
C Functionn
pointer - class
first responder
draw images