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. After accessors have been defined in the header file...
they need to be defined in the implementation file
Object wrapper around primitive types like int - float - double - BOOl
data source - view controller and delegate
new instances of the class or retrieve some global property of the class.
2. 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.
create a XIB file
receiver
draw images
creating an initializer
3. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
unordered collection of objects - objects must be unique
dealloc - is called on the object & the object's memory is returned to the heap
@interface ClassName:SuperClassName
Ready-Made Instance
4. UITableViewController is a subclass of...
alloc - singleton - informational utility method?
class's
UIViewController
references to objects
5. In the last line of an init method...
message
you always return the newly initialized object(return self)
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
upper
6. Class methods do not operate on an _ or have any access to _ variables....
instance
group of global functions already assigned to this class
CGRect
view controller's initialization method
7. Reducing details to focus on the core concepts
C Functionn
CGRect bounds - GCPoint center - CGRect frame
Abstraction
instance variable of an object is valid
8. Categories are an Objective C way to add _ to an existing class without subclassing
methods
message
Instantiation from scratch
ready-made instances - instantiation from scratch - and nib based instantiation
9. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
class
CF - Ref
pointer to an object
10. A method in a _ is required unless its preceded by an @optional.
protocol
data source - view controller and delegate
the message release to all its entries
safety - subclassability and makes code look more consistent with C structs
11. 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...
copy - retain
setPossessionName
first responder
super - self
12. Dynamic binding means that when we call a certain object's method - and there are several _ of that method - the right one is figured out at runtime.
implementation
Is a placeholder object
arguments[message]
Generic object wrapper for other non-object data types
13. Use of class methods - there are three...
in the dealloc - or when a Controller's view is 'unloaded'
alloc - singleton - informational utility method?
self
Functions
14. A _ handles touch events.
object
super - self
view
storage
15. if you implemented both the setter and getter - the @synthesize method...
they need to be defined in the implementation file
will be ignored
values
position
16. NSString objects are usually sent _ rather than _...
unordered collection of objects - objects must be unique
define it in the implemenation file
copy - retain
upper
17. An instance is a device for maintaining state. It's a box for _ of data.
storage
'getters' and 'setters'
Abstraction
ordered collection of objects - immutable
18. All objects are accessed using...
retain
NSBundle
pointers
safety - subclassability and makes code look more consistent with C structs
19. Also if you send the NSObject the _ message - you own that object.
receiver - selector - arguments
retain
Ready-Made Instance
data source - view controller and delegate
20. When do you take ownership?...
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.
receiver[message]
CF - Ref
21. 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....
in the dealloc - or when a Controller's view is 'unloaded'
storage
creating an initializer
define it in the implemenation file
22. Any individual object belonging to any class...
will be ignored
references to objects
instance variable of an object is valid
is an instance of that class
23. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
rectangular
they need to be defined in the implementation file
is an instance of that class
C Functionn
24. If the view has no subviews - create it programmatically; if it has subviews
view controller
data source - view controller and delegate
CGRect
create a XIB file
25. Reference Counting...
new instances of the class or retrieve some global property of the class.
creating an initializer
to give it someone else - or another object
You take ownership for an object you want to keep a pointer to
26. 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)
NSBundle
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
retain
27. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
will be ignored
the array becomes an owner of that object and has a pointer to it.
C Functionn
header files declare
28. NSNumber - class...
alloc - singleton - informational utility method?
Object wrapper around primitive types like int - float - double - BOOl
subview(s)
pointer - class
29. Class methods typically either create
NSCoder
instance variable of an object is valid
pointer - class
new instances of the class or retrieve some global property of the class.
30. When an NSMutableArray is deallocated - it sends...
self
arguments[message]
C Functionn
the message release to all its entries
31. A UITableView usually needs three different pieces...
view controller
data source - delegate and view controller
the instance variables
Instantiation from scratch
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 _.
unordered collection of objects - objects must be unique
'getters' and 'setters'
nil
in the dealloc - or when a Controller's view is 'unloaded'
33. In a class method you cannot access...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
class methods - initializers
Hash table - Look up objects using a key to get a value.
the instance variables
34. The only reason to temporarily own an object - is...
to give it someone else - or another object
ordered collection of objects - immutable
viewWillDissapear: and viewWillAppear:
attributes - behavior
35. 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
36. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
parentViewController
values
upper
37. initWithFrame: the designated initializer for UIView gives the view
new instances of the class or retrieve some global property of the class.
data source - view controller and delegate
size and position
view
38. Asking a class or object to execute a method
message
C Functionn
implementation
initializers
39. NSString *s = @'Hello - World'; is an example of...
instance variables
header files declare
you must import the header file of that class
declaration and initialization of a variable
40. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
designated initializer
Object wrapper around primitive types like int - float - double - BOOl
data
41. Ready-made instances...
reuse your cells
type - name and value
the array relinquishes ownership of that object and no longer has a pointer to it
calling code that does the instantiation for you
42. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
43. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
instance
accessors - individually we call them 'getters' and 'setters'
upper
44. A view represents a _ area
data
unordered collection of objects - objects must be unique
attributes - behavior
rectangular
45. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
instance variable of an object is valid
instance
You take ownership for an object you want to keep a pointer to
46. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
47. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
alloc - singleton - informational utility method?
C Functionn
attributes - behavior
48. @property - is using methods...
to get and set variables
receiver[message]
the array becomes an owner of that object and has a pointer to it.
Ready-Made Instance
49. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
only the class and subclasses can access
Hash table - Look up objects using a key to get a value.
Instantiation from scratch
50. The integer prefix is...
%d
only the class and subclasses can access
@synthesize
pointer to an object