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. 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
2. if you implemented both the setter and getter - the @synthesize method...
will be ignored
Data Encapsulation
only the class and subclasses can access
rectangular
3. class methods...
Maintenance of state
CGFloat
is called every time the event occurs
group of global functions already assigned to this class
4. Instance Variables by default are called @protected meaning...
unordered collection of objects - objects must be unique
only the class and subclasses can access
lowercase - uppercase
variable scope - if defined within a block
5. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
instance
first responder
selector[message]
object
6. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
(id)initWithFrame:(CGRect)aRect;
C Functionn
data source - view controller and delegate
class
7. 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 _.
instance variable of an object is valid
subview(s)
variable scope - if defined within a block
wait until the loop finishes processing the event - at the end release it
8. Origin of a view's coordinate system is _ left
instance variable of an object is valid
data
%d
upper
9. @property declares - and _ implements the setter and getter...
instance variables
@synthesize
'getters' and 'setters'
Functions
10. Also - because arrays only hold a pointer to an object...
data source - delegate and view controller
a single-array can contain objects of different types
only the class and subclasses can access
Data Encapsulation
11. In Objective C arrays can hold only...
view controller
references to objects
instance variable of an object is valid
values
12. Designated initializer makes sure that every...
CGRect
lowercase - uppercase
ready-made instances - instantiation from scratch - and nib based instantiation
instance variable of an object is valid
13. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
14. Typically the designated initializer has parameters for the most important and frequently used _ of an object
selector[message]
alloc - singleton - informational utility method?
instance variables
Object wrapper around primitive types like int - float - double - BOOl
15. You use _ to implement the view
you always return the newly initialized object(return self)
CGRect bounds
Hash table - Look up objects using a key to get a value.
for inheritance - adopting the superclasses implementation
16. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
data source - delegate and view controller
CGRect bounds - GCPoint center - CGRect frame
pointers
17. Proceed through the loop - jump back to the top and check again
define it in the implemenation file
instance variables
Continue
ready-made instances - instantiation from scratch - and nib based instantiation
18. Reference Counting...
@interface ClassName:SuperClassName
initializers
a single-array can contain objects of different types
You take ownership for an object you want to keep a pointer to
19. 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
class's
UIView
pointers
20. When an NSMutableArray is deallocated - it sends...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance variable of an object is valid
the message release to all its entries
initializer
21. If a break statement is executed from within a set of nested loops...
pointer to an object
only the class and subclasses can access
only the innermost loop in which the break is executed is terminated
pointer - class
22. Asking a class or object to execute a method
methods for generating an instance
Functions
object
message
23. 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.
instance variable of an object is valid
Data Encapsulation
CGRect bounds
instance variables
24. NSNumber - class...
NSCoder
Maintenance of state
Controller Objects[Managers]
Object wrapper around primitive types like int - float - double - BOOl
25. super - is used...
message
data
superclass's
for inheritance - adopting the superclasses implementation
26. Categories are an Objective C way to add _ to an existing class without subclassing
methods
parentViewController
nil
size and position
27. Why properties?
%d
receiver[message]
designated initializer
safety - subclassability and makes code look more consistent with C structs
28. Center and frame are used to _ your view
Data Encapsulation
Hash table - Look up objects using a key to get a value.
arguments[message]
position
29. Defining variables - three parts...
accessors - individually we call them 'getters' and 'setters'
size and position
ordered collection of objects - immutable
type - name and value
30. NSValue - class...
Generic object wrapper for other non-object data types
the array becomes an owner of that object and has a pointer to it.
parentViewController
instance of UIView or one of its subclasses
31. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
parentViewController
UIViewController
calling code that does the instantiation for you
initializers
32. Each _ has a 'designated' initializer method....
class
accessors - individually we call them 'getters' and 'setters'
data source - view controller and delegate
ordered collection of objects - immutable
33. id is a...
pointer to an object
cannot be added to an array
methods for generating an instance
a mechanism to enable specific callbacks
34. A _ handles touch events.
view
UIViewController
Functions
copy - retain
35. Values to be supplied as the parameters to the method
Ready-Made Instance
ordered collection of objects - immutable
CGFloat
arguments[message]
36. Primitives and C Structures...
accessors - individually we call them 'getters' and 'setters'
message
Abstraction
cannot be added to an array
37. What does autorelease mean?
is an instance of that class
selector[message]
reuse your cells
wait until the loop finishes processing the event - at the end release it
38. The only reason to temporarily own an object - is...
to give it someone else - or another object
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
receiver
Ready-Made Instance
39. Name of the method to be executed
selector[message]
callbacks
C Functionn
do so in viewDidLoad
40. 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
data source - view controller and delegate
Maintenance of state
wait until the loop finishes processing the event - at the end release it
in the dealloc - or when a Controller's view is 'unloaded'
41. A method in a _ is required unless its preceded by an @optional.
a single-array can contain objects of different types
protocol
class's
pointer to an object
42. UIImageView is used to...
draw images
an object's property
do so in viewDidLoad
cannot be added to an array
43. NSDictionary...
class methods - initializers
Hash table - Look up objects using a key to get a value.
wait until the loop finishes processing the event - at the end release it
receiver - selector - arguments
44. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
the message release to all its entries
methods
unordered collection of objects - objects must be unique
45. 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
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Encapsulation of functionality
super - self
46. A function in the objective c library that simply displays or logs it's argument
you always return the newly initialized object(return self)
class methods - initializers
NSLog routine
subview(s)
47. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
receiving and handling events that are associated with it
new instances of the class or retrieve some global property of the class.
CGFloat
48. Any individual object belonging to any class...
is an instance of that class
designated initializer
declaration and initialization of a variable
view controller
49. UITableViewController is a subclass of...
Instantiation from scratch
Abstraction
UIViewController
pointer - class
50. In Cocoa Touch - the table view asks another object _ what it should display...
UIViewController
CGRect
its dataSource
designated initializer