SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
subview(s)
delegates and dataSources
header files declare
Core Graphics Framework
2. Name of the method to be executed
a mechanism to enable specific callbacks
selector[message]
an object's property
values
3. UIViewController has several methods that get called at certain times...
unordered collection of objects - objects must be unique
CGRect
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
superclass's
4. NSString *s = @'Hello - World'; is an example of...
Generic object wrapper for other non-object data types
CGFloat
declaration and initialization of a variable
pointer - class
5. Any individual object belonging to any class...
super - self
Is a placeholder object
Core Graphics Framework
is an instance of that class
6. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
for inheritance - adopting the superclasses implementation
nil
parentViewController
7. NSNumber - class...
arguments[message]
you always return the newly initialized object(return self)
ready-made instances - instantiation from scratch - and nib based instantiation
Object wrapper around primitive types like int - float - double - BOOl
8. Values to be supplied as the parameters to the method
header files declare
UIView
arguments[message]
for inheritance - adopting the superclasses implementation
9. The only reason to temporarily own an object - is...
has one root view controller
instance variables
to give it someone else - or another object
values
10. We can use dot notation to reference...
11. A function in the objective c library that simply displays or logs it's argument
implementation
NSLog routine
NSBundle
nil
12. 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.
data source - delegate and view controller
creating an initializer
for inheritance - adopting the superclasses implementation
storage
13. Classes describe two things...
the instance variables
will be ignored
attributes - behavior
selector[message]
14. Never access a view controller's view in that...
15. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
header files declare
unordered collection of objects - objects must be unique
instance variables
16. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
wait until the loop finishes processing the event - at the end release it
Functions
array[class - NSMutableArray]
CGRect
17. 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.
@interface ClassName:SuperClassName
first responder
receiver - selector - arguments
the array relinquishes ownership of that object and no longer has a pointer to it
18. [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.
creates an instance of NSString that holds the character string
declaration and initialization of a variable
Controller Objects[Managers]
data
19. 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.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Data Encapsulation
cannot be added to an array
ready-made instances - instantiation from scratch - and nib based instantiation
20. Object Oriented based analogue to a function is called a...
Generic object wrapper for other non-object data types
instance variable of an object is valid
method
has one root view controller
21. If the view has no subviews - create it programmatically; if it has subviews
accessors - individually we call them 'getters' and 'setters'
create a XIB file
%d
CGRect bounds - GCPoint center - CGRect frame
22. A method in a _ is required unless its preceded by an @optional.
Used to find the time right now or to store past or future time/dates
subview(s)
protocol
size and position
23. Prefixing a character string with an @ symbol [specific - NSString class]...
NSLog routine
do so in viewDidLoad
creates an instance of NSString that holds the character string
ordered collection of objects - immutable
24. A collection object - an ordered list of objects that can be accesed by an index
a single-array can contain objects of different types
declaration and initialization of a variable
array[class - NSMutableArray]
accessors - individually we call them 'getters' and 'setters'
25. In Objective C arrays can hold only...
references to objects
Hash table - Look up objects using a key to get a value.
group of global functions already assigned to this class
receiving and handling events that are associated with it
26. The designated initializer calls the _ designated initializer....
27. How do I implement my drawRect?
Core Graphics Framework
CGRect bounds
object
pointers
28. In Cocoa Touch - the table view asks another object _ what it should display...
class's
Ready-Made Instance
to give it someone else - or another object
its dataSource
29. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
initializer
position
values
30. Designated initializer makes sure that every...
to get and set variables
the message release to all its entries
super - self
instance variable of an object is valid
31. When do you take ownership?...
cannot be added to an array
Anytime you call a method with new - alloc or copy. You own and must release that object.
a mechanism to enable specific callbacks
designated initializer
32. 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 _.
Anytime you call a method with new - alloc or copy. You own and must release that object.
nil
instance
implementation
33. If a break statement is executed from within a set of nested loops...
%d
message
only the innermost loop in which the break is executed is terminated
data
34. id is a...
pointer to an object
designated initializer
protocol
class methods - initializers
35. In the last line of an init method...
data source - delegate and view controller
UIViewController
protocol
you always return the newly initialized object(return self)
36. NSDictionary...
Hash table - Look up objects using a key to get a value.
data
callbacks
'getters' and 'setters'
37. Files Owner...
they need to be defined in the implementation file
Is a placeholder object
alloc - singleton - informational utility method?
instance variables
38. A pointer to the object being asked to execute a method
they need to be defined in the implementation file
receiver[message]
lowercase - uppercase
instance of UIView or one of its subclasses
39. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
delegates and dataSources
self
NSBundle
pointer - class
40. In general - in Objective-C - a reference to an instance is a _ - and the name of the data type of what's at the far end of that pointer is the name of the instances's _.
pointer - class
@synthesize
Abstraction
its dataSource
41. Just a floating point number - but we always use it for graphics.
'getters' and 'setters'
designated initializer
NSCoder
CGFloat
42. NSArray - important methods...
references to objects
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
instance
the instance variables
43. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
has one root view controller
declaration and initialization of a variable
selector[message]
Ready-Made Instance
44. Center and frame are used to _ your view
declaration and initialization of a variable
type - name and value
define it in the implemenation file
position
45. Reference Counting...
collection of collections - NSArray of an NSArray
Abstraction
class methods - initializers
You take ownership for an object you want to keep a pointer to
46. A view is an...
callbacks
instance of UIView or one of its subclasses
type - name and value
superclass's
47. UITableViewController is a subclass of...
UIViewController
Data Encapsulation
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
instance variables
48. A _ handles touch events.
upper
to get and set variables
view
declaration and initialization of a variable
49. Class methods do not operate on an _ or have any access to _ variables....
first responder
instance
create a XIB file
Is a placeholder object
50. Use of class methods - there are three...
ordered collection of objects - immutable
alloc - singleton - informational utility method?
will be ignored
initializer