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. The class is responsible for what instance variables the instance has - but not the _ of those variables.
draw images
alloc - singleton - informational utility method?
values
CGRect bounds - GCPoint center - CGRect frame
2. Whenever a UINavigationController is about to swap views - it sends out two messages
position
a mechanism to enable specific callbacks
class methods - initializers
viewWillDissapear: and viewWillAppear:
3. All objects are accessed using...
pointers
class methods - initializers
initializer
arguments[message]
4. A UITableView usually needs three different pieces...
position
data source - delegate and view controller
instance of UIView or one of its subclasses
to give it someone else - or another object
5. id is a...
pointer to an object
viewWillDissapear: and viewWillAppear:
You take ownership for an object you want to keep a pointer to
view
6. In general - class methods tend to be factory methods - that is...
methods for generating an instance
data
is an instance of that class
callbacks
7. Origin of a view's coordinate system is _ left
new instances of the class or retrieve some global property of the class.
receiver
UIViewController
upper
8. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
lowercase - uppercase
UIView
Used to find the time right now or to store past or future time/dates
9. A pointer to the object being asked to execute a method
retain
receiver[message]
values
they need to be defined in the implementation file
10. A view is a subclass of _
superclass's
class's
UIView
NSLog routine
11. Files Owner...
initializers
upper
Instantiation from scratch
Is a placeholder object
12. 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
13. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
receiver[message]
a mechanism to enable specific callbacks
has one root view controller
NSLog routine
14. In Objective C arrays can hold only...
references to objects
only the class and subclasses can access
instance variables
implementation
15. Why properties?
NSCoder
safety - subclassability and makes code look more consistent with C structs
the instance variables
view controller's initialization method
16. 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
type - name and value
CF - Ref
Functions
object
17. If a break statement is executed from within a set of nested loops...
(id)initWithFrame:(CGRect)aRect;
the array relinquishes ownership of that object and no longer has a pointer to it
only the innermost loop in which the break is executed is terminated
rectangular
18. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
class methods - initializers
its dataSource
accessors - individually we call them 'getters' and 'setters'
CGRect
19. When an object is removed from an NSMutableArray - that object is sent the message release;...
define it in the implemenation file
NSLog routine
class's
the array relinquishes ownership of that object and no longer has a pointer to it
20. [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.
super - self
references to objects
receiver - selector - arguments
data
21. What does autorelease mean?
delegates and dataSources
selector[message]
wait until the loop finishes processing the event - at the end release it
methods for generating an instance
22. Prefixing a character string with an @ symbol [specific - NSString class]...
array[class - NSMutableArray]
creates an instance of NSString that holds the character string
instance variables
'getters' and 'setters'
23. Class methods typically either create
declaration and initialization of a variable
references to objects
new instances of the class or retrieve some global property of the class.
data source - view controller and delegate
24. Just a floating point number - but we always use it for graphics.
initializers
has one root view controller
NSLog routine
CGFloat
25. To load a Xib file manually - you use _
define it in the implemenation file
@synthesize
CGFloat
NSBundle
26. A view represents a _ area
causes the program to immediately exit from the loop it is executing - whether its for - while or do
callbacks
protocol
rectangular
27. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
lowercase - uppercase
nil
super - self
they need to be defined in the implementation file
28. 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
delegates and dataSources
the array relinquishes ownership of that object and no longer has a pointer to it
29. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
setPossessionName
viewWillDissapear: and viewWillAppear:
Continue
30. initWithFrame: the designated initializer for UIView gives the view
the instance variables
to get and set variables
parentViewController
size and position
31. A collection object - an ordered list of objects that can be accesed by an index
accessors - individually we call them 'getters' and 'setters'
references to objects
array[class - NSMutableArray]
methods for generating an instance
32. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
collection of collections - NSArray of an NSArray
self
is called every time the event occurs
is an instance of that class
33. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
attributes - behavior
designated initializer
message
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
34. Typically the designated initializer has parameters for the most important and frequently used _ of an object
variable scope - if defined within a block
instance variables
Generic object wrapper for other non-object data types
CGRect bounds
35. Class methods do not operate on an _ or have any access to _ variables....
instance
method
initializers
(id)initWithFrame:(CGRect)aRect;
36. Number one use of protocols in iOS...
a mechanism to enable specific callbacks
delegates and dataSources
object
for inheritance - adopting the superclasses implementation
37. Instance Variables by default are called @protected meaning...
C Functionn
class
callbacks
only the class and subclasses can access
38. Also if you send the NSObject the _ message - you own that object.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Is a placeholder object
retain
methods for generating an instance
39. In the last line of an init method...
protocol
%d
storage
you always return the newly initialized object(return self)
40. Only exists within the statement block there defined - outside of the block is fine
method
you must import the header file of that class
type - name and value
variable scope - if defined within a block
41. Designated initializer makes sure that every...
Hash table - Look up objects using a key to get a value.
alloc - singleton - informational utility method?
instance variable of an object is valid
the instance variables
42. Execution of the break statement...
protocol
instance variables
causes the program to immediately exit from the loop it is executing - whether its for - while or do
view
43. At the top of any implementation file...
initializer
accessors - individually we call them 'getters' and 'setters'
Anytime you call a method with new - alloc or copy. You own and must release that object.
you must import the header file of that class
44. 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.
Abstraction
header files declare
Data Encapsulation
only the innermost loop in which the break is executed is terminated
45. Core foundation classes are prefixed with _ and suffixed with _
reuse your cells
copy - retain
pointer - class
CF - Ref
46. The integer prefix is...
%d
collection of collections - NSArray of an NSArray
receiver[message]
pointers
47. 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.
is an instance of that class
ready-made instances - instantiation from scratch - and nib based instantiation
only the class and subclasses can access
instance variables
48. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
its dataSource
data source - delegate and view controller
nil
dealloc - is called on the object & the object's memory is returned to the heap
49. UIImageView is used to...
the instance variables
initializer
draw images
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
50. If the view has no subviews - create it programmatically; if it has subviews
variable scope - if defined within a block
header files declare
data source - view controller and delegate
create a XIB file