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. Just a floating point number - but we always use it for graphics.
new instances of the class or retrieve some global property of the class.
CGFloat
instance variables
arguments[message]
2. [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.
lowercase - uppercase
data
safety - subclassability and makes code look more consistent with C structs
Generic object wrapper for other non-object data types
3. A responder is responsible for...
receiving and handling events that are associated with it
super - self
setPossessionName
accessors - individually we call them 'getters' and 'setters'
4. A UITableViewController can fill all three roles of...
to get and set variables
data source - view controller and delegate
UIView
class methods - initializers
5. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
CF - Ref
Controller Objects[Managers]
safety - subclassability and makes code look more consistent with C structs
instance variables
6. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
group of global functions already assigned to this class
Instantiation from scratch
in the dealloc - or when a Controller's view is 'unloaded'
Core Graphics Framework
7. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
creating an initializer
instance
you must import the header file of that class
designated initializer
8. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
CGRect bounds - GCPoint center - CGRect frame
you always return the newly initialized object(return self)
unordered collection of objects - objects must be unique
Ready-Made Instance
9. NSArray - important methods...
arguments[message]
header files declare
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
setPossessionName
10. Proceed through the loop - jump back to the top and check again
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Continue
'getters' and 'setters'
initializer
11. Use of class methods - there are three...
initializers
alloc - singleton - informational utility method?
protocol
for inheritance - adopting the superclasses implementation
12. super - is used...
safety - subclassability and makes code look more consistent with C structs
do so in viewDidLoad
collection of collections - NSArray of an NSArray
for inheritance - adopting the superclasses implementation
13. Ready-made instances...
method
Data Encapsulation
selector[message]
calling code that does the instantiation for you
14. Class methods typically either create
implementation
new instances of the class or retrieve some global property of the class.
Hash table - Look up objects using a key to get a value.
is an instance of that class
15. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
Is a placeholder object
CGRect
%d
16. Three ways instances are created...
ready-made instances - instantiation from scratch - and nib based instantiation
retain
message
you always return the newly initialized object(return self)
17. When an NSMutableArray is deallocated - it sends...
receiving and handling events that are associated with it
the message release to all its entries
receiver - selector - arguments
Functions
18. At the top of any implementation file...
to give it someone else - or another object
group of global functions already assigned to this class
you must import the header file of that class
Hash table - Look up objects using a key to get a value.
19. Why properties?
setPossessionName
safety - subclassability and makes code look more consistent with C structs
Object wrapper around primitive types like int - float - double - BOOl
view controller's initialization method
20. The class is responsible for what instance variables the instance has - but not the _ of those variables.
creating an initializer
values
instance variable of an object is valid
receiving and handling events that are associated with it
21. We can use dot notation to reference...
22. In general - class methods tend to be factory methods - that is...
rectangular
methods for generating an instance
declaration and initialization of a variable
Ready-Made Instance
23. NSValue - class...
arguments[message]
pointer to an object
cannot be added to an array
Generic object wrapper for other non-object data types
24. Classes describe two things...
super - self
attributes - behavior
define it in the implemenation file
rectangular
25. NSString objects are usually sent _ rather than _...
retain
upper
copy - retain
Object wrapper around primitive types like int - float - double - BOOl
26. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
'getters' and 'setters'
creating an initializer
UIViewController
27. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
they need to be defined in the implementation file
unordered collection of objects - objects must be unique
pointer - class
28. 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
Functions
view
retain
a single-array can contain objects of different types
29. 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
the array relinquishes ownership of that object and no longer has a pointer to it
parentViewController
only the class and subclasses can access
they need to be defined in the implementation file
30. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
C Functionn
lowercase - uppercase
creates an instance of NSString that holds the character string
dealloc - is called on the object & the object's memory is returned to the heap
31. Typically the designated initializer has parameters for the most important and frequently used _ of an object
pointers
only the class and subclasses can access
Continue
instance variables
32. Name of the method to be executed
safety - subclassability and makes code look more consistent with C structs
to get and set variables
selector[message]
header files declare
33. A _ handles touch events.
UIViewController
delegates and dataSources
Controller Objects[Managers]
view
34. Reducing details to focus on the core concepts
Abstraction
Is a placeholder object
only the class and subclasses can access
size and position
35. A view is a subclass of _
to give it someone else - or another object
NSBundle
Core Graphics Framework
UIView
36. Property List...
Data Encapsulation
Model Objects[Factory Worker]
collection of collections - NSArray of an NSArray
delegates and dataSources
37. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
view controller
data
array[class - NSMutableArray]
38. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
its dataSource
ordered collection of objects - immutable
super - self
initializers
39. Whenever a UINavigationController is about to swap views - it sends out two messages
@synthesize
causes the program to immediately exit from the loop it is executing - whether its for - while or do
view controller
viewWillDissapear: and viewWillAppear:
40. When an object is added to a NSMutableArray - that object is sent the message to retain;...
draw images
@interface ClassName:SuperClassName
the array becomes an owner of that object and has a pointer to it.
ready-made instances - instantiation from scratch - and nib based instantiation
41. if you implemented both the setter and getter - the @synthesize method...
message
setPossessionName
will be ignored
Encapsulation of functionality
42. Asking a class or object to execute a method
values
rectangular
message
to give it someone else - or another object
43. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
Object wrapper around primitive types like int - float - double - BOOl
Model Objects[Factory Worker]
storage
44. UITableViewController is a subclass of...
UIViewController
pointer to an object
parentViewController
C Functionn
45. Object Oriented based analogue to a function is called a...
class
wait until the loop finishes processing the event - at the end release it
method
unordered collection of objects - objects must be unique
46. A function in the objective c library that simply displays or logs it's argument
only the innermost loop in which the break is executed is terminated
Encapsulation of functionality
CGRect
NSLog routine
47. When do we need to release our outlets?
48. The designated initializer calls the _ designated initializer....
49. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
size and position
data source - delegate and view controller
view controller's initialization method
50. Each class picks one _ as it's designated initializer....
message
message
Core Graphics Framework
initializer