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. In object oriented languages - we call methods that get and set instance variables
2. 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 _.
unordered collection of objects - objects must be unique
(id)initWithFrame:(CGRect)aRect;
view controller
subview(s)
3. A UITableViewController can fill all three roles of...
data source - view controller and delegate
dealloc - is called on the object & the object's memory is returned to the heap
pointer to an object
superclass's
4. The integer prefix is...
nil
creating an initializer
super - self
%d
5. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
view controller
super - self
dealloc - is called on the object & the object's memory is returned to the heap
object
6. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
ready-made instances - instantiation from scratch - and nib based instantiation
rectangular
receiving and handling events that are associated with it
7. A function in the objective c library that simply displays or logs it's argument
creating an initializer
NSLog routine
designated initializer
new instances of the class or retrieve some global property of the class.
8. When an NSMutableArray is deallocated - it sends...
object
methods
rectangular
the message release to all its entries
9. NSSet...
header files declare
unordered collection of objects - objects must be unique
message
retain
10. super - is used...
for inheritance - adopting the superclasses implementation
header files declare
Controller Objects[Managers]
message
11. class methods...
will be ignored
group of global functions already assigned to this class
collection of collections - NSArray of an NSArray
data source - view controller and delegate
12. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
CGRect
message
group of global functions already assigned to this class
13. Origin of a view's coordinate system is _ left
CGRect bounds
rectangular
view
upper
14. If you have extra work you want to do on the view...
instance
do so in viewDidLoad
parentViewController
pointer - class
15. The notion that the data for an object is stored in it's instance variables and is accessed only by the objects methods. This maintains the integrity of the data.
Data Encapsulation
view controller's initialization method
method
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
16. @property declares - and _ implements the setter and getter...
@synthesize
group of global functions already assigned to this class
Encapsulation of functionality
cannot be added to an array
17. 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
class methods - initializers
Model Objects[Factory Worker]
will be ignored
parentViewController
18. Views have three properties related to their location and size: @property _ _;
CGFloat
implementation
CGRect bounds - GCPoint center - CGRect frame
view controller
19. Use of class methods - there are three...
create a XIB file
the message release to all its entries
alloc - singleton - informational utility method?
NSCoder
20. Values to be supplied as the parameters to the method
arguments[message]
for inheritance - adopting the superclasses implementation
new instances of the class or retrieve some global property of the class.
Ready-Made Instance
21. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
setPossessionName
Ready-Made Instance
super - self
storage
22. Core foundation classes are prefixed with _ and suffixed with _
protocol
retain
CF - Ref
Instantiation from scratch
23. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
the instance variables
variable scope - if defined within a block
in the dealloc - or when a Controller's view is 'unloaded'
Instantiation from scratch
24. Class methods typically either create
CGRect bounds - GCPoint center - CGRect frame
self
instance variables
new instances of the class or retrieve some global property of the class.
25. UIViewController has several methods that get called at certain times...
to get and set variables
pointer - class
is an instance of that class
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
26. Ready-made instances...
designated initializer
lowercase - uppercase
calling code that does the instantiation for you
is called every time the event occurs
27. Also - because arrays only hold a pointer to an object...
draw images
a single-array can contain objects of different types
creates an instance of NSString that holds the character string
in the dealloc - or when a Controller's view is 'unloaded'
28. The class is responsible for what instance variables the instance has - but not the _ of those variables.
@synthesize
values
subview(s)
Object wrapper around primitive types like int - float - double - BOOl
29. 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
@synthesize
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
copy - retain
Maintenance of state
30. A responder is responsible for...
delegates and dataSources
receiving and handling events that are associated with it
copy - retain
will be ignored
31. What does autorelease mean?
%d
upper
wait until the loop finishes processing the event - at the end release it
the array becomes an owner of that object and has a pointer to it.
32. Why properties?
safety - subclassability and makes code look more consistent with C structs
storage
initializers
implementation
33. A _ handles touch events.
CF - Ref
callbacks
pointer to an object
view
34. 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.
you always return the newly initialized object(return self)
creating an initializer
causes the program to immediately exit from the loop it is executing - whether its for - while or do
class's
35. A method in a _ is required unless its preceded by an @optional.
%d
protocol
new instances of the class or retrieve some global property of the class.
Maintenance of state
36. Hold data and know nothing about the user interface
setPossessionName
receiver
Model Objects[Factory Worker]
parentViewController
37. Each _ has a 'designated' initializer method....
an object's property
class
the message release to all its entries
CGRect bounds
38. Number one use of protocols in iOS...
Controller Objects[Managers]
to get and set variables
setPossessionName
delegates and dataSources
39. UIImageView is used to...
draw images
a single-array can contain objects of different types
ready-made instances - instantiation from scratch - and nib based instantiation
CGFloat
40. 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....
define it in the implemenation file
instance variables
C Functionn
values
41. After accessors have been defined in the header file...
object
they need to be defined in the implementation file
the array relinquishes ownership of that object and no longer has a pointer to it
superclass's
42. The designated initializer calls the _ designated initializer....
43. NSNumber - class...
will be ignored
Core Graphics Framework
Object wrapper around primitive types like int - float - double - BOOl
type - name and value
44. A view is a subclass of _
ready-made instances - instantiation from scratch - and nib based instantiation
parentViewController
draw images
UIView
45. An instance is a device for maintaining state. It's a box for _ of data.
the array relinquishes ownership of that object and no longer has a pointer to it
to get and set variables
storage
CGRect
46. Never access a view controller's view in that...
47. NSValue - class...
instance variables
CGFloat
Generic object wrapper for other non-object data types
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
48. What happens when the last owner calls release?
49. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
50. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
a mechanism to enable specific callbacks
creates an instance of NSString that holds the character string
message