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. 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
2. 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
3. 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....
collection of collections - NSArray of an NSArray
UIViewController
define it in the implemenation file
header files declare
4. 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
5. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
UIViewController
selector[message]
header files declare
is called every time the event occurs
6. class methods...
a mechanism to enable specific callbacks
will be ignored
group of global functions already assigned to this class
draw images
7. NSArray - important methods...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
method
pointers
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
8. In the last line of an init method...
you always return the newly initialized object(return self)
reuse your cells
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
wait until the loop finishes processing the event - at the end release it
9. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
Object wrapper around primitive types like int - float - double - BOOl
unordered collection of objects - objects must be unique
cannot be added to an array
10. All objects are accessed using...
pointers
parentViewController
CGFloat
array[class - NSMutableArray]
11. A view is an...
position
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance of UIView or one of its subclasses
draw images
12. Proceed through the loop - jump back to the top and check again
implementation
attributes - behavior
Core Graphics Framework
Continue
13. 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
instance variable of an object is valid
pointers
storage
14. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Encapsulation of functionality
variable scope - if defined within a block
instance variables
only the class and subclasses can access
15. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
nil
Maintenance of state
(id)initWithFrame:(CGRect)aRect;
data source - view controller and delegate
16. The integer prefix is...
instance variable of an object is valid
Object wrapper around primitive types like int - float - double - BOOl
%d
safety - subclassability and makes code look more consistent with C structs
17. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
UIViewController
selector[message]
NSCoder
18. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
rectangular
receiver
CGFloat
new instances of the class or retrieve some global property of the class.
19. 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.
will be ignored
Data Encapsulation
in the dealloc - or when a Controller's view is 'unloaded'
new instances of the class or retrieve some global property of the class.
20. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
unordered collection of objects - objects must be unique
instance
instance of UIView or one of its subclasses
21. Classes describe two things...
attributes - behavior
message
methods
the instance variables
22. Object Oriented based analogue to a function is called a...
accessors - individually we call them 'getters' and 'setters'
NSLog routine
method
super - self
23. Delegation is an object oriented approach to
accessors - individually we call them 'getters' and 'setters'
safety - subclassability and makes code look more consistent with C structs
callbacks
rectangular
24. 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
Controller Objects[Managers]
delegates and dataSources
values
Functions
25. NSValue - class...
in the dealloc - or when a Controller's view is 'unloaded'
wait until the loop finishes processing the event - at the end release it
instance variables
Generic object wrapper for other non-object data types
26. 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.
object
type - name and value
instance variables
Core Graphics Framework
27. If you have extra work you want to do on the view...
Functions
do so in viewDidLoad
nil
instance of UIView or one of its subclasses
28. Files Owner...
Is a placeholder object
UIView
Used to find the time right now or to store past or future time/dates
size and position
29. After accessors have been defined in the header file...
they need to be defined in the implementation file
rectangular
receiver - selector - arguments
nil
30. Origin of a view's coordinate system is _ left
upper
Data Encapsulation
Generic object wrapper for other non-object data types
data
31. Use of class methods - there are three...
alloc - singleton - informational utility method?
C Functionn
size and position
NSCoder
32. UIImageView is used to...
instance variables
draw images
CF - Ref
CGRect
33. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
object
dealloc - is called on the object & the object's memory is returned to the heap
receiving and handling events that are associated with it
@interface ClassName:SuperClassName
34. Categories are an Objective C way to add _ to an existing class without subclassing
define it in the implemenation file
methods
the array relinquishes ownership of that object and no longer has a pointer to it
attributes - behavior
35. NSString objects are usually sent _ rather than _...
create a XIB file
collection of collections - NSArray of an NSArray
copy - retain
receiver
36. Instance Variables by default are called @protected meaning...
Core Graphics Framework
%d
alloc - singleton - informational utility method?
only the class and subclasses can access
37. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
pointer - class
attributes - behavior
Encapsulation of functionality
38. Reference Counting...
CGRect
CGRect bounds
the instance variables
You take ownership for an object you want to keep a pointer to
39. The only reason to temporarily own an object - is...
Maintenance of state
type - name and value
the array becomes an owner of that object and has a pointer to it.
to give it someone else - or another object
40. initWithFrame: the designated initializer for UIView gives the view
size and position
Hash table - Look up objects using a key to get a value.
view controller's initialization method
initializer
41. A method in a _ is required unless its preceded by an @optional.
receiving and handling events that are associated with it
they need to be defined in the implementation file
the array relinquishes ownership of that object and no longer has a pointer to it
protocol
42. When an object is removed from an NSMutableArray - that object is sent the message release;...
lowercase - uppercase
Instantiation from scratch
data source - delegate and view controller
the array relinquishes ownership of that object and no longer has a pointer to it
43. Property List...
collection of collections - NSArray of an NSArray
do so in viewDidLoad
initializers
arguments[message]
44. In any application with UINavigationController - the navigation controller...
data source - view controller and delegate
rectangular
is called every time the event occurs
has one root view controller
45. @property - is using methods...
callbacks
view controller's initialization method
to get and set variables
NSBundle
46. The root view controller typically creates the next view controller - and the next _ creates the one after that
initializer
values
Generic object wrapper for other non-object data types
view controller
47. A _ handles touch events.
(id)initWithFrame:(CGRect)aRect;
delegates and dataSources
view
type - name and value
48. A message is always contained in square brackets - and has three parts
methods for generating an instance
object
instance
receiver - selector - arguments
49. Each _ has a 'designated' initializer method....
will be ignored
nil
only the innermost loop in which the break is executed is terminated
class
50. Also if you send the NSObject the _ message - you own that object.
(id)initWithFrame:(CGRect)aRect;
the message release to all its entries
retain
is an instance of that class