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. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
cannot be added to an array
position
you must import the header file of that class
2. Also if you send the NSObject the _ message - you own that object.
retain
receiver - selector - arguments
define it in the implemenation file
create a XIB file
3. Prefixing a character string with an @ symbol [specific - NSString class]...
creates an instance of NSString that holds the character string
receiver - selector - arguments
Core Graphics Framework
self
4. Defining variables - three parts...
type - name and value
Ready-Made Instance
instance variables
callbacks
5. NSDate - class...
Used to find the time right now or to store past or future time/dates
superclass's
Functions
%d
6. A UITableViewController can fill all three roles of...
create a XIB file
data source - view controller and delegate
type - name and value
method
7. UIImageView is used to...
@synthesize
size and position
selector[message]
draw images
8. 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...
arguments[message]
view
pointer - class
setPossessionName
9. In a class method you cannot access...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
first responder
is called every time the event occurs
the instance variables
10. The class is responsible for what instance variables the instance has - but not the _ of those variables.
receiver
Used to find the time right now or to store past or future time/dates
values
NSBundle
11. Number one use of protocols in iOS...
they need to be defined in the implementation file
delegates and dataSources
receiver[message]
array[class - NSMutableArray]
12. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
Controller Objects[Managers]
Functions
a single-array can contain objects of different types
@interface ClassName:SuperClassName
13. The only reason to temporarily own an object - is...
designated initializer
draw images
ready-made instances - instantiation from scratch - and nib based instantiation
to give it someone else - or another object
14. 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
class's
selector[message]
Instantiation from scratch
15. Object Oriented based analogue to a function is called a...
receiver[message]
method
pointer - class
implementation
16. Class methods do not operate on an _ or have any access to _ variables....
instance
create a XIB file
variable scope - if defined within a block
Abstraction
17. NSString objects are usually sent _ rather than _...
to give it someone else - or another object
ready-made instances - instantiation from scratch - and nib based instantiation
CGRect bounds
copy - retain
18. Views have three properties related to their location and size: @property _ _;
NSCoder
Used to find the time right now or to store past or future time/dates
define it in the implemenation file
CGRect bounds - GCPoint center - CGRect frame
19. [Instance Variables] The code it gets from its class and in a sense is shared with all other instances of that class - but the _ belong to it alone.
position
Data Encapsulation
data
type - name and value
20. You use _ to implement the view
lowercase - uppercase
CGRect bounds
method
Model Objects[Factory Worker]
21. Name of the method to be executed
Data Encapsulation
unordered collection of objects - objects must be unique
creating an initializer
selector[message]
22. At the top of any implementation file...
CGRect
you must import the header file of that class
Hash table - Look up objects using a key to get a value.
the instance variables
23. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
Instantiation from scratch
super - self
calling code that does the instantiation for you
24. The integer prefix is...
Model Objects[Factory Worker]
subview(s)
the instance variables
%d
25. A view is a subclass of _
selector[message]
Used to find the time right now or to store past or future time/dates
accessors - individually we call them 'getters' and 'setters'
UIView
26. Just a floating point number - but we always use it for graphics.
@interface ClassName:SuperClassName
class's
CGFloat
only the class and subclasses can access
27. Each individual instance is a bundle of data that it maintains. Typically that data is private - which means that it's encapsulated as well; no other object knows what that data is or in what form it is kept. The only way to discover from outside wha
CGRect
only the class and subclasses can access
Maintenance of state
superclass's
28. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
Data Encapsulation
a mechanism to enable specific callbacks
'getters' and 'setters'
receiver[message]
29. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
to give it someone else - or another object
'getters' and 'setters'
object
class
30. Delegation is an object oriented approach to
Instantiation from scratch
@interface ClassName:SuperClassName
@synthesize
callbacks
31. A responder is responsible for...
superclass's
storage
receiving and handling events that are associated with it
Encapsulation of functionality
32. 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.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
declaration and initialization of a variable
data source - view controller and delegate
creating an initializer
33. A message is always contained in square brackets - and has three parts
the instance variables
receiver - selector - arguments
Ready-Made Instance
callbacks
34. A UITableView usually needs three different pieces...
%d
data source - delegate and view controller
delegates and dataSources
copy - retain
35. In any application with UINavigationController - the navigation controller...
has one root view controller
Maintenance of state
do so in viewDidLoad
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
36. Reducing details to focus on the core concepts
the array becomes an owner of that object and has a pointer to it.
ordered collection of objects - immutable
Abstraction
create a XIB file
37. Asking a class or object to execute a method
self
group of global functions already assigned to this class
rectangular
message
38. Class methods typically either create
new instances of the class or retrieve some global property of the class.
Controller Objects[Managers]
group of global functions already assigned to this class
Generic object wrapper for other non-object data types
39. Categories are an Objective C way to add _ to an existing class without subclassing
'getters' and 'setters'
the array relinquishes ownership of that object and no longer has a pointer to it
methods
initializer
40. Three ways instances are created...
subview(s)
@interface ClassName:SuperClassName
ready-made instances - instantiation from scratch - and nib based instantiation
size and position
41. In the last line of an init method...
safety - subclassability and makes code look more consistent with C structs
new instances of the class or retrieve some global property of the class.
you always return the newly initialized object(return self)
subview(s)
42. 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
43. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
declaration and initialization of a variable
creates an instance of NSString that holds the character string
ready-made instances - instantiation from scratch - and nib based instantiation
44. What does autorelease mean?
receiver
retain
for inheritance - adopting the superclasses implementation
wait until the loop finishes processing the event - at the end release it
45. A view represents a _ area
rectangular
self
accessors - individually we call them 'getters' and 'setters'
instance variables
46. Center and frame are used to _ your view
data
they need to be defined in the implementation file
position
view controller
47. Use of class methods - there are three...
you must import the header file of that class
accessors - individually we call them 'getters' and 'setters'
CF - Ref
alloc - singleton - informational utility method?
48. When an NSMutableArray is deallocated - it sends...
subview(s)
references to objects
method
the message release to all its entries
49. if you implemented both the setter and getter - the @synthesize method...
will be ignored
declaration and initialization of a variable
CF - Ref
object
50. 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