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. Prefixing a character string with an @ symbol [specific - NSString class]...
self
creates an instance of NSString that holds the character string
instance variables
retain
2. 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.
class's
they need to be defined in the implementation file
nil
3. When an NSMutableArray is deallocated - it sends...
self
draw images
collection of collections - NSArray of an NSArray
the message release to all its entries
4. initWithFrame: the designated initializer for UIView gives the view
methods for generating an instance
a mechanism to enable specific callbacks
size and position
will be ignored
5. A collection object - an ordered list of objects that can be accesed by an index
creating an initializer
array[class - NSMutableArray]
view controller
to get and set variables
6. Asking a class or object to execute a method
Model Objects[Factory Worker]
message
rectangular
is called every time the event occurs
7. Execution of the break statement...
Continue
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance
calling code that does the instantiation for you
8. Core foundation classes are prefixed with _ and suffixed with _
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
first responder
header files declare
CF - Ref
9. A view is a subclass of _
NSBundle
class
Is a placeholder object
UIView
10. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
11. If you have extra work you want to do on the view...
initializer
do so in viewDidLoad
initializers
only the class and subclasses can access
12. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
draw images
(id)initWithFrame:(CGRect)aRect;
@interface ClassName:SuperClassName
nil
13. Object Oriented based analogue to a function is called a...
storage
Maintenance of state
upper
method
14. Ready-made instances...
protocol
view controller's initialization method
calling code that does the instantiation for you
Generic object wrapper for other non-object data types
15. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
Maintenance of state
subview(s)
designated initializer
16. A UITableViewController can fill all three roles of...
data source - view controller and delegate
only the class and subclasses can access
pointers
Abstraction
17. Each class picks one _ as it's designated initializer....
do so in viewDidLoad
%d
initializer
delegates and dataSources
18. A message is always contained in square brackets - and has three parts
UIViewController
receiver - selector - arguments
instance
Hash table - Look up objects using a key to get a value.
19. UITableViewController is a subclass of...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Functions
the array becomes an owner of that object and has a pointer to it.
UIViewController
20. Center and frame are used to _ your view
wait until the loop finishes processing the event - at the end release it
UIViewController
draw images
position
21. 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...
%d
is called every time the event occurs
you must import the header file of that class
setPossessionName
22. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
parentViewController
you always return the newly initialized object(return self)
is an instance of that class
23. Views have three properties related to their location and size: @property _ _;
pointer to an object
message
CGRect bounds - GCPoint center - CGRect frame
an object's property
24. At the top of any implementation file...
you must import the header file of that class
references to objects
they need to be defined in the implementation file
nil
25. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
class's
Data Encapsulation
variable scope - if defined within a block
26. @property - is using methods...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
to get and set variables
methods
declaration and initialization of a variable
27. Any individual object belonging to any class...
delegates and dataSources
You take ownership for an object you want to keep a pointer to
will be ignored
is an instance of that class
28. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
CGFloat
Controller Objects[Managers]
method
safety - subclassability and makes code look more consistent with C structs
29. A command directed to an object is called an...
view
message
(id)initWithFrame:(CGRect)aRect;
@interface ClassName:SuperClassName
30. 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.
super - self
copy - retain
first responder
self
31. When making a tableView always...
reuse your cells
instance variables
setPossessionName
will be ignored
32. You use _ to implement the view
CGRect bounds
C Functionn
do so in viewDidLoad
Anytime you call a method with new - alloc or copy. You own and must release that object.
33. Use of class methods - there are three...
pointer to an object
message
values
alloc - singleton - informational utility method?
34. NSValue - class...
view
Generic object wrapper for other non-object data types
CF - Ref
class
35. In the last line of an init method...
lowercase - uppercase
you always return the newly initialized object(return self)
values
a mechanism to enable specific callbacks
36. Three ways instances are created...
an object's property
position
creates an instance of NSString that holds the character string
ready-made instances - instantiation from scratch - and nib based instantiation
37. Classes describe two things...
the message release to all its entries
define it in the implemenation file
attributes - behavior
copy - retain
38. NSString *s = @'Hello - World'; is an example of...
UIView
NSBundle
declaration and initialization of a variable
create a XIB file
39. Just a floating point number - but we always use it for graphics.
%d
CGFloat
upper
for inheritance - adopting the superclasses implementation
40. Reducing details to focus on the core concepts
Anytime you call a method with new - alloc or copy. You own and must release that object.
initializer
Instantiation from scratch
Abstraction
41. 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
Maintenance of state
superclass's
creates an instance of NSString that holds the character string
a mechanism to enable specific callbacks
42. Why properties?
UIView
safety - subclassability and makes code look more consistent with C structs
instance of UIView or one of its subclasses
subview(s)
43. Defining variables - three parts...
instance variables
type - name and value
superclass's
Hash table - Look up objects using a key to get a value.
44. Designated initializer makes sure that every...
instance variable of an object is valid
Hash table - Look up objects using a key to get a value.
self
a mechanism to enable specific callbacks
45. To load a Xib file manually - you use _
array[class - NSMutableArray]
NSBundle
size and position
do so in viewDidLoad
46. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
@interface ClassName:SuperClassName
first responder
they need to be defined in the implementation file
define it in the implemenation file
47. 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
define it in the implemenation file
superclass's
instance variables
48. 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 _.
class's
self
references to objects
pointer - class
49. In general - class methods tend to be factory methods - that is...
its dataSource
methods for generating an instance
Abstraction
you always return the newly initialized object(return self)
50. Class methods typically either create
superclass's
new instances of the class or retrieve some global property of the class.
initializers
Ready-Made Instance