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. When an object is removed from an NSMutableArray - that object is sent the message release;...
receiving and handling events that are associated with it
variable scope - if defined within a block
subview(s)
the array relinquishes ownership of that object and no longer has a pointer to it
2. initWithFrame: the designated initializer for UIView gives the view
self
message
receiver[message]
size and position
3. NSDictionary...
you always return the newly initialized object(return self)
Hash table - Look up objects using a key to get a value.
retain
pointer to an object
4. @property declares - and _ implements the setter and getter...
(id)initWithFrame:(CGRect)aRect;
the array relinquishes ownership of that object and no longer has a pointer to it
@synthesize
object
5. Reducing details to focus on the core concepts
data source - view controller and delegate
new instances of the class or retrieve some global property of the class.
Abstraction
@interface ClassName:SuperClassName
6. Property List...
new instances of the class or retrieve some global property of the class.
super - self
copy - retain
collection of collections - NSArray of an NSArray
7. NSDate - class...
class methods - initializers
Used to find the time right now or to store past or future time/dates
message
Hash table - Look up objects using a key to get a value.
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
Controller Objects[Managers]
header files declare
an object's property
Encapsulation of functionality
9. 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
message
parentViewController
in the dealloc - or when a Controller's view is 'unloaded'
10. 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
instance
initializer
Functions
Encapsulation of functionality
11. A view is an...
instance of UIView or one of its subclasses
the message release to all its entries
pointer to an object
the instance variables
12. In Cocoa Touch - the table view asks another object _ what it should display...
an object's property
methods
its dataSource
they need to be defined in the implementation file
13. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
14. You use _ to implement the view
references to objects
class
CGRect bounds
wait until the loop finishes processing the event - at the end release it
15. In general - class methods tend to be factory methods - that is...
is called every time the event occurs
initializer
storage
methods for generating an instance
16. class methods...
group of global functions already assigned to this class
subview(s)
cannot be added to an array
variable scope - if defined within a block
17. Primitives and C Structures...
you must import the header file of that class
Core Graphics Framework
attributes - behavior
cannot be added to an array
18. 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
19. 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
super - self
wait until the loop finishes processing the event - at the end release it
draw images
20. NSArray - class...
Core Graphics Framework
declaration and initialization of a variable
Model Objects[Factory Worker]
ordered collection of objects - immutable
21. 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
CGRect bounds
class
selector[message]
22. An instance is a device for maintaining state. It's a box for _ of data.
initializers
storage
@synthesize
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
23. Origin of a view's coordinate system is _ left
has one root view controller
view
the array relinquishes ownership of that object and no longer has a pointer to it
upper
24. 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.
'getters' and 'setters'
cannot be added to an array
Anytime you call a method with new - alloc or copy. You own and must release that object.
first responder
25. A UITableViewController can fill all three roles of...
class methods - initializers
@interface ClassName:SuperClassName
CGFloat
data source - view controller and delegate
26. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
position
copy - retain
initializers
class methods - initializers
27. Reference Counting...
UIView
Abstraction
pointer - class
You take ownership for an object you want to keep a pointer to
28. 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 _.
receiver
nil
a mechanism to enable specific callbacks
instance of UIView or one of its subclasses
29. A function in the objective c library that simply displays or logs it's argument
NSLog routine
accessors - individually we call them 'getters' and 'setters'
class's
@synthesize
30. Three ways instances are created...
group of global functions already assigned to this class
cannot be added to an array
ready-made instances - instantiation from scratch - and nib based instantiation
Controller Objects[Managers]
31. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
is called every time the event occurs
object
Ready-Made Instance
32. A message is always contained in square brackets - and has three parts
Core Graphics Framework
arguments[message]
receiver - selector - arguments
accessors - individually we call them 'getters' and 'setters'
33. All objects are accessed using...
do so in viewDidLoad
pointers
copy - retain
pointer to an object
34. 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
35. Proceed through the loop - jump back to the top and check again
ready-made instances - instantiation from scratch - and nib based instantiation
superclass's
a single-array can contain objects of different types
Continue
36. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
draw images
has one root view controller
NSBundle
37. Classes describe two things...
arguments[message]
receiver - selector - arguments
attributes - behavior
an object's property
38. NSString objects are usually sent _ rather than _...
copy - retain
object
Hash table - Look up objects using a key to get a value.
C Functionn
39. Object Oriented based analogue to a function is called a...
class's
view controller's initialization method
method
CGRect
40. After accessors have been defined in the header file...
object
to get and set variables
they need to be defined in the implementation file
rectangular
41. Also if you send the NSObject the _ message - you own that object.
Hash table - Look up objects using a key to get a value.
lowercase - uppercase
(id)initWithFrame:(CGRect)aRect;
retain
42. To load a Xib file manually - you use _
define it in the implemenation file
implementation
create a XIB file
NSBundle
43. Class methods do not operate on an _ or have any access to _ variables....
Object wrapper around primitive types like int - float - double - BOOl
instance
view controller's initialization method
superclass's
44. A UITableView usually needs three different pieces...
data source - delegate and view controller
method
collection of collections - NSArray of an NSArray
Is a placeholder object
45. Why properties?
references to objects
class's
Instantiation from scratch
safety - subclassability and makes code look more consistent with C structs
46. 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 _.
subview(s)
Functions
view controller
super - self
47. The only reason to temporarily own an object - is...
collection of collections - NSArray of an NSArray
'getters' and 'setters'
to give it someone else - or another object
instance variables
48. 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
49. Defining variables - three parts...
type - name and value
(id)initWithFrame:(CGRect)aRect;
storage
Hash table - Look up objects using a key to get a value.
50. NSValue - class...
Generic object wrapper for other non-object data types
collection of collections - NSArray of an NSArray
NSCoder
Instantiation from scratch