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. How do I implement my drawRect?
the message release to all its entries
Anytime you call a method with new - alloc or copy. You own and must release that object.
Core Graphics Framework
You take ownership for an object you want to keep a pointer to
2. A view is a subclass of _
dealloc - is called on the object & the object's memory is returned to the heap
UIView
designated initializer
Encapsulation of functionality
3. Object Oriented based analogue to a function is called a...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
method
only the class and subclasses can access
CGRect
4. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
its dataSource
receiver - selector - arguments
object
5. A view represents a _ area
class
a mechanism to enable specific callbacks
rectangular
the message release to all its entries
6. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
rectangular
size and position
declaration and initialization of a variable
7. @property declares - and _ implements the setter and getter...
create a XIB file
Continue
retain
@synthesize
8. When an NSMutableArray is deallocated - it sends...
(id)initWithFrame:(CGRect)aRect;
class's
the message release to all its entries
receiving and handling events that are associated with it
9. When do you take ownership?...
Functions
Anytime you call a method with new - alloc or copy. You own and must release that object.
pointer to an object
receiver[message]
10. A collection object - an ordered list of objects that can be accesed by an index
copy - retain
Object wrapper around primitive types like int - float - double - BOOl
array[class - NSMutableArray]
creating an initializer
11. Any individual object belonging to any class...
reuse your cells
Object wrapper around primitive types like int - float - double - BOOl
an object's property
is an instance of that class
12. NSValue - class...
values
arguments[message]
instance variable of an object is valid
Generic object wrapper for other non-object data types
13. A UITableView usually needs three different pieces...
unordered collection of objects - objects must be unique
data source - delegate and view controller
NSCoder
message
14. 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...
first responder
size and position
@interface ClassName:SuperClassName
setPossessionName
15. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
16. Prefixing a character string with an @ symbol [specific - NSString class]...
type - name and value
data source - delegate and view controller
position
creates an instance of NSString that holds the character string
17. 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
wait until the loop finishes processing the event - at the end release it
creating an initializer
Maintenance of state
data source - delegate and view controller
18. If a break statement is executed from within a set of nested loops...
Maintenance of state
Generic object wrapper for other non-object data types
only the innermost loop in which the break is executed is terminated
Used to find the time right now or to store past or future time/dates
19. 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
20. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Abstraction
Controller Objects[Managers]
Ready-Made Instance
instance of UIView or one of its subclasses
21. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
ready-made instances - instantiation from scratch - and nib based instantiation
class
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
22. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
size and position
for inheritance - adopting the superclasses implementation
declaration and initialization of a variable
CGRect
23. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
creating an initializer
Controller Objects[Managers]
declaration and initialization of a variable
24. @property - is using methods...
to get and set variables
collection of collections - NSArray of an NSArray
%d
data source - delegate and view controller
25. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
@synthesize
Controller Objects[Managers]
initializers
instance
26. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
class
view controller
position
27. To load a Xib file manually - you use _
NSBundle
instance variables
attributes - behavior
the array becomes an owner of that object and has a pointer to it.
28. super - is used...
copy - retain
for inheritance - adopting the superclasses implementation
creating an initializer
type - name and value
29. 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
pointers
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Functions
values
30. Values to be supplied as the parameters to the method
methods for generating an instance
for inheritance - adopting the superclasses implementation
arguments[message]
receiver
31. UIImageView is used to...
wait until the loop finishes processing the event - at the end release it
draw images
to get and set variables
the instance variables
32. Property List...
instance of UIView or one of its subclasses
header files declare
callbacks
collection of collections - NSArray of an NSArray
33. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
message
they need to be defined in the implementation file
arguments[message]
34. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
wait until the loop finishes processing the event - at the end release it
view controller's initialization method
Maintenance of state
35. UIView - designated initializer...
delegates and dataSources
first responder
upper
(id)initWithFrame:(CGRect)aRect;
36. 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
draw images
subview(s)
initializer
Encapsulation of functionality
37. id is a...
pointer to an object
superclass's
self
@interface ClassName:SuperClassName
38. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
in the dealloc - or when a Controller's view is 'unloaded'
receiver
safety - subclassability and makes code look more consistent with C structs
methods for generating an instance
39. Designated initializer makes sure that every...
upper
instance variable of an object is valid
data source - view controller and delegate
create a XIB file
40. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
you must import the header file of that class
receiver
receiving and handling events that are associated with it
41. A _ handles touch events.
has one root view controller
view
Model Objects[Factory Worker]
size and position
42. 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
data
instance variables
a mechanism to enable specific callbacks
43. [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.
data
pointer - class
pointer to an object
type - name and value
44. Defining variables - three parts...
a mechanism to enable specific callbacks
type - name and value
cannot be added to an array
NSLog routine
45. 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
@interface ClassName:SuperClassName
nil
46. Asking a class or object to execute a method
nil
an object's property
accessors - individually we call them 'getters' and 'setters'
message
47. NSArray - important methods...
'getters' and 'setters'
Is a placeholder object
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
super - self
48. 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
implementation
retain
initializer
49. All objects are accessed using...
pointers
ordered collection of objects - immutable
subview(s)
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
50. Instance Variables by default are called @protected meaning...
protocol
superclass's
CGFloat
only the class and subclasses can access