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. 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
2. You use _ to implement the view
CGRect bounds
arguments[message]
the array relinquishes ownership of that object and no longer has a pointer to it
instance of UIView or one of its subclasses
3. A UITableViewController can fill all three roles of...
CGRect bounds
method
(id)initWithFrame:(CGRect)aRect;
data source - view controller and delegate
4. A pointer to the object being asked to execute a method
instance variables
ordered collection of objects - immutable
receiver[message]
implementation
5. Execution of the break statement...
pointer to an object
causes the program to immediately exit from the loop it is executing - whether its for - while or do
class methods - initializers
super - self
6. NSString objects are usually sent _ rather than _...
storage
copy - retain
initializers
a single-array can contain objects of different types
7. In a class method you cannot access...
(id)initWithFrame:(CGRect)aRect;
UIView
the instance variables
callbacks
8. Designated initializer makes sure that every...
Core Graphics Framework
receiver
a single-array can contain objects of different types
instance variable of an object is valid
9. If you have extra work you want to do on the view...
do so in viewDidLoad
safety - subclassability and makes code look more consistent with C structs
subview(s)
creating an initializer
10. UIImageView is used to...
Maintenance of state
the array relinquishes ownership of that object and no longer has a pointer to it
%d
draw images
11. A view is a subclass of _
method
to give it someone else - or another object
callbacks
UIView
12. When do you take ownership?...
only the class and subclasses can access
class methods - initializers
Controller Objects[Managers]
Anytime you call a method with new - alloc or copy. You own and must release that object.
13. Only exists within the statement block there defined - outside of the block is fine
methods
type - name and value
its dataSource
variable scope - if defined within a block
14. 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
15. A _ handles touch events.
designated initializer
view
receiver[message]
superclass's
16. Core foundation classes are prefixed with _ and suffixed with _
CF - Ref
parentViewController
references to objects
instance variables
17. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
data
declaration and initialization of a variable
arguments[message]
designated initializer
18. Name of the method to be executed
selector[message]
Ready-Made Instance
type - name and value
Controller Objects[Managers]
19. A collection object - an ordered list of objects that can be accesed by an index
instance variable of an object is valid
array[class - NSMutableArray]
superclass's
CGRect
20. In the last line of an init method...
only the innermost loop in which the break is executed is terminated
you always return the newly initialized object(return self)
methods
rectangular
21. Defining variables - three parts...
will be ignored
type - name and value
to get and set variables
Continue
22. Three ways instances are created...
collection of collections - NSArray of an NSArray
creates an instance of NSString that holds the character string
safety - subclassability and makes code look more consistent with C structs
ready-made instances - instantiation from scratch - and nib based instantiation
23. Delegation is an object oriented approach to
CGFloat
cannot be added to an array
callbacks
ordered collection of objects - immutable
24. In any application with UINavigationController - the navigation controller...
has one root view controller
declaration and initialization of a variable
receiver - selector - arguments
nil
25. If the view has no subviews - create it programmatically; if it has subviews
message
copy - retain
create a XIB file
receiver - selector - arguments
26. Views have three properties related to their location and size: @property _ _;
only the innermost loop in which the break is executed is terminated
CGRect bounds - GCPoint center - CGRect frame
Anytime you call a method with new - alloc or copy. You own and must release that object.
message
27. If a break statement is executed from within a set of nested loops...
dealloc - is called on the object & the object's memory is returned to the heap
instance variables
only the innermost loop in which the break is executed is terminated
group of global functions already assigned to this class
28. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
first responder
is called every time the event occurs
super - self
Hash table - Look up objects using a key to get a value.
29. @property - is using methods...
Object wrapper around primitive types like int - float - double - BOOl
to get and set variables
creates an instance of NSString that holds the character string
the array becomes an owner of that object and has a pointer to it.
30. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Object wrapper around primitive types like int - float - double - BOOl
Maintenance of state
receiver
nil
31. In Objective C - the name of a setter method is set plus the name of the instance variable it is changing - for example PossessionName would be...
setPossessionName
message
do so in viewDidLoad
they need to be defined in the implementation file
32. Just a floating point number - but we always use it for graphics.
CGFloat
self
will be ignored
(id)initWithFrame:(CGRect)aRect;
33. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
superclass's
callbacks
Ready-Made Instance
pointers
34. Files Owner...
instance variables
to give it someone else - or another object
Is a placeholder object
position
35. Reference Counting...
variable scope - if defined within a block
class
You take ownership for an object you want to keep a pointer to
Continue
36. Why properties?
safety - subclassability and makes code look more consistent with C structs
method
a mechanism to enable specific callbacks
an object's property
37. Use of class methods - there are three...
alloc - singleton - informational utility method?
receiver - selector - arguments
subview(s)
unordered collection of objects - objects must be unique
38. Hold data and know nothing about the user interface
unordered collection of objects - objects must be unique
type - name and value
Model Objects[Factory Worker]
receiver - selector - arguments
39. When an NSMutableArray is deallocated - it sends...
Functions
only the innermost loop in which the break is executed is terminated
attributes - behavior
the message release to all its entries
40. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
reuse your cells
Is a placeholder object
ordered collection of objects - immutable
41. NSArray - important methods...
Abstraction
is an instance of that class
collection of collections - NSArray of an NSArray
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
42. 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
for inheritance - adopting the superclasses implementation
Maintenance of state
'getters' and 'setters'
will be ignored
43. A function in the objective c library that simply displays or logs it's argument
to give it someone else - or another object
implementation
NSLog routine
only the class and subclasses can access
44. 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 _.
calling code that does the instantiation for you
subview(s)
a mechanism to enable specific callbacks
implementation
45. Origin of a view's coordinate system is _ left
UIView
for inheritance - adopting the superclasses implementation
upper
to get and set variables
46. 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
47. Primitives and C Structures...
view
cannot be added to an array
self
to give it someone else - or another object
48. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
view
lowercase - uppercase
only the class and subclasses can access
values
49. How do I implement my drawRect?
Model Objects[Factory Worker]
Core Graphics Framework
size and position
(id)initWithFrame:(CGRect)aRect;
50. A message is always contained in square brackets - and has three parts
UIViewController
they need to be defined in the implementation file
new instances of the class or retrieve some global property of the class.
receiver - selector - arguments