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. 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
2. The class is responsible for what instance variables the instance has - but not the _ of those variables.
Is a placeholder object
creates an instance of NSString that holds the character string
values
Data Encapsulation
3. 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
4. Designated initializer makes sure that every...
parentViewController
Is a placeholder object
define it in the implemenation file
instance variable of an object is valid
5. To load a Xib file manually - you use _
Ready-Made Instance
super - self
Core Graphics Framework
NSBundle
6. @property declares - and _ implements the setter and getter...
@synthesize
(id)initWithFrame:(CGRect)aRect;
will be ignored
new instances of the class or retrieve some global property of the class.
7. 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]
attributes - behavior
rectangular
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
8. UIView - designated initializer...
'getters' and 'setters'
super - self
UIView
(id)initWithFrame:(CGRect)aRect;
9. Each _ has a 'designated' initializer method....
instance
methods
receiver[message]
class
10. Reducing details to focus on the core concepts
Abstraction
setPossessionName
declaration and initialization of a variable
Model Objects[Factory Worker]
11. Core foundation classes are prefixed with _ and suffixed with _
you must import the header file of that class
CF - Ref
first responder
@synthesize
12. 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
13. Reference Counting...
only the innermost loop in which the break is executed is terminated
protocol
position
You take ownership for an object you want to keep a pointer to
14. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
define it in the implemenation file
parentViewController
retain
15. The only reason to temporarily own an object - is...
Instantiation from scratch
to give it someone else - or another object
Data Encapsulation
protocol
16. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
instance of UIView or one of its subclasses
a mechanism to enable specific callbacks
for inheritance - adopting the superclasses implementation
17. How do I implement my drawRect?
references to objects
variable scope - if defined within a block
Core Graphics Framework
only the class and subclasses can access
18. 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.
to give it someone else - or another object
upper
view controller's initialization method
implementation
19. super - is used...
%d
view controller's initialization method
for inheritance - adopting the superclasses implementation
header files declare
20. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
has one root view controller
instance
create a XIB file
self
21. A _ handles touch events.
view
Instantiation from scratch
alloc - singleton - informational utility method?
the instance variables
22. Files Owner...
array[class - NSMutableArray]
Is a placeholder object
only the innermost loop in which the break is executed is terminated
the array relinquishes ownership of that object and no longer has a pointer to it
23. Hold data and know nothing about the user interface
CGFloat
Model Objects[Factory Worker]
designated initializer
new instances of the class or retrieve some global property of the class.
24. If you have extra work you want to do on the view...
do so in viewDidLoad
pointer to an object
object
to give it someone else - or another object
25. NSDictionary...
data
data source - view controller and delegate
new instances of the class or retrieve some global property of the class.
Hash table - Look up objects using a key to get a value.
26. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
draw images
collection of collections - NSArray of an NSArray
to get and set variables
27. UITableViewController is a subclass of...
data
self
ready-made instances - instantiation from scratch - and nib based instantiation
UIViewController
28. 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
Abstraction
CGRect bounds - GCPoint center - CGRect frame
rectangular
Functions
29. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
instance variables
header files declare
only the innermost loop in which the break is executed is terminated
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
30. A UITableViewController can fill all three roles of...
unordered collection of objects - objects must be unique
data source - view controller and delegate
in the dealloc - or when a Controller's view is 'unloaded'
type - name and value
31. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
pointers
view controller's initialization method
class
receiver
32. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
the instance variables
you always return the newly initialized object(return self)
instance variables
33. A view is an...
instance of UIView or one of its subclasses
initializers
accessors - individually we call them 'getters' and 'setters'
attributes - behavior
34. UIImageView is used to...
values
draw images
CGRect bounds - GCPoint center - CGRect frame
receiver - selector - arguments
35. Asking a class or object to execute a method
declaration and initialization of a variable
designated initializer
the array relinquishes ownership of that object and no longer has a pointer to it
message
36. What does autorelease mean?
accessors - individually we call them 'getters' and 'setters'
methods for generating an instance
CGFloat
wait until the loop finishes processing the event - at the end release it
37. Values to be supplied as the parameters to the method
is an instance of that class
only the innermost loop in which the break is executed is terminated
variable scope - if defined within a block
arguments[message]
38. if you implemented both the setter and getter - the @synthesize method...
class
will be ignored
message
pointer - class
39. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
an object's property
a mechanism to enable specific callbacks
upper
40. Class methods typically either create
methods
new instances of the class or retrieve some global property of the class.
CGRect bounds
creates an instance of NSString that holds the character string
41. NSValue - class...
size and position
Generic object wrapper for other non-object data types
@interface ClassName:SuperClassName
cannot be added to an array
42. 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
43. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
arguments[message]
C Functionn
to give it someone else - or another object
44. Just a floating point number - but we always use it for graphics.
unordered collection of objects - objects must be unique
storage
CGFloat
Instantiation from scratch
45. 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....
@synthesize
unordered collection of objects - objects must be unique
NSCoder
define it in the implemenation file
46. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
references to objects
receiver[message]
unordered collection of objects - objects must be unique
47. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
(id)initWithFrame:(CGRect)aRect;
Core Graphics Framework
NSCoder
callbacks
48. When do you take ownership?...
array[class - NSMutableArray]
the array relinquishes ownership of that object and no longer has a pointer to it
variable scope - if defined within a block
Anytime you call a method with new - alloc or copy. You own and must release that object.
49. A responder is responsible for...
reuse your cells
subview(s)
instance of UIView or one of its subclasses
receiving and handling events that are associated with it
50. Also - because arrays only hold a pointer to an object...
the instance variables
do so in viewDidLoad
data
a single-array can contain objects of different types