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. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
protocol
@synthesize
(id)initWithFrame:(CGRect)aRect;
NSCoder
2. @property declares - and _ implements the setter and getter...
an object's property
view
@synthesize
instance
3. NSDate - class...
(id)initWithFrame:(CGRect)aRect;
Ready-Made Instance
Used to find the time right now or to store past or future time/dates
parentViewController
4. 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.
do so in viewDidLoad
subview(s)
first responder
rectangular
5. 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...
data source - delegate and view controller
setPossessionName
data
the instance variables
6. 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.
CGFloat
copy - retain
Data Encapsulation
C Functionn
7. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
the array becomes an owner of that object and has a pointer to it.
You take ownership for an object you want to keep a pointer to
C Functionn
object
8. Designated initializer makes sure that every...
instance variable of an object is valid
collection of collections - NSArray of an NSArray
class
upper
9. Use of class methods - there are three...
only the class and subclasses can access
alloc - singleton - informational utility method?
NSBundle
instance of UIView or one of its subclasses
10. The root view controller typically creates the next view controller - and the next _ creates the one after that
to give it someone else - or another object
first responder
view controller
setPossessionName
11. If you have extra work you want to do on the view...
Instantiation from scratch
upper
Anytime you call a method with new - alloc or copy. You own and must release that object.
do so in viewDidLoad
12. Delegation is an object oriented approach to
delegates and dataSources
the message release to all its entries
callbacks
collection of collections - NSArray of an NSArray
13. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
first responder
class
class methods - initializers
14. NSDictionary...
Hash table - Look up objects using a key to get a value.
CGRect bounds - GCPoint center - CGRect frame
Object wrapper around primitive types like int - float - double - BOOl
ordered collection of objects - immutable
15. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
viewWillDissapear: and viewWillAppear:
type - name and value
setPossessionName
lowercase - uppercase
16. Only exists within the statement block there defined - outside of the block is fine
message
variable scope - if defined within a block
copy - retain
initializer
17. Prefixing a character string with an @ symbol [specific - NSString class]...
receiving and handling events that are associated with it
pointer - class
creates an instance of NSString that holds the character string
Object wrapper around primitive types like int - float - double - BOOl
18. Property List...
Maintenance of state
UIView
designated initializer
collection of collections - NSArray of an NSArray
19. NSNumber - class...
define it in the implemenation file
method
Object wrapper around primitive types like int - float - double - BOOl
implementation
20. 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
21. All objects are accessed using...
view controller's initialization method
has one root view controller
pointers
rectangular
22. A pointer to the object being asked to execute a method
retain
instance variables
to give it someone else - or another object
receiver[message]
23. A callback is a function that is supplied in advance of an event - and...
data
'getters' and 'setters'
lowercase - uppercase
is called every time the event occurs
24. A message is always contained in square brackets - and has three parts
rectangular
receiver - selector - arguments
arguments[message]
delegates and dataSources
25. 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
instance of UIView or one of its subclasses
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
arguments[message]
26. A UITableViewController can fill all three roles of...
data source - view controller and delegate
will be ignored
Object wrapper around primitive types like int - float - double - BOOl
%d
27. class methods...
parentViewController
(id)initWithFrame:(CGRect)aRect;
is an instance of that class
group of global functions already assigned to this class
28. When making a tableView always...
is an instance of that class
reuse your cells
Used to find the time right now or to store past or future time/dates
Controller Objects[Managers]
29. 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....
message
define it in the implemenation file
receiver
creating an initializer
30. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
implementation
CF - Ref
header files declare
message
31. 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
32. In any application with UINavigationController - the navigation controller...
CGRect bounds - GCPoint center - CGRect frame
initializers
has one root view controller
will be ignored
33. 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
34. An instance is a device for maintaining state. It's a box for _ of data.
storage
instance variable of an object is valid
Ready-Made Instance
dealloc - is called on the object & the object's memory is returned to the heap
35. Center and frame are used to _ your view
delegates and dataSources
methods for generating an instance
object
position
36. 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
parentViewController
delegates and dataSources
the instance variables
37. [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.
data source - view controller and delegate
wait until the loop finishes processing the event - at the end release it
data
you always return the newly initialized object(return self)
38. NSArray - class...
ordered collection of objects - immutable
receiver
group of global functions already assigned to this class
Maintenance of state
39. 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
message
Functions
instance variable of an object is valid
group of global functions already assigned to this class
40. A command directed to an object is called an...
message
pointers
CGRect
@synthesize
41. A responder is responsible for...
to get and set variables
reuse your cells
Used to find the time right now or to store past or future time/dates
receiving and handling events that are associated with it
42. The integer prefix is...
Data Encapsulation
%d
self
lowercase - uppercase
43. Reference Counting...
Hash table - Look up objects using a key to get a value.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
You take ownership for an object you want to keep a pointer to
lowercase - uppercase
44. Values to be supplied as the parameters to the method
object
parentViewController
pointers
arguments[message]
45. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
arguments[message]
the array relinquishes ownership of that object and no longer has a pointer to it
type - name and value
self
46. 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.
NSCoder
the instance variables
instance variables
calling code that does the instantiation for you
47. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
retain
attributes - behavior
'getters' and 'setters'
48. Name of the method to be executed
selector[message]
view controller's initialization method
attributes - behavior
only the class and subclasses can access
49. Three ways instances are created...
view controller's initialization method
creating an initializer
ready-made instances - instantiation from scratch - and nib based instantiation
view controller
50. super - is used...
view controller
is an instance of that class
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
for inheritance - adopting the superclasses implementation