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. Class methods do not operate on an _ or have any access to _ variables....
is called every time the event occurs
instance
size and position
new instances of the class or retrieve some global property of the class.
2. Defining variables - three parts...
instance of UIView or one of its subclasses
data source - view controller and delegate
methods
type - name and value
3. class methods...
@interface ClassName:SuperClassName
array[class - NSMutableArray]
group of global functions already assigned to this class
unordered collection of objects - objects must be unique
4. Three ways instances are created...
accessors - individually we call them 'getters' and 'setters'
receiver[message]
setPossessionName
ready-made instances - instantiation from scratch - and nib based instantiation
5. Classes describe two things...
attributes - behavior
a single-array can contain objects of different types
unordered collection of objects - objects must be unique
Data Encapsulation
6. Designated initializer makes sure that every...
Generic object wrapper for other non-object data types
Object wrapper around primitive types like int - float - double - BOOl
instance variable of an object is valid
(id)initWithFrame:(CGRect)aRect;
7. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
declaration and initialization of a variable
protocol
self
pointer to an object
8. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
CGRect bounds - GCPoint center - CGRect frame
unordered collection of objects - objects must be unique
array[class - NSMutableArray]
C Functionn
9. 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
@synthesize
only the class and subclasses can access
class
10. super - is used...
for inheritance - adopting the superclasses implementation
dealloc - is called on the object & the object's memory is returned to the heap
wait until the loop finishes processing the event - at the end release it
copy - retain
11. In a class method you cannot access...
the instance variables
size and position
do so in viewDidLoad
Is a placeholder object
12. After accessors have been defined in the header file...
they need to be defined in the implementation file
object
the instance variables
self
13. The only reason to temporarily own an object - is...
type - name and value
Continue
CGFloat
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 _.
you always return the newly initialized object(return self)
creates an instance of NSString that holds the character string
upper
nil
15. The root view controller typically creates the next view controller - and the next _ creates the one after that
Data Encapsulation
viewWillDissapear: and viewWillAppear:
CGFloat
view controller
16. Object Oriented based analogue to a function is called a...
nil
method
initializer
class's
17. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
Controller Objects[Managers]
delegates and dataSources
lowercase - uppercase
CGRect
18. In general - class methods tend to be factory methods - that is...
methods for generating an instance
data
attributes - behavior
Hash table - Look up objects using a key to get a value.
19. NSSet...
size and position
unordered collection of objects - objects must be unique
CGRect bounds
Ready-Made Instance
20. A responder is responsible for...
draw images
lowercase - uppercase
NSBundle
receiving and handling events that are associated with it
21. A pointer to the object being asked to execute a method
new instances of the class or retrieve some global property of the class.
receiver[message]
Core Graphics Framework
creates an instance of NSString that holds the character string
22. id is a...
they need to be defined in the implementation file
pointer to an object
Anytime you call a method with new - alloc or copy. You own and must release that object.
NSCoder
23. In Objective C arrays can hold only...
subview(s)
first responder
references to objects
you must import the header file of that class
24. A view is a subclass of _
subview(s)
alloc - singleton - informational utility method?
the instance variables
UIView
25. UIViewController has several methods that get called at certain times...
calling code that does the instantiation for you
NSCoder
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
you must import the header file of that class
26. How do I implement my drawRect?
UIView
Core Graphics Framework
@synthesize
instance variables
27. Primitives and C Structures...
Abstraction
Hash table - Look up objects using a key to get a value.
cannot be added to an array
its dataSource
28. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
copy - retain
for inheritance - adopting the superclasses implementation
selector[message]
super - self
29. UIView - designated initializer...
NSBundle
define it in the implemenation file
(id)initWithFrame:(CGRect)aRect;
instance variables
30. 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
Functions
creates an instance of NSString that holds the character string
will be ignored
parentViewController
31. Any individual object belonging to any class...
C Functionn
is an instance of that class
copy - retain
UIView
32. A collection object - an ordered list of objects that can be accesed by an index
the array relinquishes ownership of that object and no longer has a pointer to it
a single-array can contain objects of different types
to give it someone else - or another object
array[class - NSMutableArray]
33. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
type - name and value
NSCoder
Ready-Made Instance
34. Just a floating point number - but we always use it for graphics.
CGFloat
instance of UIView or one of its subclasses
the array becomes an owner of that object and has a pointer to it.
the message release to all its entries
35. @property declares - and _ implements the setter and getter...
a mechanism to enable specific callbacks
@synthesize
receiver - selector - arguments
only the innermost loop in which the break is executed is terminated
36. 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 _.
setPossessionName
initializers
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
pointer - class
37. A UITableViewController can fill all three roles of...
implementation
data source - delegate and view controller
super - self
data source - view controller and delegate
38. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
CGRect bounds - GCPoint center - CGRect frame
Ready-Made Instance
rectangular
methods for generating an instance
39. A UITableView usually needs three different pieces...
data source - delegate and view controller
Data Encapsulation
unordered collection of objects - objects must be unique
storage
40. A message is always contained in square brackets - and has three parts
Data Encapsulation
instance variable of an object is valid
receiver - selector - arguments
safety - subclassability and makes code look more consistent with C structs
41. To load a Xib file manually - you use _
do so in viewDidLoad
header files declare
NSBundle
ordered collection of objects - immutable
42. Why properties?
methods
data source - delegate and view controller
data
safety - subclassability and makes code look more consistent with C structs
43. An instance is a device for maintaining state. It's a box for _ of data.
to get and set variables
You take ownership for an object you want to keep a pointer to
upper
storage
44. UIImageView is used to...
'getters' and 'setters'
draw images
%d
group of global functions already assigned to this class
45. The integer prefix is...
create a XIB file
calling code that does the instantiation for you
%d
initializers
46. 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
instance variable of an object is valid
Hash table - Look up objects using a key to get a value.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
47. A command directed to an object is called an...
method
'getters' and 'setters'
message
the message release to all its entries
48. NSArray - class...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
draw images
method
ordered collection of objects - immutable
49. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
50. A callback is a function that is supplied in advance of an event - and...
only the innermost loop in which the break is executed is terminated
references to objects
is called every time the event occurs
superclass's