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. NSSet...
view
unordered collection of objects - objects must be unique
CGFloat
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
2. You use _ to implement the view
only the innermost loop in which the break is executed is terminated
NSLog routine
class's
CGRect bounds
3. Defining variables - three parts...
size and position
type - name and value
create a XIB file
receiver
4. 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
references to objects
cannot be added to an array
Is a placeholder object
5. Center and frame are used to _ your view
accessors - individually we call them 'getters' and 'setters'
methods for generating an instance
instance variables
position
6. A view is a subclass of _
new instances of the class or retrieve some global property of the class.
CF - Ref
UIView
Hash table - Look up objects using a key to get a value.
7. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
dealloc - is called on the object & the object's memory is returned to the heap
You take ownership for an object you want to keep a pointer to
designated initializer
Core Graphics Framework
8. Number one use of protocols in iOS...
Used to find the time right now or to store past or future time/dates
UIViewController
the array becomes an owner of that object and has a pointer to it.
delegates and dataSources
9. An instance is a device for maintaining state. It's a box for _ of data.
define it in the implemenation file
accessors - individually we call them 'getters' and 'setters'
instance
storage
10. Each class picks one _ as it's designated initializer....
lowercase - uppercase
data
accessors - individually we call them 'getters' and 'setters'
initializer
11. Ready-made instances...
a mechanism to enable specific callbacks
calling code that does the instantiation for you
viewWillDissapear: and viewWillAppear:
Anytime you call a method with new - alloc or copy. You own and must release that object.
12. initWithFrame: the designated initializer for UIView gives the view
NSLog routine
size and position
Abstraction
Core Graphics Framework
13. Just a floating point number - but we always use it for graphics.
UIViewController
CGFloat
class
type - name and value
14. Reference Counting...
create a XIB file
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
You take ownership for an object you want to keep a pointer to
object
15. 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
16. NSValue - class...
Generic object wrapper for other non-object data types
Encapsulation of functionality
a single-array can contain objects of different types
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
17. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
designated initializer
causes the program to immediately exit from the loop it is executing - whether its for - while or do
18. A message is always contained in square brackets - and has three parts
instance of UIView or one of its subclasses
protocol
receiver - selector - arguments
a mechanism to enable specific callbacks
19. Property List...
receiver
Model Objects[Factory Worker]
collection of collections - NSArray of an NSArray
methods for generating an instance
20. A command directed to an object is called an...
they need to be defined in the implementation file
super - self
message
array[class - NSMutableArray]
21. Any individual object belonging to any class...
is called every time the event occurs
message
is an instance of that class
super - self
22. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
array[class - NSMutableArray]
selector[message]
You take ownership for an object you want to keep a pointer to
23. Also - because arrays only hold a pointer to an object...
reuse your cells
method
a single-array can contain objects of different types
instance variable of an object is valid
24. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
subview(s)
Instantiation from scratch
receiving and handling events that are associated with it
C Functionn
25. super - is used...
Data Encapsulation
receiver
Encapsulation of functionality
for inheritance - adopting the superclasses implementation
26. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
receiver - selector - arguments
@interface ClassName:SuperClassName
new instances of the class or retrieve some global property of the class.
27. NSDictionary...
size and position
header files declare
Hash table - Look up objects using a key to get a value.
in the dealloc - or when a Controller's view is 'unloaded'
28. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
view controller's initialization method
receiver
a mechanism to enable specific callbacks
create a XIB file
29. Class methods typically either create
@synthesize
new instances of the class or retrieve some global property of the class.
the message release to all its entries
NSBundle
30. 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....
define it in the implemenation file
ordered collection of objects - immutable
upper
subview(s)
31. NSNumber - class...
new instances of the class or retrieve some global property of the class.
CGRect bounds
viewWillDissapear: and viewWillAppear:
Object wrapper around primitive types like int - float - double - BOOl
32. Class methods do not operate on an _ or have any access to _ variables....
Core Graphics Framework
Instantiation from scratch
instance
is an instance of that class
33. Whenever a UINavigationController is about to swap views - it sends out two messages
draw images
wait until the loop finishes processing the event - at the end release it
viewWillDissapear: and viewWillAppear:
NSBundle
34. Execution of the break statement...
view
causes the program to immediately exit from the loop it is executing - whether its for - while or do
initializer
data
35. NSArray - class...
ordered collection of objects - immutable
receiver[message]
data source - view controller and delegate
new instances of the class or retrieve some global property of the class.
36. 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.
Model Objects[Factory Worker]
first responder
instance variables
to give it someone else - or another object
37. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
the message release to all its entries
self
define it in the implemenation file
calling code that does the instantiation for you
38. A UITableViewController can fill all three roles of...
receiver[message]
Core Graphics Framework
data source - view controller and delegate
view
39. Only exists within the statement block there defined - outside of the block is fine
receiver[message]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
view controller's initialization method
variable scope - if defined within a block
40. 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
41. When an object is added to a NSMutableArray - that object is sent the message to retain;...
to give it someone else - or another object
is called every time the event occurs
the array becomes an owner of that object and has a pointer to it.
new instances of the class or retrieve some global property of the class.
42. Views have three properties related to their location and size: @property _ _;
storage
UIView
%d
CGRect bounds - GCPoint center - CGRect frame
43. If you have extra work you want to do on the view...
has one root view controller
do so in viewDidLoad
delegates and dataSources
C Functionn
44. 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.
parentViewController
protocol
size and position
first responder
45. When do you take ownership?...
Instantiation from scratch
do so in viewDidLoad
implementation
Anytime you call a method with new - alloc or copy. You own and must release that object.
46. NSString objects are usually sent _ rather than _...
type - name and value
copy - retain
subview(s)
ordered collection of objects - immutable
47. 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
define it in the implemenation file
method
parentViewController
creating an initializer
48. The root view controller typically creates the next view controller - and the next _ creates the one after that
copy - retain
NSBundle
view controller
only the class and subclasses can access
49. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
Encapsulation of functionality
Anytime you call a method with new - alloc or copy. You own and must release that object.
is called every time the event occurs
50. Use of class methods - there are three...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
alloc - singleton - informational utility method?
view controller
unordered collection of objects - objects must be unique