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. 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
2. NSValue - class...
pointer to an object
subview(s)
Generic object wrapper for other non-object data types
instance variable of an object is valid
3. Also if you send the NSObject the _ message - you own that object.
retain
the array relinquishes ownership of that object and no longer has a pointer to it
class methods - initializers
CF - Ref
4. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
initializer
size and position
the array becomes an owner of that object and has a pointer to it.
5. UITableViewController is a subclass of...
UIViewController
implementation
in the dealloc - or when a Controller's view is 'unloaded'
subview(s)
6. Center and frame are used to _ your view
upper
creating an initializer
position
the array relinquishes ownership of that object and no longer has a pointer to it
7. NSNumber - class...
superclass's
Object wrapper around primitive types like int - float - double - BOOl
@interface ClassName:SuperClassName
arguments[message]
8. NSString objects are usually sent _ rather than _...
copy - retain
subview(s)
unordered collection of objects - objects must be unique
pointer - class
9. In any application with UINavigationController - the navigation controller...
parentViewController
the array becomes an owner of that object and has a pointer to it.
has one root view controller
view controller's initialization method
10. 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
will be ignored
Functions
is an instance of that class
UIViewController
11. Core foundation classes are prefixed with _ and suffixed with _
only the innermost loop in which the break is executed is terminated
Data Encapsulation
CF - Ref
callbacks
12. 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.
delegates and dataSources
implementation
object
NSLog routine
13. A responder is responsible for...
receiving and handling events that are associated with it
@synthesize
do so in viewDidLoad
Data Encapsulation
14. 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
15. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
safety - subclassability and makes code look more consistent with C structs
CGRect bounds - GCPoint center - CGRect frame
reuse your cells
designated initializer
16. A view is an...
methods for generating an instance
instance of UIView or one of its subclasses
%d
Core Graphics Framework
17. Designated initializer makes sure that every...
dealloc - is called on the object & the object's memory is returned to the heap
instance variable of an object is valid
pointer - class
receiver
18. 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
class
dealloc - is called on the object & the object's memory is returned to the heap
instance variables
a mechanism to enable specific callbacks
19. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
the instance variables
initializers
variable scope - if defined within a block
ready-made instances - instantiation from scratch - and nib based instantiation
20. The class is responsible for what instance variables the instance has - but not the _ of those variables.
new instances of the class or retrieve some global property of the class.
position
values
pointer to an object
21. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
cannot be added to an array
Object wrapper around primitive types like int - float - double - BOOl
C Functionn
Is a placeholder object
22. 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
23. Only exists within the statement block there defined - outside of the block is fine
they need to be defined in the implementation file
instance variable of an object is valid
Continue
variable scope - if defined within a block
24. Proceed through the loop - jump back to the top and check again
Continue
creating an initializer
NSLog routine
type - name and value
25. UIImageView is used to...
Used to find the time right now or to store past or future time/dates
first responder
draw images
is called every time the event occurs
26. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
@synthesize
setPossessionName
super - self
cannot be added to an array
27. A command directed to an object is called an...
delegates and dataSources
message
calling code that does the instantiation for you
Maintenance of state
28. When making a tableView always...
they need to be defined in the implementation file
reuse your cells
instance variables
methods
29. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
declaration and initialization of a variable
initializer
create a XIB file
30. In the last line of an init method...
an object's property
you always return the newly initialized object(return self)
selector[message]
group of global functions already assigned to this class
31. Prefixing a character string with an @ symbol [specific - NSString class]...
initializer
draw images
UIViewController
creates an instance of NSString that holds the character string
32. Why properties?
values
superclass's
safety - subclassability and makes code look more consistent with C structs
retain
33. Primitives and C Structures...
accessors - individually we call them 'getters' and 'setters'
cannot be added to an array
they need to be defined in the implementation file
instance
34. A message is always contained in square brackets - and has three parts
CGRect bounds
Hash table - Look up objects using a key to get a value.
retain
receiver - selector - arguments
35. 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
36. How do I implement my drawRect?
class
Core Graphics Framework
@interface ClassName:SuperClassName
designated initializer
37. 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....
upper
Hash table - Look up objects using a key to get a value.
array[class - NSMutableArray]
define it in the implemenation file
38. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
unordered collection of objects - objects must be unique
designated initializer
@interface ClassName:SuperClassName
39. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
to give it someone else - or another object
subview(s)
retain
40. 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
parentViewController
Instantiation from scratch
receiver - selector - arguments
they need to be defined in the implementation file
41. You use _ to implement the view
designated initializer
Encapsulation of functionality
CGRect bounds
pointer - class
42. 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.
only the class and subclasses can access
Anytime you call a method with new - alloc or copy. You own and must release that object.
cannot be added to an array
creating an initializer
43. super - is used...
copy - retain
for inheritance - adopting the superclasses implementation
safety - subclassability and makes code look more consistent with C structs
%d
44. A _ handles touch events.
parentViewController
declaration and initialization of a variable
subview(s)
view
45. 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 _.
Functions
nil
creates an instance of NSString that holds the character string
to get and set variables
46. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
define it in the implemenation file
object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
is called every time the event occurs
47. A pointer to the object being asked to execute a method
accessors - individually we call them 'getters' and 'setters'
protocol
(id)initWithFrame:(CGRect)aRect;
receiver[message]
48. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
49. UIViewController has several methods that get called at certain times...
ordered collection of objects - immutable
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Data Encapsulation
NSBundle
50. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
to get and set variables
Encapsulation of functionality
view controller
header files declare