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. Center and frame are used to _ your view
creating an initializer
position
dealloc - is called on the object & the object's memory is returned to the heap
setPossessionName
2. The class is responsible for what instance variables the instance has - but not the _ of those variables.
initializers
selector[message]
alloc - singleton - informational utility method?
values
3. Files Owner...
group of global functions already assigned to this class
pointer - class
Is a placeholder object
reuse your cells
4. super - is used...
storage
for inheritance - adopting the superclasses implementation
is an instance of that class
pointer - class
5. NSArray - class...
Ready-Made Instance
Controller Objects[Managers]
ordered collection of objects - immutable
nil
6. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
UIView
parentViewController
receiver - selector - arguments
7. When an object is added to a NSMutableArray - that object is sent the message to retain;...
Continue
the array becomes an owner of that object and has a pointer to it.
Anytime you call a method with new - alloc or copy. You own and must release that object.
@interface ClassName:SuperClassName
8. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
Used to find the time right now or to store past or future time/dates
view
do so in viewDidLoad
9. 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
data source - view controller and delegate
implementation
viewWillDissapear: and viewWillAppear:
10. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
is called every time the event occurs
CGRect
safety - subclassability and makes code look more consistent with C structs
type - name and value
11. A responder is responsible for...
subview(s)
receiving and handling events that are associated with it
receiver[message]
NSCoder
12. If you have extra work you want to do on the view...
do so in viewDidLoad
viewWillDissapear: and viewWillAppear:
callbacks
reuse your cells
13. 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
you must import the header file of that class
Maintenance of state
class
CF - Ref
14. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
a single-array can contain objects of different types
'getters' and 'setters'
rectangular
self
15. Just a floating point number - but we always use it for graphics.
references to objects
CGFloat
reuse your cells
a single-array can contain objects of different types
16. Origin of a view's coordinate system is _ left
upper
implementation
alloc - singleton - informational utility method?
collection of collections - NSArray of an NSArray
17. A function in the objective c library that simply displays or logs it's argument
receiving and handling events that are associated with it
Anytime you call a method with new - alloc or copy. You own and must release that object.
method
NSLog routine
18. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
19. NSNumber - class...
@interface ClassName:SuperClassName
Object wrapper around primitive types like int - float - double - BOOl
instance variables
message
20. The integer prefix is...
collection of collections - NSArray of an NSArray
Generic object wrapper for other non-object data types
%d
to give it someone else - or another object
21. Hold data and know nothing about the user interface
you must import the header file of that class
Model Objects[Factory Worker]
dealloc - is called on the object & the object's memory is returned to the heap
reuse your cells
22. UITableViewController is a subclass of...
references to objects
to get and set variables
UIViewController
instance variables
23. 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.
you always return the newly initialized object(return self)
first responder
CF - Ref
instance variable of an object is valid
24. initWithFrame: the designated initializer for UIView gives the view
UIViewController
Model Objects[Factory Worker]
protocol
size and position
25. Class methods do not operate on an _ or have any access to _ variables....
nil
%d
selector[message]
instance
26. When an object is removed from an NSMutableArray - that object is sent the message release;...
implementation
header files declare
the array relinquishes ownership of that object and no longer has a pointer to it
Ready-Made Instance
27. 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
Anytime you call a method with new - alloc or copy. You own and must release that object.
message
Generic object wrapper for other non-object data types
28. 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
copy - retain
Model Objects[Factory Worker]
Core Graphics Framework
29. Only exists within the statement block there defined - outside of the block is fine
a single-array can contain objects of different types
variable scope - if defined within a block
arguments[message]
ordered collection of objects - immutable
30. @property - is using methods...
rectangular
receiver
type - name and value
to get and set variables
31. 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
lowercase - uppercase
safety - subclassability and makes code look more consistent with C structs
array[class - NSMutableArray]
32. Use of class methods - there are three...
you always return the newly initialized object(return self)
alloc - singleton - informational utility method?
define it in the implemenation file
you must import the header file of that class
33. UIViewController has several methods that get called at certain times...
C Functionn
pointers
Model Objects[Factory Worker]
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
34. Designated initializer makes sure that every...
data
instance variable of an object is valid
data source - view controller and delegate
draw images
35. Any individual object belonging to any class...
reuse your cells
receiver[message]
is an instance of that class
super - self
36. In a class method you cannot access...
calling code that does the instantiation for you
the instance variables
view controller
first responder
37. NSString objects are usually sent _ rather than _...
viewWillDissapear: and viewWillAppear:
copy - retain
group of global functions already assigned to this class
is called every time the event occurs
38. All objects are accessed using...
its dataSource
reuse your cells
pointers
new instances of the class or retrieve some global property of the class.
39. if you implemented both the setter and getter - the @synthesize method...
will be ignored
instance of UIView or one of its subclasses
super - self
viewWillDissapear: and viewWillAppear:
40. class methods...
group of global functions already assigned to this class
to give it someone else - or another object
class
object
41. Views have three properties related to their location and size: @property _ _;
will be ignored
CGRect bounds - GCPoint center - CGRect frame
an object's property
view
42. You use _ to implement the view
NSCoder
calling code that does the instantiation for you
CGRect bounds
receiving and handling events that are associated with it
43. 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
pointer to an object
a mechanism to enable specific callbacks
Functions
view
44. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
position
class methods - initializers
(id)initWithFrame:(CGRect)aRect;
cannot be added to an array
45. Object Oriented based analogue to a function is called a...
Object wrapper around primitive types like int - float - double - BOOl
method
Instantiation from scratch
nil
46. How do I implement my drawRect?
UIViewController
NSLog routine
Core Graphics Framework
initializer
47. When making a tableView always...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
reuse your cells
variable scope - if defined within a block
retain
48. 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.
CGRect
array[class - NSMutableArray]
data source - view controller and delegate
Data Encapsulation
49. Reducing details to focus on the core concepts
Abstraction
type - name and value
first responder
only the innermost loop in which the break is executed is terminated
50. Also if you send the NSObject the _ message - you own that object.
only the innermost loop in which the break is executed is terminated
retain
alloc - singleton - informational utility method?
NSCoder