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. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
Controller Objects[Managers]
NSLog routine
array[class - NSMutableArray]
Maintenance of state
2. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
designated initializer
parentViewController
UIViewController
3. NSSet...
unordered collection of objects - objects must be unique
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
rectangular
subview(s)
4. 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
5. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
UIView
ordered collection of objects - immutable
view controller's initialization method
header files declare
6. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
retain
lowercase - uppercase
safety - subclassability and makes code look more consistent with C structs
Used to find the time right now or to store past or future time/dates
7. In a class method you cannot access...
calling code that does the instantiation for you
subview(s)
a single-array can contain objects of different types
the instance variables
8. Class methods do not operate on an _ or have any access to _ variables....
class
group of global functions already assigned to this class
reuse your cells
instance
9. Each _ has a 'designated' initializer method....
define it in the implemenation file
data
Encapsulation of functionality
class
10. Values to be supplied as the parameters to the method
they need to be defined in the implementation file
arguments[message]
dealloc - is called on the object & the object's memory is returned to the heap
alloc - singleton - informational utility method?
11. @property declares - and _ implements the setter and getter...
pointers
upper
@synthesize
parentViewController
12. An instance is a device for maintaining state. It's a box for _ of data.
designated initializer
initializer
storage
its dataSource
13. 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
14. 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
safety - subclassability and makes code look more consistent with C structs
a mechanism to enable specific callbacks
they need to be defined in the implementation file
parentViewController
15. When do you take ownership?...
Abstraction
Anytime you call a method with new - alloc or copy. You own and must release that object.
unordered collection of objects - objects must be unique
group of global functions already assigned to this class
16. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
creates an instance of NSString that holds the character string
view controller's initialization method
delegates and dataSources
17. A responder is responsible for...
receiving and handling events that are associated with it
Continue
values
you must import the header file of that class
18. Just a floating point number - but we always use it for graphics.
CGFloat
Hash table - Look up objects using a key to get a value.
the message release to all its entries
Continue
19. Delegation is an object oriented approach to
references to objects
pointer - class
callbacks
you must import the header file of that class
20. A command directed to an object is called an...
NSLog routine
dealloc - is called on the object & the object's memory is returned to the heap
message
CGRect bounds
21. Three ways instances are created...
NSCoder
new instances of the class or retrieve some global property of the class.
ready-made instances - instantiation from scratch - and nib based instantiation
CF - Ref
22. NSNumber - class...
size and position
Object wrapper around primitive types like int - float - double - BOOl
initializers
@synthesize
23. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiving and handling events that are associated with it
data
receiver
unordered collection of objects - objects must be unique
24. 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.
instance variables
message
%d
for inheritance - adopting the superclasses implementation
25. NSArray - class...
Instantiation from scratch
ordered collection of objects - immutable
the message release to all its entries
a mechanism to enable specific callbacks
26. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
has one root view controller
parentViewController
C Functionn
27. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
Used to find the time right now or to store past or future time/dates
the instance variables
You take ownership for an object you want to keep a pointer to
28. All objects are accessed using...
delegates and dataSources
class
you must import the header file of that class
pointers
29. UIImageView is used to...
draw images
reuse your cells
storage
data source - view controller and delegate
30. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
upper
designated initializer
You take ownership for an object you want to keep a pointer to
causes the program to immediately exit from the loop it is executing - whether its for - while or do
31. Prefixing a character string with an @ symbol [specific - NSString class]...
Maintenance of state
NSLog routine
new instances of the class or retrieve some global property of the class.
creates an instance of NSString that holds the character string
32. Also - because arrays only hold a pointer to an object...
only the innermost loop in which the break is executed is terminated
for inheritance - adopting the superclasses implementation
view controller
a single-array can contain objects of different types
33. In Cocoa Touch - the table view asks another object _ what it should display...
calling code that does the instantiation for you
instance variables
its dataSource
Ready-Made Instance
34. NSValue - class...
Generic object wrapper for other non-object data types
superclass's
Abstraction
an object's property
35. 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 _.
wait until the loop finishes processing the event - at the end release it
pointers
subview(s)
Object wrapper around primitive types like int - float - double - BOOl
36. To load a Xib file manually - you use _
CGFloat
instance
NSBundle
Functions
37. A pointer to the object being asked to execute a method
is an instance of that class
implementation
receiver[message]
Instantiation from scratch
38. Views have three properties related to their location and size: @property _ _;
setPossessionName
Functions
viewWillDissapear: and viewWillAppear:
CGRect bounds - GCPoint center - CGRect frame
39. Files Owner...
protocol
the instance variables
Is a placeholder object
to get and set variables
40. Object Oriented based analogue to a function is called a...
method
C Functionn
instance variables
callbacks
41. If the view has no subviews - create it programmatically; if it has subviews
a single-array can contain objects of different types
you must import the header file of that class
receiver
create a XIB file
42. A _ handles touch events.
view
NSBundle
only the class and subclasses can access
data source - delegate and view controller
43. Reference Counting...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
a mechanism to enable specific callbacks
You take ownership for an object you want to keep a pointer to
protocol
44. The integer prefix is...
creates an instance of NSString that holds the character string
the instance variables
message
%d
45. A message is always contained in square brackets - and has three parts
pointer - class
receiver - selector - arguments
protocol
alloc - singleton - informational utility method?
46. How do I implement my drawRect?
pointer to an object
data source - view controller and delegate
Core Graphics Framework
object
47. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
@interface ClassName:SuperClassName
accessors - individually we call them 'getters' and 'setters'
reuse your cells
48. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
pointer to an object
header files declare
UIView
49. UITableViewController is a subclass of...
receiving and handling events that are associated with it
you must import the header file of that class
UIViewController
you always return the newly initialized object(return self)
50. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183