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. Primitives and C Structures...
its dataSource
Core Graphics Framework
cannot be added to an array
a single-array can contain objects of different types
2. NSDictionary...
copy - retain
Is a placeholder object
instance variables
Hash table - Look up objects using a key to get a value.
3. class methods...
create a XIB file
Data Encapsulation
implementation
group of global functions already assigned to this class
4. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
safety - subclassability and makes code look more consistent with C structs
super - self
declaration and initialization of a variable
pointer to an object
5. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
storage
view controller's initialization method
will be ignored
initializers
6. A command directed to an object is called an...
instance variables
for inheritance - adopting the superclasses implementation
message
the message release to all its entries
7. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. 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
class methods - initializers
cannot be added to an array
initializer
9. Classes describe two things...
attributes - behavior
Maintenance of state
array[class - NSMutableArray]
the array becomes an owner of that object and has a pointer to it.
10. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
object
lowercase - uppercase
retain
11. Values to be supplied as the parameters to the method
Abstraction
header files declare
arguments[message]
Controller Objects[Managers]
12. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
protocol
retain
CGFloat
CGRect
13. Each class picks one _ as it's designated initializer....
CF - Ref
'getters' and 'setters'
wait until the loop finishes processing the event - at the end release it
initializer
14. Use of class methods - there are three...
class's
references to objects
wait until the loop finishes processing the event - at the end release it
alloc - singleton - informational utility method?
15. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Controller Objects[Managers]
receiver
Abstraction
'getters' and 'setters'
16. Center and frame are used to _ your view
position
class
Data Encapsulation
an object's property
17. In general - class methods tend to be factory methods - that is...
methods for generating an instance
instance
Model Objects[Factory Worker]
Object wrapper around primitive types like int - float - double - BOOl
18. A responder is responsible for...
receiving and handling events that are associated with it
designated initializer
retain
is called every time the event occurs
19. 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.
parentViewController
arguments[message]
instance variables
Instantiation from scratch
20. When a view controller presents a modal view controller - the _ of the modal view controller is set to be the parent of the presenting controller
viewWillDissapear: and viewWillAppear:
parentViewController
ready-made instances - instantiation from scratch - and nib based instantiation
designated initializer
21. NSDate - class...
Data Encapsulation
receiver
attributes - behavior
Used to find the time right now or to store past or future time/dates
22. UIView - designated initializer...
receiving and handling events that are associated with it
(id)initWithFrame:(CGRect)aRect;
designated initializer
NSBundle
23. Instance Variables by default are called @protected meaning...
delegates and dataSources
has one root view controller
You take ownership for an object you want to keep a pointer to
only the class and subclasses can access
24. After accessors have been defined in the header file...
accessors - individually we call them 'getters' and 'setters'
dealloc - is called on the object & the object's memory is returned to the heap
retain
they need to be defined in the implementation file
25. A view represents a _ area
pointer to an object
ready-made instances - instantiation from scratch - and nib based instantiation
rectangular
Is a placeholder object
26. NSString *s = @'Hello - World'; is an example of...
class's
implementation
its dataSource
declaration and initialization of a variable
27. At the top of any implementation file...
@interface ClassName:SuperClassName
self
@synthesize
you must import the header file of that class
28. Prefixing a character string with an @ symbol [specific - NSString class]...
(id)initWithFrame:(CGRect)aRect;
the array relinquishes ownership of that object and no longer has a pointer to it
creates an instance of NSString that holds the character string
variable scope - if defined within a block
29. How do I implement my drawRect?
protocol
Core Graphics Framework
Anytime you call a method with new - alloc or copy. You own and must release that object.
has one root view controller
30. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
C Functionn
they need to be defined in the implementation file
UIView
a mechanism to enable specific callbacks
31. NSNumber - class...
wait until the loop finishes processing the event - at the end release it
create a XIB file
@synthesize
Object wrapper around primitive types like int - float - double - BOOl
32. id is a...
wait until the loop finishes processing the event - at the end release it
receiver[message]
pointer to an object
instance variables
33. A UITableViewController can fill all three roles of...
attributes - behavior
data source - view controller and delegate
has one root view controller
@interface ClassName:SuperClassName
34. 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.
creating an initializer
class
UIView
Functions
35. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
creates an instance of NSString that holds the character string
the instance variables
lowercase - uppercase
group of global functions already assigned to this class
36. Defining variables - three parts...
Generic object wrapper for other non-object data types
superclass's
type - name and value
new instances of the class or retrieve some global property of the class.
37. If the view has no subviews - create it programmatically; if it has subviews
CGRect bounds
'getters' and 'setters'
Core Graphics Framework
create a XIB file
38. A view is a subclass of _
pointers
UIView
safety - subclassability and makes code look more consistent with C structs
Object wrapper around primitive types like int - float - double - BOOl
39. UITableViewController is a subclass of...
CF - Ref
(id)initWithFrame:(CGRect)aRect;
UIViewController
parentViewController
40. In a class method you cannot access...
(id)initWithFrame:(CGRect)aRect;
NSBundle
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
the instance variables
41. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Maintenance of state
NSLog routine
instance variables
view controller's initialization method
42. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
a mechanism to enable specific callbacks
protocol
ordered collection of objects - immutable
header files declare
43. A UITableView usually needs three different pieces...
ready-made instances - instantiation from scratch - and nib based instantiation
data source - delegate and view controller
arguments[message]
object
44. The class is responsible for what instance variables the instance has - but not the _ of those variables.
message
values
draw images
CGRect
45. initWithFrame: the designated initializer for UIView gives the view
Used to find the time right now or to store past or future time/dates
initializer
size and position
initializers
46. Just a floating point number - but we always use it for graphics.
message
you must import the header file of that class
CGFloat
parentViewController
47. When an object is added to a NSMutableArray - that object is sent the message to retain;...
nil
setPossessionName
the array becomes an owner of that object and has a pointer to it.
do so in viewDidLoad
48. NSValue - class...
Generic object wrapper for other non-object data types
declaration and initialization of a variable
@synthesize
Object wrapper around primitive types like int - float - double - BOOl
49. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
only the innermost loop in which the break is executed is terminated
object
(id)initWithFrame:(CGRect)aRect;
draw images
50. Hold data and know nothing about the user interface
C Functionn
receiver - selector - arguments
only the innermost loop in which the break is executed is terminated
Model Objects[Factory Worker]