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. A _ handles touch events.
view
causes the program to immediately exit from the loop it is executing - whether its for - while or do
NSCoder
methods for generating an instance
2. 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
3. NSDate - class...
method
Used to find the time right now or to store past or future time/dates
nil
group of global functions already assigned to this class
4. Each _ has a 'designated' initializer method....
rectangular
lowercase - uppercase
@interface ClassName:SuperClassName
class
5. NSDictionary...
receiver
NSLog routine
Hash table - Look up objects using a key to get a value.
Abstraction
6. Views have three properties related to their location and size: @property _ _;
they need to be defined in the implementation file
define it in the implemenation file
view
CGRect bounds - GCPoint center - CGRect frame
7. Files Owner...
Is a placeholder object
viewWillDissapear: and viewWillAppear:
accessors - individually we call them 'getters' and 'setters'
Generic object wrapper for other non-object data types
8. UITableViewController is a subclass of...
size and position
instance variable of an object is valid
UIViewController
subview(s)
9. Name of the method to be executed
selector[message]
pointer - class
super - self
to give it someone else - or another object
10. If the view has no subviews - create it programmatically; if it has subviews
position
Data Encapsulation
create a XIB file
CGFloat
11. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
data
initializers
ready-made instances - instantiation from scratch - and nib based instantiation
12. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
pointer - class
lowercase - uppercase
object
Ready-Made Instance
13. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Continue
parentViewController
rectangular
14. Typically the designated initializer has parameters for the most important and frequently used _ of an object
you always return the newly initialized object(return self)
Abstraction
instance variables
the array becomes an owner of that object and has a pointer to it.
15. NSValue - class...
pointers
storage
Generic object wrapper for other non-object data types
data source - view controller and delegate
16. A callback is a function that is supplied in advance of an event - and...
Maintenance of state
is called every time the event occurs
alloc - singleton - informational utility method?
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
17. Values to be supplied as the parameters to the method
an object's property
nil
arguments[message]
the array becomes an owner of that object and has a pointer to it.
18. Class methods typically either create
new instances of the class or retrieve some global property of the class.
UIView
Core Graphics Framework
Functions
19. NSArray - important methods...
Generic object wrapper for other non-object data types
only the class and subclasses can access
array[class - NSMutableArray]
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
20. Reference Counting...
Generic object wrapper for other non-object data types
view
You take ownership for an object you want to keep a pointer to
position
21. Delegation is an object oriented approach to
CF - Ref
callbacks
attributes - behavior
header files declare
22. Reducing details to focus on the core concepts
Functions
declaration and initialization of a variable
Abstraction
receiver - selector - arguments
23. What does autorelease mean?
the array relinquishes ownership of that object and no longer has a pointer to it
wait until the loop finishes processing the event - at the end release it
draw images
is called every time the event occurs
24. Prefixing a character string with an @ symbol [specific - NSString class]...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Object wrapper around primitive types like int - float - double - BOOl
values
creates an instance of NSString that holds the character string
25. The class is responsible for what instance variables the instance has - but not the _ of those variables.
to give it someone else - or another object
calling code that does the instantiation for you
Encapsulation of functionality
values
26. 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
27. 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.
superclass's
Data Encapsulation
initializer
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
28. How do I implement my drawRect?
collection of collections - NSArray of an NSArray
superclass's
designated initializer
Core Graphics Framework
29. Three ways instances are created...
CGRect bounds - GCPoint center - CGRect frame
ready-made instances - instantiation from scratch - and nib based instantiation
view
method
30. When an object is removed from an NSMutableArray - that object is sent the message release;...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
the array relinquishes ownership of that object and no longer has a pointer to it
position
instance
31. A view represents a _ area
lowercase - uppercase
rectangular
setPossessionName
message
32. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
message
creates an instance of NSString that holds the character string
super - self
33. In Cocoa Touch - the table view asks another object _ what it should display...
wait until the loop finishes processing the event - at the end release it
its dataSource
initializer
the message release to all its entries
34. @property - is using methods...
dealloc - is called on the object & the object's memory is returned to the heap
to get and set variables
the array becomes an owner of that object and has a pointer to it.
%d
35. super - is used...
instance of UIView or one of its subclasses
receiving and handling events that are associated with it
header files declare
for inheritance - adopting the superclasses implementation
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.
UIViewController
self
creating an initializer
causes the program to immediately exit from the loop it is executing - whether its for - while or do
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
Maintenance of state
wait until the loop finishes processing the event - at the end release it
Core Graphics Framework
38. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
the array relinquishes ownership of that object and no longer has a pointer to it
class methods - initializers
Functions
NSLog routine
39. @property declares - and _ implements the setter and getter...
define it in the implemenation file
setPossessionName
@synthesize
position
40. Categories are an Objective C way to add _ to an existing class without subclassing
Abstraction
the instance variables
methods
super - self
41. Use of class methods - there are three...
upper
nil
Maintenance of state
alloc - singleton - informational utility method?
42. 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
43. if you implemented both the setter and getter - the @synthesize method...
methods
setPossessionName
will be ignored
Anytime you call a method with new - alloc or copy. You own and must release that object.
44. Hold data and know nothing about the user interface
Encapsulation of functionality
Model Objects[Factory Worker]
pointer to an object
instance variables
45. Origin of a view's coordinate system is _ left
creating an initializer
CF - Ref
upper
receiving and handling events that are associated with it
46. Just a floating point number - but we always use it for graphics.
to give it someone else - or another object
@synthesize
position
CGFloat
47. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
accessors - individually we call them 'getters' and 'setters'
UIView
Data Encapsulation
48. In a class method you cannot access...
CF - Ref
the instance variables
the array relinquishes ownership of that object and no longer has a pointer to it
Generic object wrapper for other non-object data types
49. 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
a mechanism to enable specific callbacks
Functions
an object's property
Data Encapsulation
50. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
you always return the newly initialized object(return self)
NSCoder
methods
Anytime you call a method with new - alloc or copy. You own and must release that object.