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. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
lowercase - uppercase
Model Objects[Factory Worker]
the array relinquishes ownership of that object and no longer has a pointer to it
2. 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
Encapsulation of functionality
its dataSource
designated initializer
calling code that does the instantiation for you
3. In Objective C arrays can hold only...
references to objects
parentViewController
view controller
viewWillDissapear: and viewWillAppear:
4. To load a Xib file manually - you use _
retain
NSBundle
its dataSource
Generic object wrapper for other non-object data types
5. NSString *s = @'Hello - World'; is an example of...
instance
declaration and initialization of a variable
You take ownership for an object you want to keep a pointer to
object
6. An instance is a device for maintaining state. It's a box for _ of data.
storage
Maintenance of state
its dataSource
class
7. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. Origin of a view's coordinate system is _ left
UIView
upper
ordered collection of objects - immutable
a mechanism to enable specific callbacks
9. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
methods
header files declare
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
@interface ClassName:SuperClassName
10. A pointer to the object being asked to execute a method
receiver[message]
data source - delegate and view controller
accessors - individually we call them 'getters' and 'setters'
self
11. In any application with UINavigationController - the navigation controller...
has one root view controller
an object's property
method
the instance variables
12. Proceed through the loop - jump back to the top and check again
alloc - singleton - informational utility method?
Continue
implementation
size and position
13. Core foundation classes are prefixed with _ and suffixed with _
designated initializer
new instances of the class or retrieve some global property of the class.
CF - Ref
%d
14. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
class's
has one root view controller
the message release to all its entries
CGRect
15. A UITableView usually needs three different pieces...
they need to be defined in the implementation file
data source - delegate and view controller
you always return the newly initialized object(return self)
Instantiation from scratch
16. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
delegates and dataSources
a single-array can contain objects of different types
Generic object wrapper for other non-object data types
17. Also - because arrays only hold a pointer to an object...
define it in the implemenation file
a single-array can contain objects of different types
instance variables
creates an instance of NSString that holds the character string
18. 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....
header files declare
upper
CGFloat
define it in the implemenation file
19. When an object is added to a NSMutableArray - that object is sent the message to retain;...
methods for generating an instance
the array becomes an owner of that object and has a pointer to it.
will be ignored
declaration and initialization of a variable
20. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
retain
super - self
dealloc - is called on the object & the object's memory is returned to the heap
the instance variables
21. @property - is using methods...
lowercase - uppercase
to get and set variables
CGFloat
Abstraction
22. A message is always contained in square brackets - and has three parts
position
receiver - selector - arguments
creates an instance of NSString that holds the character string
cannot be added to an array
23. In the last line of an init method...
you always return the newly initialized object(return self)
the instance variables
superclass's
NSLog routine
24. Just a floating point number - but we always use it for graphics.
Model Objects[Factory Worker]
accessors - individually we call them 'getters' and 'setters'
has one root view controller
CGFloat
25. Use of class methods - there are three...
to give it someone else - or another object
receiving and handling events that are associated with it
alloc - singleton - informational utility method?
Anytime you call a method with new - alloc or copy. You own and must release that object.
26. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
the message release to all its entries
message
Instantiation from scratch
Ready-Made Instance
27. NSDictionary...
lowercase - uppercase
selector[message]
Anytime you call a method with new - alloc or copy. You own and must release that object.
Hash table - Look up objects using a key to get a value.
28. When an object is removed from an NSMutableArray - that object is sent the message release;...
instance
copy - retain
they need to be defined in the implementation file
the array relinquishes ownership of that object and no longer has a pointer to it
29. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
variable scope - if defined within a block
safety - subclassability and makes code look more consistent with C structs
data
30. How do I implement my drawRect?
NSCoder
declaration and initialization of a variable
view controller
Core Graphics Framework
31. Only exists within the statement block there defined - outside of the block is fine
subview(s)
accessors - individually we call them 'getters' and 'setters'
instance variable of an object is valid
variable scope - if defined within a block
32. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Model Objects[Factory Worker]
instance variables
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
retain
33. 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
the message release to all its entries
@interface ClassName:SuperClassName
parentViewController
position
34. Asking a class or object to execute a method
message
NSLog routine
%d
You take ownership for an object you want to keep a pointer to
35. 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
Functions
superclass's
causes the program to immediately exit from the loop it is executing - whether its for - while or do
receiver - selector - arguments
36. Whenever a UINavigationController is about to swap views - it sends out two messages
superclass's
class
viewWillDissapear: and viewWillAppear:
to get and set variables
37. Primitives and C Structures...
instance variable of an object is valid
new instances of the class or retrieve some global property of the class.
draw images
cannot be added to an array
38. 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.
receiver[message]
references to objects
accessors - individually we call them 'getters' and 'setters'
first responder
39. Class methods typically either create
new instances of the class or retrieve some global property of the class.
retain
Continue
arguments[message]
40. A command directed to an object is called an...
is an instance of that class
message
You take ownership for an object you want to keep a pointer to
cannot be added to an array
41. When do you take ownership?...
super - self
wait until the loop finishes processing the event - at the end release it
Anytime you call a method with new - alloc or copy. You own and must release that object.
Controller Objects[Managers]
42. A _ handles touch events.
initializers
view
receiving and handling events that are associated with it
selector[message]
43. Reference Counting...
You take ownership for an object you want to keep a pointer to
protocol
safety - subclassability and makes code look more consistent with C structs
Continue
44. initWithFrame: the designated initializer for UIView gives the view
size and position
message
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Used to find the time right now or to store past or future time/dates
45. In Cocoa Touch - the table view asks another object _ what it should display...
NSCoder
the array relinquishes ownership of that object and no longer has a pointer to it
its dataSource
Model Objects[Factory Worker]
46. Class methods do not operate on an _ or have any access to _ variables....
instance
callbacks
calling code that does the instantiation for you
(id)initWithFrame:(CGRect)aRect;
47. A view is an...
instance of UIView or one of its subclasses
a mechanism to enable specific callbacks
dealloc - is called on the object & the object's memory is returned to the heap
methods for generating an instance
48. The root view controller typically creates the next view controller - and the next _ creates the one after that
new instances of the class or retrieve some global property of the class.
self
reuse your cells
view controller
49. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
methods for generating an instance
initializers
creates an instance of NSString that holds the character string
superclass's
50. 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...
pointer to an object
Anytime you call a method with new - alloc or copy. You own and must release that object.
setPossessionName
Hash table - Look up objects using a key to get a value.