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]...
values
selector[message]
creates an instance of NSString that holds the character string
alloc - singleton - informational utility method?
2. Name of the method to be executed
storage
selector[message]
Hash table - Look up objects using a key to get a value.
NSLog routine
3. Primitives and C Structures...
view
Object wrapper around primitive types like int - float - double - BOOl
cannot be added to an array
retain
4. 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....
receiver
Model Objects[Factory Worker]
define it in the implemenation file
UIViewController
5. In the last line of an init method...
C Functionn
Core Graphics Framework
you always return the newly initialized object(return self)
methods
6. Categories are an Objective C way to add _ to an existing class without subclassing
class's
'getters' and 'setters'
storage
methods
7. A command directed to an object is called an...
only the class and subclasses can access
C Functionn
message
you must import the header file of that class
8. The integer prefix is...
nil
You take ownership for an object you want to keep a pointer to
is called every time the event occurs
%d
9. How do I implement my drawRect?
Core Graphics Framework
ordered collection of objects - immutable
super - self
receiver
10. 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 _.
storage
UIViewController
pointer - class
data source - delegate and view controller
11. UIImageView is used to...
references to objects
draw images
message
is called every time the event occurs
12. Classes describe two things...
view controller's initialization method
attributes - behavior
message
causes the program to immediately exit from the loop it is executing - whether its for - while or do
13. You use _ to implement the view
receiving and handling events that are associated with it
CGRect bounds
pointers
CGRect
14. 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)
dealloc - is called on the object & the object's memory is returned to the heap
view controller
you must import the header file of that class
15. A UITableView usually needs three different pieces...
declaration and initialization of a variable
NSCoder
data source - delegate and view controller
Used to find the time right now or to store past or future time/dates
16. initWithFrame: the designated initializer for UIView gives the view
they need to be defined in the implementation file
size and position
attributes - behavior
parentViewController
17. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
type - name and value
the array relinquishes ownership of that object and no longer has a pointer to it
wait until the loop finishes processing the event - at the end release it
@interface ClassName:SuperClassName
18. Center and frame are used to _ your view
initializer
position
receiving and handling events that are associated with it
define it in the implemenation file
19. 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
20. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
data
to get and set variables
super - self
21. 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 _.
nil
draw images
@interface ClassName:SuperClassName
protocol
22. Origin of a view's coordinate system is _ left
upper
array[class - NSMutableArray]
initializer
self
23. If the view has no subviews - create it programmatically; if it has subviews
the message release to all its entries
create a XIB file
receiver[message]
a single-array can contain objects of different types
24. In Objective C arrays can hold only...
references to objects
Data Encapsulation
a single-array can contain objects of different types
receiver
25. NSNumber - class...
receiver[message]
super - self
Object wrapper around primitive types like int - float - double - BOOl
CGRect bounds
26. 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
only the innermost loop in which the break is executed is terminated
for inheritance - adopting the superclasses implementation
the array becomes an owner of that object and has a pointer to it.
Functions
27. Three ways instances are created...
Abstraction
copy - retain
they need to be defined in the implementation file
ready-made instances - instantiation from scratch - and nib based instantiation
28. @property declares - and _ implements the setter and getter...
@synthesize
calling code that does the instantiation for you
nil
initializer
29. NSString objects are usually sent _ rather than _...
data
setPossessionName
array[class - NSMutableArray]
copy - retain
30. Also if you send the NSObject the _ message - you own that object.
retain
to give it someone else - or another object
initializer
instance variables
31. Defining variables - three parts...
first responder
selector[message]
data source - view controller and delegate
type - name and value
32. To load a Xib file manually - you use _
NSBundle
will be ignored
@interface ClassName:SuperClassName
class methods - initializers
33. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
to get and set variables
CGRect bounds
Abstraction
34. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
causes the program to immediately exit from the loop it is executing - whether its for - while or do
header files declare
values
the message release to all its entries
35. Core foundation classes are prefixed with _ and suffixed with _
class's
Maintenance of state
view controller
CF - Ref
36. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
CGRect bounds - GCPoint center - CGRect frame
@synthesize
define it in the implemenation file
37. 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
38. Instance Variables by default are called @protected meaning...
collection of collections - NSArray of an NSArray
subview(s)
only the class and subclasses can access
receiver - selector - arguments
39. NSValue - class...
view controller
wait until the loop finishes processing the event - at the end release it
Generic object wrapper for other non-object data types
initializer
40. The only reason to temporarily own an object - is...
Abstraction
NSBundle
to give it someone else - or another object
the array relinquishes ownership of that object and no longer has a pointer to it
41. A method in a _ is required unless its preceded by an @optional.
instance variable of an object is valid
protocol
pointer to an object
instance variables
42. If you have extra work you want to do on the view...
do so in viewDidLoad
initializers
unordered collection of objects - objects must be unique
instance variables
43. 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...
dealloc - is called on the object & the object's memory is returned to the heap
CGRect bounds - GCPoint center - CGRect frame
setPossessionName
declaration and initialization of a variable
44. Class methods typically either create
receiver
instance variables
you must import the header file of that class
new instances of the class or retrieve some global property of the class.
45. Hold data and know nothing about the user interface
Maintenance of state
Model Objects[Factory Worker]
data source - delegate and view controller
only the class and subclasses can access
46. For view controllers that are closely related - like a table view controller and its detail view controller - you can simply give them _ that point to each other.
reuse your cells
references to objects
selector[message]
instance variables
47. When an object is added to a NSMutableArray - that object is sent the message to retain;...
instance variables
Continue
the array becomes an owner of that object and has a pointer to it.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
48. Asking a class or object to execute a method
copy - retain
CGRect bounds
pointer - class
message
49. In general - class methods tend to be factory methods - that is...
the instance variables
the array relinquishes ownership of that object and no longer has a pointer to it
CGFloat
methods for generating an instance
50. Files Owner...
setPossessionName
define it in the implemenation file
Is a placeholder object
do so in viewDidLoad