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. Name of the method to be executed
is called every time the event occurs
for inheritance - adopting the superclasses implementation
Maintenance of state
selector[message]
2. A collection object - an ordered list of objects that can be accesed by an index
draw images
array[class - NSMutableArray]
view controller's initialization method
super - self
3. Only exists within the statement block there defined - outside of the block is fine
pointer to an object
variable scope - if defined within a block
wait until the loop finishes processing the event - at the end release it
its dataSource
4. 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.
instance variables
new instances of the class or retrieve some global property of the class.
size and position
implementation
5. NSDate - class...
references to objects
class's
to give it someone else - or another object
Used to find the time right now or to store past or future time/dates
6. You use _ to implement the view
lowercase - uppercase
CGRect bounds
they need to be defined in the implementation file
variable scope - if defined within a block
7. If the view has no subviews - create it programmatically; if it has subviews
ready-made instances - instantiation from scratch - and nib based instantiation
create a XIB file
UIView
only the class and subclasses can access
8. NSSet...
for inheritance - adopting the superclasses implementation
unordered collection of objects - objects must be unique
lowercase - uppercase
@interface ClassName:SuperClassName
9. NSNumber - class...
Core Graphics Framework
Object wrapper around primitive types like int - float - double - BOOl
only the innermost loop in which the break is executed is terminated
define it in the implemenation file
10. A command directed to an object is called an...
a single-array can contain objects of different types
methods for generating an instance
Ready-Made Instance
message
11. Ready-made instances...
a single-array can contain objects of different types
Functions
calling code that does the instantiation for you
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
12. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
Hash table - Look up objects using a key to get a value.
cannot be added to an array
setPossessionName
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
13. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
instance
class methods - initializers
only the innermost loop in which the break is executed is terminated
CGFloat
14. 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.
creating an initializer
Model Objects[Factory Worker]
unordered collection of objects - objects must be unique
Ready-Made Instance
15. Just a floating point number - but we always use it for graphics.
parentViewController
UIViewController
CGFloat
Anytime you call a method with new - alloc or copy. You own and must release that object.
16. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Generic object wrapper for other non-object data types
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CGRect bounds
self
17. initWithFrame: the designated initializer for UIView gives the view
to give it someone else - or another object
size and position
message
for inheritance - adopting the superclasses implementation
18. The class is responsible for what instance variables the instance has - but not the _ of those variables.
declaration and initialization of a variable
superclass's
values
CGFloat
19. An instance is a device for maintaining state. It's a box for _ of data.
upper
storage
create a XIB file
Functions
20. A callback is a function that is supplied in advance of an event - and...
super - self
@synthesize
define it in the implemenation file
is called every time the event occurs
21. 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
parentViewController
the message release to all its entries
'getters' and 'setters'
view controller's initialization method
22. Primitives and C Structures...
cannot be added to an array
has one root view controller
class's
CGFloat
23. 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
24. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
callbacks
data source - view controller and delegate
NSLog routine
Controller Objects[Managers]
25. The root view controller typically creates the next view controller - and the next _ creates the one after that
variable scope - if defined within a block
Object wrapper around primitive types like int - float - double - BOOl
view controller
NSBundle
26. A UITableViewController can fill all three roles of...
Hash table - Look up objects using a key to get a value.
message
data source - view controller and delegate
subview(s)
27. @property - is using methods...
class methods - initializers
to get and set variables
ordered collection of objects - immutable
CGFloat
28. 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 _.
pointer - class
%d
instance variables
to get and set variables
29. Prefixing a character string with an @ symbol [specific - NSString class]...
in the dealloc - or when a Controller's view is 'unloaded'
Data Encapsulation
creates an instance of NSString that holds the character string
receiver
30. A method in a _ is required unless its preceded by an @optional.
NSCoder
Used to find the time right now or to store past or future time/dates
protocol
initializer
31. 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....
declaration and initialization of a variable
upper
define it in the implemenation file
viewWillDissapear: and viewWillAppear:
32. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
a mechanism to enable specific callbacks
define it in the implemenation file
Ready-Made Instance
33. A view is an...
only the innermost loop in which the break is executed is terminated
Anytime you call a method with new - alloc or copy. You own and must release that object.
nil
instance of UIView or one of its subclasses
34. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
viewWillDissapear: and viewWillAppear:
Abstraction
creates an instance of NSString that holds the character string
35. The only reason to temporarily own an object - is...
a mechanism to enable specific callbacks
to give it someone else - or another object
collection of collections - NSArray of an NSArray
accessors - individually we call them 'getters' and 'setters'
36. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Ready-Made Instance
upper
instance variables
arguments[message]
37. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
CGRect bounds
CGRect
size and position
38. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
alloc - singleton - informational utility method?
receiver
you always return the newly initialized object(return self)
to get and set variables
39. Class methods do not operate on an _ or have any access to _ variables....
Is a placeholder object
instance variables
object
instance
40. [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.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
data
UIView
setPossessionName
41. 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.
class
Model Objects[Factory Worker]
first responder
for inheritance - adopting the superclasses implementation
42. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
viewWillDissapear: and viewWillAppear:
first responder
callbacks
43. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
retain
create a XIB file
CGRect
object
44. A pointer to the object being asked to execute a method
protocol
receiver[message]
CGRect bounds
cannot be added to an array
45. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
ordered collection of objects - immutable
instance variables
superclass's
46. 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
group of global functions already assigned to this class
super - self
Functions
message
47. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
rectangular
header files declare
subview(s)
NSBundle
48. UIViewController has several methods that get called at certain times...
an object's property
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
lowercase - uppercase
to give it someone else - or another object
49. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
data source - view controller and delegate
lowercase - uppercase
type - name and value
CGRect bounds
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
self
CF - Ref
parentViewController