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. @property declares - and _ implements the setter and getter...
receiver
position
new instances of the class or retrieve some global property of the class.
@synthesize
2. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
implementation
arguments[message]
(id)initWithFrame:(CGRect)aRect;
3. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
accessors - individually we call them 'getters' and 'setters'
protocol
class
Controller Objects[Managers]
4. initWithFrame: the designated initializer for UIView gives the view
size and position
wait until the loop finishes processing the event - at the end release it
dealloc - is called on the object & the object's memory is returned to the heap
callbacks
5. super - is used...
position
storage
CGRect bounds
for inheritance - adopting the superclasses implementation
6. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
@interface ClassName:SuperClassName
instance variables
method
super - self
7. NSValue - class...
accessors - individually we call them 'getters' and 'setters'
arguments[message]
receiving and handling events that are associated with it
Generic object wrapper for other non-object data types
8. Why properties?
NSBundle
%d
you must import the header file of that class
safety - subclassability and makes code look more consistent with C structs
9. Defining variables - three parts...
declaration and initialization of a variable
protocol
class's
type - name and value
10. 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
instance of UIView or one of its subclasses
superclass's
You take ownership for an object you want to keep a pointer to
Functions
11. An instance is a device for maintaining state. It's a box for _ of data.
selector[message]
variable scope - if defined within a block
storage
the message release to all its entries
12. 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...
setPossessionName
the array relinquishes ownership of that object and no longer has a pointer to it
draw images
class's
13. After accessors have been defined in the header file...
they need to be defined in the implementation file
creates an instance of NSString that holds the character string
Is a placeholder object
designated initializer
14. Just a floating point number - but we always use it for graphics.
Controller Objects[Managers]
Hash table - Look up objects using a key to get a value.
CGFloat
You take ownership for an object you want to keep a pointer to
15. 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.
values
to get and set variables
Data Encapsulation
type - name and value
16. Each _ has a 'designated' initializer method....
Generic object wrapper for other non-object data types
view controller's initialization method
class
new instances of the class or retrieve some global property of the class.
17. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
@synthesize
designated initializer
CGRect
18. if you implemented both the setter and getter - the @synthesize method...
method
subview(s)
data
will be ignored
19. Property List...
subview(s)
superclass's
collection of collections - NSArray of an NSArray
the array relinquishes ownership of that object and no longer has a pointer to it
20. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
they need to be defined in the implementation file
class methods - initializers
Abstraction
Generic object wrapper for other non-object data types
21. 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
22. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
array[class - NSMutableArray]
you must import the header file of that class
class
23. If a break statement is executed from within a set of nested loops...
type - name and value
its dataSource
only the innermost loop in which the break is executed is terminated
Encapsulation of functionality
24. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
values
the array becomes an owner of that object and has a pointer to it.
initializers
copy - retain
25. A function in the objective c library that simply displays or logs it's argument
causes the program to immediately exit from the loop it is executing - whether its for - while or do
variable scope - if defined within a block
NSLog routine
subview(s)
26. Any individual object belonging to any class...
C Functionn
creating an initializer
is an instance of that class
Is a placeholder object
27. Only exists within the statement block there defined - outside of the block is fine
copy - retain
receiver - selector - arguments
do so in viewDidLoad
variable scope - if defined within a block
28. Also - because arrays only hold a pointer to an object...
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.
view controller
Core Graphics Framework
29. Name of the method to be executed
selector[message]
only the class and subclasses can access
C Functionn
message
30. NSSet...
unordered collection of objects - objects must be unique
protocol
C Functionn
draw images
31. @property - is using methods...
receiver - selector - arguments
@synthesize
to get and set variables
Generic object wrapper for other non-object data types
32. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
for inheritance - adopting the superclasses implementation
header files declare
dealloc - is called on the object & the object's memory is returned to the heap
references to objects
33. UIImageView is used to...
CGRect
Ready-Made Instance
%d
draw images
34. A command directed to an object is called an...
class's
nil
message
alloc - singleton - informational utility method?
35. 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....
define it in the implemenation file
Abstraction
instance of UIView or one of its subclasses
super - self
36. At the top of any implementation file...
you must import the header file of that class
Core Graphics Framework
first responder
You take ownership for an object you want to keep a pointer to
37. class methods...
setPossessionName
Ready-Made Instance
viewWillDissapear: and viewWillAppear:
group of global functions already assigned to this class
38. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
Used to find the time right now or to store past or future time/dates
for inheritance - adopting the superclasses implementation
CF - Ref
39. Hold data and know nothing about the user interface
NSCoder
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Model Objects[Factory Worker]
initializers
40. Primitives and C Structures...
initializer
instance variable of an object is valid
cannot be added to an array
storage
41. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
CGRect bounds - GCPoint center - CGRect frame
Instantiation from scratch
%d
'getters' and 'setters'
42. Center and frame are used to _ your view
position
wait until the loop finishes processing the event - at the end release it
@interface ClassName:SuperClassName
object
43. A _ handles touch events.
view
you must import the header file of that class
nil
%d
44. In general - class methods tend to be factory methods - that is...
instance variables
creates an instance of NSString that holds the character string
methods for generating an instance
view
45. 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 _.
you always return the newly initialized object(return self)
pointer - class
You take ownership for an object you want to keep a pointer to
initializers
46. NSNumber - class...
retain
the array becomes an owner of that object and has a pointer to it.
a mechanism to enable specific callbacks
Object wrapper around primitive types like int - float - double - BOOl
47. To load a Xib file manually - you use _
do so in viewDidLoad
NSBundle
the array relinquishes ownership of that object and no longer has a pointer to it
subview(s)
48. Class methods do not operate on an _ or have any access to _ variables....
cannot be added to an array
instance
position
viewWillDissapear: and viewWillAppear:
49. Origin of a view's coordinate system is _ left
you must import the header file of that class
You take ownership for an object you want to keep a pointer to
a mechanism to enable specific callbacks
upper
50. A view represents a _ area
a single-array can contain objects of different types
NSBundle
reuse your cells
rectangular