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. Typically the designated initializer has parameters for the most important and frequently used _ of an object
they need to be defined in the implementation file
instance variables
class's
alloc - singleton - informational utility method?
2. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
3. At the top of any implementation file...
pointer to an object
only the innermost loop in which the break is executed is terminated
you must import the header file of that class
UIViewController
4. Designated initializer makes sure that every...
instance variable of an object is valid
Core Graphics Framework
lowercase - uppercase
an object's property
5. [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.
parentViewController
will be ignored
data
creates an instance of NSString that holds the character string
6. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
you always return the newly initialized object(return self)
receiving and handling events that are associated with it
receiver
object
7. Asking a class or object to execute a method
message
Anytime you call a method with new - alloc or copy. You own and must release that object.
creates an instance of NSString that holds the character string
parentViewController
8. UIImageView is used to...
calling code that does the instantiation for you
view controller's initialization method
is called every time the event occurs
draw images
9. The root view controller typically creates the next view controller - and the next _ creates the one after that
to give it someone else - or another object
ordered collection of objects - immutable
methods
view controller
10. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
designated initializer
receiver[message]
methods for generating an instance
CGRect
11. Also if you send the NSObject the _ message - you own that object.
retain
to give it someone else - or another object
Core Graphics Framework
instance variables
12. NSArray - class...
implementation
ordered collection of objects - immutable
initializer
Encapsulation of functionality
13. When making a tableView always...
UIView
methods for generating an instance
for inheritance - adopting the superclasses implementation
reuse your cells
14. Delegation is an object oriented approach to
callbacks
nil
receiver
Hash table - Look up objects using a key to get a value.
15. 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
Encapsulation of functionality
parentViewController
group of global functions already assigned to this class
cannot be added to an array
16. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
UIViewController
pointers
pointer to an object
17. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
18. 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.
Data Encapsulation
reuse your cells
calling code that does the instantiation for you
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
19. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Functions
values
retain
self
20. If a break statement is executed from within a set of nested loops...
view controller
the array relinquishes ownership of that object and no longer has a pointer to it
Abstraction
only the innermost loop in which the break is executed is terminated
21. Class methods typically either create
Abstraction
creates an instance of NSString that holds the character string
Generic object wrapper for other non-object data types
new instances of the class or retrieve some global property of the class.
22. 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
cannot be added to an array
Functions
unordered collection of objects - objects must be unique
super - self
23. If the view has no subviews - create it programmatically; if it has subviews
create a XIB file
reuse your cells
the message release to all its entries
upper
24. A view is a subclass of _
UIView
CGRect bounds
size and position
an object's property
25. Also - because arrays only hold a pointer to an object...
delegates and dataSources
Maintenance of state
superclass's
a single-array can contain objects of different types
26. @property declares - and _ implements the setter and getter...
Data Encapsulation
dealloc - is called on the object & the object's memory is returned to the heap
(id)initWithFrame:(CGRect)aRect;
@synthesize
27. Primitives and C Structures...
cannot be added to an array
arguments[message]
superclass's
delegates and dataSources
28. Center and frame are used to _ your view
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
position
a mechanism to enable specific callbacks
view controller
29. id is a...
first responder
Ready-Made Instance
pointer to an object
a mechanism to enable specific callbacks
30. Categories are an Objective C way to add _ to an existing class without subclassing
methods for generating an instance
CGFloat
methods
Ready-Made Instance
31. Name of the method to be executed
selector[message]
C Functionn
header files declare
only the innermost loop in which the break is executed is terminated
32. All objects are accessed using...
pointers
Is a placeholder object
an object's property
create a XIB file
33. Never access a view controller's view in that...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
34. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
parentViewController
cannot be added to an array
CGRect bounds
lowercase - uppercase
35. A responder is responsible for...
CGRect bounds - GCPoint center - CGRect frame
super - self
receiving and handling events that are associated with it
in the dealloc - or when a Controller's view is 'unloaded'
36. UITableViewController is a subclass of...
UIViewController
for inheritance - adopting the superclasses implementation
group of global functions already assigned to this class
reuse your cells
37. 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
CF - Ref
ordered collection of objects - immutable
pointers
38. In Objective C arrays can hold only...
they need to be defined in the implementation file
message
references to objects
define it in the implemenation file
39. In general - class methods tend to be factory methods - that is...
instance variables
C Functionn
designated initializer
methods for generating an instance
40. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
only the innermost loop in which the break is executed is terminated
Generic object wrapper for other non-object data types
Continue
41. 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
methods for generating an instance
initializer
Maintenance of state
pointer to an object
42. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
for inheritance - adopting the superclasses implementation
UIView
size and position
43. The integer prefix is...
message
copy - retain
CGRect
%d
44. Each _ has a 'designated' initializer method....
setPossessionName
class
designated initializer
collection of collections - NSArray of an NSArray
45. Classes describe two things...
instance variable of an object is valid
attributes - behavior
instance of UIView or one of its subclasses
(id)initWithFrame:(CGRect)aRect;
46. 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.
instance variables
view
they need to be defined in the implementation file
instance variable of an object is valid
47. NSString *s = @'Hello - World'; is an example of...
initializer
they need to be defined in the implementation file
declaration and initialization of a variable
position
48. 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
49. In a class method you cannot access...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
draw images
storage
the instance variables
50. A UITableView usually needs three different pieces...
the array becomes an owner of that object and has a pointer to it.
data source - delegate and view controller
Is a placeholder object
UIViewController