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. A UITableViewController can fill all three roles of...
reuse your cells
implementation
data source - view controller and delegate
causes the program to immediately exit from the loop it is executing - whether its for - while or do
2. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
create a XIB file
new instances of the class or retrieve some global property of the class.
values
Instantiation from scratch
3. A collection object - an ordered list of objects that can be accesed by an index
array[class - NSMutableArray]
instance
Object wrapper around primitive types like int - float - double - BOOl
Controller Objects[Managers]
4. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
ordered collection of objects - immutable
setPossessionName
alloc - singleton - informational utility method?
5. class methods...
cannot be added to an array
type - name and value
pointer - class
group of global functions already assigned to this class
6. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
class methods - initializers
Continue
dealloc - is called on the object & the object's memory is returned to the heap
methods for generating an instance
7. Any other initializer a class has calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
NSBundle
Hash table - Look up objects using a key to get a value.
only the innermost loop in which the break is executed is terminated
9. A method in a _ is required unless its preceded by an @optional.
Continue
CGRect
view
protocol
10. A pointer to the object being asked to execute a method
Controller Objects[Managers]
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance of UIView or one of its subclasses
receiver[message]
11. In the last line of an init method...
attributes - behavior
define it in the implemenation file
NSBundle
you always return the newly initialized object(return self)
12. 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
13. A _ handles touch events.
view
super - self
is called every time the event occurs
nil
14. What does autorelease mean?
callbacks
class methods - initializers
wait until the loop finishes processing the event - at the end release it
CF - Ref
15. @property declares - and _ implements the setter and getter...
(id)initWithFrame:(CGRect)aRect;
@synthesize
cannot be added to an array
array[class - NSMutableArray]
16. 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.
designated initializer
storage
its dataSource
instance variables
17. Execution of the break statement...
UIViewController
superclass's
causes the program to immediately exit from the loop it is executing - whether its for - while or do
a single-array can contain objects of different types
18. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
parentViewController
Functions
super - self
instance variables
19. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
you must import the header file of that class
position
first responder
NSCoder
20. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
CGRect
Anytime you call a method with new - alloc or copy. You own and must release that object.
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
21. In Objective C arrays can hold only...
retain
view
pointer to an object
references to objects
22. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
message
@interface ClassName:SuperClassName
is called every time the event occurs
viewWillDissapear: and viewWillAppear:
23. UIView - designated initializer...
Instantiation from scratch
(id)initWithFrame:(CGRect)aRect;
for inheritance - adopting the superclasses implementation
a mechanism to enable specific callbacks
24. 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
%d
receiving and handling events that are associated with it
Core Graphics Framework
25. Ready-made instances...
calling code that does the instantiation for you
Anytime you call a method with new - alloc or copy. You own and must release that object.
view controller
upper
26. How do I implement my drawRect?
Core Graphics Framework
copy - retain
receiving and handling events that are associated with it
instance variables
27. When the message endEditing: is sent to a view - if it or any of its subviews or currently the _ - it will resign its first responder statues - and the keyboard will be dismissed.
lowercase - uppercase
to get and set variables
accessors - individually we call them 'getters' and 'setters'
first responder
28. id is a...
implementation
CF - Ref
pointer to an object
the instance variables
29. After accessors have been defined in the header file...
they need to be defined in the implementation file
lowercase - uppercase
type - name and value
pointer - class
30. UIImageView is used to...
draw images
only the class and subclasses can access
(id)initWithFrame:(CGRect)aRect;
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
31. Files Owner...
Data Encapsulation
Continue
UIView
Is a placeholder object
32. @property - is using methods...
super - self
to get and set variables
an object's property
@interface ClassName:SuperClassName
33. Reference Counting...
You take ownership for an object you want to keep a pointer to
class
CGFloat
define it in the implemenation file
34. In Cocoa Touch - the table view asks another object _ what it should display...
its dataSource
pointers
You take ownership for an object you want to keep a pointer to
calling code that does the instantiation for you
35. When making a tableView always...
CGRect
reuse your cells
nil
Anytime you call a method with new - alloc or copy. You own and must release that object.
36. A callback is a function that is supplied in advance of an event - and...
CGRect bounds - GCPoint center - CGRect frame
is called every time the event occurs
instance variables
reuse your cells
37. [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.
draw images
setPossessionName
new instances of the class or retrieve some global property of the class.
data
38. A view is an...
data source - delegate and view controller
first responder
Core Graphics Framework
instance of UIView or one of its subclasses
39. Designated initializer makes sure that every...
instance variable of an object is valid
Model Objects[Factory Worker]
class
class methods - initializers
40. 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
viewWillDissapear: and viewWillAppear:
CF - Ref
Maintenance of state
CGFloat
41. In general - class methods tend to be factory methods - that is...
methods for generating an instance
causes the program to immediately exit from the loop it is executing - whether its for - while or do
values
setPossessionName
42. 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
43. UITableViewController is a subclass of...
values
instance variables
its dataSource
UIViewController
44. 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
rectangular
view controller's initialization method
retain
Functions
45. Class methods typically either create
new instances of the class or retrieve some global property of the class.
receiver
delegates and dataSources
CGRect bounds
46. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
creates an instance of NSString that holds the character string
the instance variables
instance
47. Use of class methods - there are three...
Used to find the time right now or to store past or future time/dates
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
alloc - singleton - informational utility method?
CGRect bounds - GCPoint center - CGRect frame
48. Prefixing a character string with an @ symbol [specific - NSString class]...
NSCoder
creates an instance of NSString that holds the character string
CF - Ref
pointer to an object
49. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
reuse your cells
data
causes the program to immediately exit from the loop it is executing - whether its for - while or do
initializers
50. Name of the method to be executed
NSCoder
rectangular
selector[message]
CF - Ref