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. NSValue - class...
to give it someone else - or another object
Generic object wrapper for other non-object data types
pointer to an object
an object's property
2. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
accessors - individually we call them 'getters' and 'setters'
creating an initializer
Core Graphics Framework
3. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
Encapsulation of functionality
accessors - individually we call them 'getters' and 'setters'
safety - subclassability and makes code look more consistent with C structs
NSLog routine
4. NSNumber - class...
%d
for inheritance - adopting the superclasses implementation
Object wrapper around primitive types like int - float - double - BOOl
the instance variables
5. initWithFrame: the designated initializer for UIView gives the view
pointer to an object
C Functionn
to give it someone else - or another object
size and position
6. id is a...
pointer to an object
(id)initWithFrame:(CGRect)aRect;
instance of UIView or one of its subclasses
calling code that does the instantiation for you
7. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. Files Owner...
Is a placeholder object
data source - view controller and delegate
pointer to an object
Functions
9. 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
10. NSArray - important methods...
instance variables
Ready-Made Instance
an object's property
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
11. An instance is a device for maintaining state. It's a box for _ of data.
storage
methods
rectangular
Core Graphics Framework
12. A function in the objective c library that simply displays or logs it's argument
Object wrapper around primitive types like int - float - double - BOOl
NSLog routine
CGRect
declaration and initialization of a variable
13. A command directed to an object is called an...
message
cannot be added to an array
Instantiation from scratch
initializer
14. A view is an...
collection of collections - NSArray of an NSArray
@interface ClassName:SuperClassName
instance of UIView or one of its subclasses
you must import the header file of that class
15. Why properties?
C Functionn
safety - subclassability and makes code look more consistent with C structs
view controller
NSLog routine
16. The class is responsible for what instance variables the instance has - but not the _ of those variables.
only the innermost loop in which the break is executed is terminated
new instances of the class or retrieve some global property of the class.
values
method
17. Center and frame are used to _ your view
receiver[message]
Model Objects[Factory Worker]
CGRect bounds
position
18. Number one use of protocols in iOS...
delegates and dataSources
Is a placeholder object
do so in viewDidLoad
Continue
19. Hold data and know nothing about the user interface
upper
message
data source - delegate and view controller
Model Objects[Factory Worker]
20. Classes describe two things...
Used to find the time right now or to store past or future time/dates
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance variables
attributes - behavior
21. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
type - name and value
Continue
lowercase - uppercase
message
22. Each class picks one _ as it's designated initializer....
you always return the newly initialized object(return self)
CGRect bounds - GCPoint center - CGRect frame
reuse your cells
initializer
23. Defining variables - three parts...
type - name and value
Data Encapsulation
to give it someone else - or another object
Is a placeholder object
24. Origin of a view's coordinate system is _ left
upper
(id)initWithFrame:(CGRect)aRect;
Used to find the time right now or to store past or future time/dates
variable scope - if defined within a block
25. 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.
viewWillDissapear: and viewWillAppear:
instance variables
values
view controller
26. If the view has no subviews - create it programmatically; if it has subviews
pointers
create a XIB file
NSCoder
in the dealloc - or when a Controller's view is 'unloaded'
27. To load a Xib file manually - you use _
NSBundle
callbacks
class methods - initializers
Encapsulation of functionality
28. When an object is removed from an NSMutableArray - that object is sent the message release;...
viewWillDissapear: and viewWillAppear:
setPossessionName
method
the array relinquishes ownership of that object and no longer has a pointer to it
29. @property declares - and _ implements the setter and getter...
receiver - selector - arguments
object
@synthesize
accessors - individually we call them 'getters' and 'setters'
30. Categories are an Objective C way to add _ to an existing class without subclassing
safety - subclassability and makes code look more consistent with C structs
size and position
methods
data source - delegate and view controller
31. All objects are accessed using...
pointers
collection of collections - NSArray of an NSArray
CGRect
delegates and dataSources
32. Use of class methods - there are three...
CGFloat
alloc - singleton - informational utility method?
create a XIB file
collection of collections - NSArray of an NSArray
33. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
You take ownership for an object you want to keep a pointer to
references to objects
viewWillDissapear: and viewWillAppear:
34. The only reason to temporarily own an object - is...
define it in the implemenation file
upper
to give it someone else - or another object
CGRect bounds
35. In any application with UINavigationController - the navigation controller...
Functions
has one root view controller
view
initializers
36. 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.
define it in the implemenation file
Data Encapsulation
ordered collection of objects - immutable
class
37. @property - is using methods...
declaration and initialization of a variable
only the innermost loop in which the break is executed is terminated
data source - view controller and delegate
to get and set variables
38. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
initializer
storage
receiver[message]
39. Class methods do not operate on an _ or have any access to _ variables....
instance
you always return the newly initialized object(return self)
is called every time the event occurs
instance variables
40. In general - class methods tend to be factory methods - that is...
Hash table - Look up objects using a key to get a value.
causes the program to immediately exit from the loop it is executing - whether its for - while or do
methods for generating an instance
C Functionn
41. class methods...
Controller Objects[Managers]
new instances of the class or retrieve some global property of the class.
position
group of global functions already assigned to this class
42. Object Oriented based analogue to a function is called a...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
NSLog routine
instance
method
43. In a class method you cannot access...
class's
Generic object wrapper for other non-object data types
NSCoder
the instance variables
44. Any individual object belonging to any class...
dealloc - is called on the object & the object's memory is returned to the heap
instance variable of an object is valid
class's
is an instance of that class
45. In the last line of an init method...
implementation
is an instance of that class
you always return the newly initialized object(return self)
create a XIB file
46. 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...
an object's property
setPossessionName
to get and set variables
data source - view controller and delegate
47. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
callbacks
size and position
NSCoder
attributes - behavior
48. Values to be supplied as the parameters to the method
arguments[message]
initializer
class's
its dataSource
49. At the top of any implementation file...
you must import the header file of that class
parentViewController
ready-made instances - instantiation from scratch - and nib based instantiation
Continue
50. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
lowercase - uppercase
receiver
Hash table - Look up objects using a key to get a value.
implementation