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. 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
Used to find the time right now or to store past or future time/dates
data
Generic object wrapper for other non-object data types
Functions
2. Defining variables - three parts...
you always return the newly initialized object(return self)
retain
lowercase - uppercase
type - name and value
3. When do you take ownership?...
data
safety - subclassability and makes code look more consistent with C structs
a single-array can contain objects of different types
Anytime you call a method with new - alloc or copy. You own and must release that object.
4. NSArray - class...
subview(s)
Functions
ordered collection of objects - immutable
calling code that does the instantiation for you
5. 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
6. The only reason to temporarily own an object - is...
to give it someone else - or another object
an object's property
do so in viewDidLoad
the message release to all its entries
7. A pointer to the object being asked to execute a method
Core Graphics Framework
unordered collection of objects - objects must be unique
receiver[message]
data
8. UIImageView is used to...
is called every time the event occurs
method
receiving and handling events that are associated with it
draw images
9. A method in a _ is required unless its preceded by an @optional.
the message release to all its entries
NSLog routine
protocol
the array relinquishes ownership of that object and no longer has a pointer to it
10. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
You take ownership for an object you want to keep a pointer to
class methods - initializers
%d
11. Hold data and know nothing about the user interface
Instantiation from scratch
its dataSource
instance variables
Model Objects[Factory Worker]
12. Three ways instances are created...
references to objects
the message release to all its entries
is an instance of that class
ready-made instances - instantiation from scratch - and nib based instantiation
13. In Objective C arrays can hold only...
delegates and dataSources
receiver[message]
references to objects
draw images
14. Reference Counting...
You take ownership for an object you want to keep a pointer to
Core Graphics Framework
in the dealloc - or when a Controller's view is 'unloaded'
Model Objects[Factory Worker]
15. In Cocoa Touch - the table view asks another object _ what it should display...
instance variables
its dataSource
UIView
array[class - NSMutableArray]
16. Only exists within the statement block there defined - outside of the block is fine
Abstraction
variable scope - if defined within a block
(id)initWithFrame:(CGRect)aRect;
Object wrapper around primitive types like int - float - double - BOOl
17. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
the array becomes an owner of that object and has a pointer to it.
@interface ClassName:SuperClassName
safety - subclassability and makes code look more consistent with C structs
18. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
type - name and value
parentViewController
draw images
19. Instance Variables by default are called @protected meaning...
group of global functions already assigned to this class
its dataSource
only the class and subclasses can access
super - self
20. @property declares - and _ implements the setter and getter...
declaration and initialization of a variable
copy - retain
Anytime you call a method with new - alloc or copy. You own and must release that object.
@synthesize
21. UIView - designated initializer...
receiving and handling events that are associated with it
(id)initWithFrame:(CGRect)aRect;
Model Objects[Factory Worker]
for inheritance - adopting the superclasses implementation
22. Ready-made instances...
header files declare
calling code that does the instantiation for you
CGRect bounds
group of global functions already assigned to this class
23. The integer prefix is...
you always return the newly initialized object(return self)
%d
copy - retain
CF - Ref
24. 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 _.
CGFloat
size and position
nil
group of global functions already assigned to this class
25. If you have extra work you want to do on the view...
CF - Ref
draw images
do so in viewDidLoad
arguments[message]
26. Just a floating point number - but we always use it for graphics.
pointer - class
Abstraction
retain
CGFloat
27. You use _ to implement the view
self
CGRect bounds
CF - Ref
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
28. 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
29. 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)
class methods - initializers
UIViewController
methods for generating an instance
30. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
only the innermost loop in which the break is executed is terminated
to give it someone else - or another object
has one root view controller
31. 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.
viewWillDissapear: and viewWillAppear:
Continue
CF - Ref
first responder
32. Any individual object belonging to any class...
define it in the implemenation file
is an instance of that class
rectangular
do so in viewDidLoad
33. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
Maintenance of state
unordered collection of objects - objects must be unique
methods
34. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
storage
CGRect bounds - GCPoint center - CGRect frame
its dataSource
35. Also - because arrays only hold a pointer to an object...
callbacks
CGFloat
setPossessionName
a single-array can contain objects of different types
36. 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
37. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
initializer
declaration and initialization of a variable
NSLog routine
38. A view represents a _ area
Hash table - Look up objects using a key to get a value.
rectangular
'getters' and 'setters'
create a XIB file
39. Primitives and C Structures...
data source - view controller and delegate
the message release to all its entries
cannot be added to an array
'getters' and 'setters'
40. UITableViewController is a subclass of...
'getters' and 'setters'
only the innermost loop in which the break is executed is terminated
UIViewController
receiver
41. 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.
first responder
Data Encapsulation
wait until the loop finishes processing the event - at the end release it
callbacks
42. NSString objects are usually sent _ rather than _...
copy - retain
superclass's
@interface ClassName:SuperClassName
Continue
43. Use of class methods - there are three...
ordered collection of objects - immutable
the instance variables
CGRect
alloc - singleton - informational utility method?
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. Why properties?
is called every time the event occurs
the array relinquishes ownership of that object and no longer has a pointer to it
references to objects
safety - subclassability and makes code look more consistent with C structs
46. NSArray - important methods...
size and position
Is a placeholder object
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
will be ignored
47. 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
Data Encapsulation
position
has one root view controller
Encapsulation of functionality
48. super - is used...
for inheritance - adopting the superclasses implementation
view controller
array[class - NSMutableArray]
the instance variables
49. A responder is responsible for...
Core Graphics Framework
instance
initializer
receiving and handling events that are associated with it
50. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
values
Model Objects[Factory Worker]
type - name and value
receiver