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. Hold data and know nothing about the user interface
Hash table - Look up objects using a key to get a value.
type - name and value
Model Objects[Factory Worker]
%d
2. Designated initializer makes sure that every...
collection of collections - NSArray of an NSArray
wait until the loop finishes processing the event - at the end release it
NSBundle
instance variable of an object is valid
3. Typically the designated initializer has parameters for the most important and frequently used _ of an object
accessors - individually we call them 'getters' and 'setters'
instance variables
superclass's
CGRect bounds - GCPoint center - CGRect frame
4. After accessors have been defined in the header file...
data
unordered collection of objects - objects must be unique
they need to be defined in the implementation file
instance variables
5. initWithFrame: the designated initializer for UIView gives the view
unordered collection of objects - objects must be unique
safety - subclassability and makes code look more consistent with C structs
create a XIB file
size and position
6. NSDictionary...
'getters' and 'setters'
Hash table - Look up objects using a key to get a value.
view
copy - retain
7. Each class picks one _ as it's designated initializer....
initializer
declaration and initialization of a variable
calling code that does the instantiation for you
CGFloat
8. 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
9. Views have three properties related to their location and size: @property _ _;
Anytime you call a method with new - alloc or copy. You own and must release that object.
creates an instance of NSString that holds the character string
CGRect bounds - GCPoint center - CGRect frame
collection of collections - NSArray of an NSArray
10. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
designated initializer
only the innermost loop in which the break is executed is terminated
NSCoder
11. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
data source - delegate and view controller
creating an initializer
is called every time the event occurs
receiver
12. UIImageView is used to...
instance
they need to be defined in the implementation file
an object's property
draw images
13. 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
Used to find the time right now or to store past or future time/dates
methods for generating an instance
they need to be defined in the implementation file
14. The only reason to temporarily own an object - is...
to give it someone else - or another object
Anytime you call a method with new - alloc or copy. You own and must release that object.
superclass's
to get and set variables
15. Reference Counting...
super - self
You take ownership for an object you want to keep a pointer to
only the class and subclasses can access
creating an initializer
16. 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
17. In a class method you cannot access...
the instance variables
C Functionn
@interface ClassName:SuperClassName
initializers
18. Classes describe two things...
the message release to all its entries
attributes - behavior
references to objects
copy - retain
19. Whenever a UINavigationController is about to swap views - it sends out two messages
Functions
type - name and value
viewWillDissapear: and viewWillAppear:
CGRect bounds - GCPoint center - CGRect frame
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.
data
is an instance of that class
upper
define it in the implemenation file
21. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
storage
array[class - NSMutableArray]
Data Encapsulation
22. A view represents a _ area
only the innermost loop in which the break is executed is terminated
is an instance of that class
rectangular
variable scope - if defined within a block
23. The root view controller typically creates the next view controller - and the next _ creates the one after that
cannot be added to an array
rectangular
implementation
view controller
24. A view is an...
methods for generating an instance
pointer - class
instance of UIView or one of its subclasses
view
25. What does autorelease mean?
Ready-Made Instance
draw images
wait until the loop finishes processing the event - at the end release it
view controller's initialization method
26. How do I implement my drawRect?
@synthesize
Maintenance of state
methods for generating an instance
Core Graphics Framework
27. A message is always contained in square brackets - and has three parts
upper
receiver - selector - arguments
calling code that does the instantiation for you
CGRect bounds
28. Just a floating point number - but we always use it for graphics.
CGFloat
Hash table - Look up objects using a key to get a value.
Continue
the message release to all its entries
29. Object Oriented based analogue to a function is called a...
@interface ClassName:SuperClassName
Used to find the time right now or to store past or future time/dates
method
view controller
30. 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....
NSLog routine
the array becomes an owner of that object and has a pointer to it.
has one root view controller
define it in the implemenation file
31. Instance Variables by default are called @protected meaning...
pointer - class
copy - retain
nil
only the class and subclasses can access
32. NSDate - class...
Model Objects[Factory Worker]
Used to find the time right now or to store past or future time/dates
receiver[message]
attributes - behavior
33. At the top of any implementation file...
declaration and initialization of a variable
you must import the header file of that class
CGRect bounds - GCPoint center - CGRect frame
Continue
34. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
type - name and value
a single-array can contain objects of different types
will be ignored
35. A collection object - an ordered list of objects that can be accesed by an index
self
array[class - NSMutableArray]
is an instance of that class
Maintenance of state
36. In any application with UINavigationController - the navigation controller...
has one root view controller
pointer - class
the instance variables
selector[message]
37. A function in the objective c library that simply displays or logs it's argument
Instantiation from scratch
viewWillDissapear: and viewWillAppear:
Abstraction
NSLog routine
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.
they need to be defined in the implementation file
calling code that does the instantiation for you
NSLog routine
first responder
39. A UITableView usually needs three different pieces...
will be ignored
pointer to an object
data source - delegate and view controller
attributes - behavior
40. A method in a _ is required unless its preceded by an @optional.
class
receiving and handling events that are associated with it
protocol
receiver[message]
41. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
Generic object wrapper for other non-object data types
C Functionn
define it in the implemenation file
pointer - class
42. A callback is a function that is supplied in advance of an event - and...
superclass's
is called every time the event occurs
Model Objects[Factory Worker]
Core Graphics Framework
43. A responder is responsible for...
implementation
upper
receiving and handling events that are associated with it
Encapsulation of functionality
44. 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
45. Name of the method to be executed
to get and set variables
object
Core Graphics Framework
selector[message]
46. To load a Xib file manually - you use _
CGRect
NSBundle
lowercase - uppercase
receiver[message]
47. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
Encapsulation of functionality
designated initializer
to give it someone else - or another object
has one root view controller
48. Proceed through the loop - jump back to the top and check again
has one root view controller
Continue
@synthesize
CGRect bounds
49. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
instance variables
@interface ClassName:SuperClassName
Controller Objects[Managers]
Generic object wrapper for other non-object data types
50. if you implemented both the setter and getter - the @synthesize method...
group of global functions already assigned to this class
draw images
class methods - initializers
will be ignored