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. Just a floating point number - but we always use it for graphics.
receiver[message]
CGFloat
data source - delegate and view controller
object
2. To load a Xib file manually - you use _
receiver[message]
NSBundle
view controller's initialization method
group of global functions already assigned to this class
3. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
retain
only the innermost loop in which the break is executed is terminated
Maintenance of state
lowercase - uppercase
4. Name of the method to be executed
selector[message]
do so in viewDidLoad
unordered collection of objects - objects must be unique
arguments[message]
5. Any individual object belonging to any class...
reuse your cells
is an instance of that class
Hash table - Look up objects using a key to get a value.
group of global functions already assigned to this class
6. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Functions
instance variables
position
the array becomes an owner of that object and has a pointer to it.
7. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
define it in the implemenation file
header files declare
the message release to all its entries
8. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
arguments[message]
You take ownership for an object you want to keep a pointer to
Ready-Made Instance
class's
9. UIImageView is used to...
C Functionn
CF - Ref
draw images
Encapsulation of functionality
10. A view is an...
header files declare
instance of UIView or one of its subclasses
data source - view controller and delegate
to get and set variables
11. Property List...
'getters' and 'setters'
NSLog routine
new instances of the class or retrieve some global property of the class.
collection of collections - NSArray of an NSArray
12. Center and frame are used to _ your view
position
group of global functions already assigned to this class
message
view controller
13. 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
Hash table - Look up objects using a key to get a value.
data
Encapsulation of functionality
safety - subclassability and makes code look more consistent with C structs
14. 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
15. UIView - designated initializer...
the message release to all its entries
(id)initWithFrame:(CGRect)aRect;
accessors - individually we call them 'getters' and 'setters'
'getters' and 'setters'
16. If the view has no subviews - create it programmatically; if it has subviews
view controller
create a XIB file
a mechanism to enable specific callbacks
NSBundle
17. Only exists within the statement block there defined - outside of the block is fine
Functions
variable scope - if defined within a block
(id)initWithFrame:(CGRect)aRect;
Data Encapsulation
18. NSArray - important methods...
type - name and value
NSCoder
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Used to find the time right now or to store past or future time/dates
19. 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 _.
Continue
Model Objects[Factory Worker]
subview(s)
Maintenance of state
20. Three ways instances are created...
an object's property
the array relinquishes ownership of that object and no longer has a pointer to it
ready-made instances - instantiation from scratch - and nib based instantiation
accessors - individually we call them 'getters' and 'setters'
21. NSDate - class...
Used to find the time right now or to store past or future time/dates
callbacks
CGRect bounds
implementation
22. Also if you send the NSObject the _ message - you own that object.
retain
calling code that does the instantiation for you
super - self
to give it someone else - or another object
23. super - is used...
Model Objects[Factory Worker]
arguments[message]
a single-array can contain objects of different types
for inheritance - adopting the superclasses implementation
24. NSSet...
Instantiation from scratch
group of global functions already assigned to this class
Is a placeholder object
unordered collection of objects - objects must be unique
25. If you have extra work you want to do on the view...
CGFloat
view controller's initialization method
has one root view controller
do so in viewDidLoad
26. Primitives and C Structures...
cannot be added to an array
they need to be defined in the implementation file
instance variables
C Functionn
27. Class methods typically either create
view controller's initialization method
new instances of the class or retrieve some global property of the class.
designated initializer
viewWillDissapear: and viewWillAppear:
28. An instance is a device for maintaining state. It's a box for _ of data.
declaration and initialization of a variable
storage
is called every time the event occurs
Functions
29. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
you must import the header file of that class
method
the message release to all its entries
class methods - initializers
30. UITableViewController is a subclass of...
UIViewController
the instance variables
a mechanism to enable specific callbacks
superclass's
31. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
attributes - behavior
cannot be added to an array
instance of UIView or one of its subclasses
designated initializer
32. A message is always contained in square brackets - and has three parts
references to objects
receiver - selector - arguments
to get and set variables
instance variables
33. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
ready-made instances - instantiation from scratch - and nib based instantiation
Instantiation from scratch
implementation
pointer to an object
34. @property declares - and _ implements the setter and getter...
alloc - singleton - informational utility method?
NSBundle
do so in viewDidLoad
@synthesize
35. @property - is using methods...
copy - retain
you always return the newly initialized object(return self)
CGRect bounds - GCPoint center - CGRect frame
to get and set variables
36. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Data Encapsulation
parentViewController
has one root view controller
CGRect
37. 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
38. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
values
%d
Encapsulation of functionality
receiver
39. Origin of a view's coordinate system is _ left
Abstraction
upper
superclass's
unordered collection of objects - objects must be unique
40. 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
Abstraction
alloc - singleton - informational utility method?
@synthesize
a mechanism to enable specific callbacks
41. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
protocol
nil
pointer - class
view controller
42. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
delegates and dataSources
initializers
NSCoder
you must import the header file of that class
43. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
calling code that does the instantiation for you
Ready-Made Instance
Instantiation from scratch
44. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
methods
object
UIViewController
delegates and dataSources
45. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
implementation
its dataSource
is called every time the event occurs
a mechanism to enable specific callbacks
46. A method in a _ is required unless its preceded by an @optional.
CGFloat
protocol
view
copy - retain
47. Class methods do not operate on an _ or have any access to _ variables....
C Functionn
instance
receiving and handling events that are associated with it
define it in the implemenation file
48. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
protocol
Generic object wrapper for other non-object data types
@interface ClassName:SuperClassName
class methods - initializers
49. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Controller Objects[Managers]
wait until the loop finishes processing the event - at the end release it
creates an instance of NSString that holds the character string
self
50. A UITableViewController can fill all three roles of...
data source - view controller and delegate
superclass's
C Functionn
arguments[message]