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 collection object - an ordered list of objects that can be accesed by an index
initializer
pointers
methods
array[class - NSMutableArray]
2. Primitives and C Structures...
only the innermost loop in which the break is executed is terminated
copy - retain
view
cannot be added to an array
3. Categories are an Objective C way to add _ to an existing class without subclassing
methods
variable scope - if defined within a block
'getters' and 'setters'
data source - view controller and delegate
4. 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
copy - retain
CGRect bounds
group of global functions already assigned to this class
5. Just a floating point number - but we always use it for graphics.
array[class - NSMutableArray]
attributes - behavior
methods
CGFloat
6. 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
a mechanism to enable specific callbacks
parentViewController
dealloc - is called on the object & the object's memory is returned to the heap
to give it someone else - or another object
7. Each class picks one _ as it's designated initializer....
Anytime you call a method with new - alloc or copy. You own and must release that object.
initializer
CGRect bounds
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
8. Name of the method to be executed
'getters' and 'setters'
@interface ClassName:SuperClassName
selector[message]
you must import the header file of that class
9. When an object is added to a NSMutableArray - that object is sent the message to retain;...
subview(s)
first responder
variable scope - if defined within a block
the array becomes an owner of that object and has a pointer to it.
10. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
You take ownership for an object you want to keep a pointer to
CGRect bounds - GCPoint center - CGRect frame
causes the program to immediately exit from the loop it is executing - whether its for - while or do
11. UIViewController has several methods that get called at certain times...
instance
will be ignored
receiver - selector - arguments
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
12. Asking a class or object to execute a method
message
receiver
Encapsulation of functionality
view controller
13. A view is a subclass of _
creating an initializer
safety - subclassability and makes code look more consistent with C structs
UIView
cannot be added to an array
14. A UITableViewController can fill all three roles of...
unordered collection of objects - objects must be unique
data source - view controller and delegate
instance
selector[message]
15. Origin of a view's coordinate system is _ left
to give it someone else - or another object
upper
CGFloat
instance variables
16. When making a tableView always...
Model Objects[Factory Worker]
data source - view controller and delegate
reuse your cells
first responder
17. Defining variables - three parts...
type - name and value
callbacks
methods
subview(s)
18. When an object is removed from an NSMutableArray - that object is sent the message release;...
CF - Ref
Data Encapsulation
cannot be added to an array
the array relinquishes ownership of that object and no longer has a pointer to it
19. Property List...
is called every time the event occurs
collection of collections - NSArray of an NSArray
calling code that does the instantiation for you
instance variables
20. 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
21. Files Owner...
Is a placeholder object
copy - retain
creates an instance of NSString that holds the character string
protocol
22. Execution of the break statement...
view controller
size and position
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Instantiation from scratch
23. Three ways instances are created...
CGRect
receiver - selector - arguments
ready-made instances - instantiation from scratch - and nib based instantiation
designated initializer
24. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
retain
collection of collections - NSArray of an NSArray
alloc - singleton - informational utility method?
header files declare
25. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
header files declare
Maintenance of state
receiver
message
26. The integer prefix is...
NSCoder
only the class and subclasses can access
%d
setPossessionName
27. Typically the designated initializer has parameters for the most important and frequently used _ of an object
receiver
declaration and initialization of a variable
instance variables
CGRect bounds - GCPoint center - CGRect frame
28. NSString objects are usually sent _ rather than _...
selector[message]
copy - retain
is called every time the event occurs
instance variables
29. If the view has no subviews - create it programmatically; if it has subviews
alloc - singleton - informational utility method?
create a XIB file
pointer - class
subview(s)
30. How do I implement my drawRect?
variable scope - if defined within a block
selector[message]
Core Graphics Framework
data
31. @property declares - and _ implements the setter and getter...
@synthesize
receiving and handling events that are associated with it
%d
data source - view controller and delegate
32. Values to be supplied as the parameters to the method
arguments[message]
calling code that does the instantiation for you
pointer to an object
position
33. UIView - designated initializer...
CF - Ref
to get and set variables
(id)initWithFrame:(CGRect)aRect;
array[class - NSMutableArray]
34. NSValue - class...
Generic object wrapper for other non-object data types
object
parentViewController
receiving and handling events that are associated with it
35. class methods...
group of global functions already assigned to this class
@synthesize
pointer to an object
class methods - initializers
36. 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
Encapsulation of functionality
NSLog routine
@synthesize
declaration and initialization of a variable
37. In a class method you cannot access...
lowercase - uppercase
size and position
the instance variables
super - self
38. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
alloc - singleton - informational utility method?
Instantiation from scratch
Data Encapsulation
UIViewController
39. 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....
copy - retain
wait until the loop finishes processing the event - at the end release it
define it in the implemenation file
Core Graphics Framework
40. Proceed through the loop - jump back to the top and check again
first responder
only the innermost loop in which the break is executed is terminated
dealloc - is called on the object & the object's memory is returned to the heap
Continue
41. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
Is a placeholder object
type - name and value
class
42. Designated initializer makes sure that every...
super - self
safety - subclassability and makes code look more consistent with C structs
creates an instance of NSString that holds the character string
instance variable of an object is valid
43. In general - class methods tend to be factory methods - that is...
copy - retain
methods for generating an instance
they need to be defined in the implementation file
only the innermost loop in which the break is executed is terminated
44. NSSet...
unordered collection of objects - objects must be unique
NSLog routine
view controller
arguments[message]
45. You use _ to implement the view
for inheritance - adopting the superclasses implementation
ordered collection of objects - immutable
instance variables
CGRect bounds
46. UITableViewController is a subclass of...
NSBundle
size and position
UIViewController
NSCoder
47. @property - is using methods...
methods for generating an instance
new instances of the class or retrieve some global property of the class.
to get and set variables
alloc - singleton - informational utility method?
48. 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.
Functions
they need to be defined in the implementation file
class
creating an initializer
49. A view represents a _ area
method
rectangular
data
Abstraction
50. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
a mechanism to enable specific callbacks
only the innermost loop in which the break is executed is terminated
implementation
instance of UIView or one of its subclasses