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. 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
2. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
lowercase - uppercase
reuse your cells
super - self
first responder
3. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Anytime you call a method with new - alloc or copy. You own and must release that object.
receiver
data source - delegate and view controller
%d
4. Reducing details to focus on the core concepts
a mechanism to enable specific callbacks
subview(s)
Abstraction
they need to be defined in the implementation file
5. When do you take ownership?...
attributes - behavior
reuse your cells
Anytime you call a method with new - alloc or copy. You own and must release that object.
calling code that does the instantiation for you
6. Class methods do not operate on an _ or have any access to _ variables....
instance
designated initializer
calling code that does the instantiation for you
delegates and dataSources
7. When overriding a method - all you need to is _ - you do not need to declare it in the header file because it has already been declared by the superclass....
pointer to an object
delegates and dataSources
cannot be added to an array
define it in the implemenation file
8. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
data source - view controller and delegate
self
@interface ClassName:SuperClassName
upper
9. What does autorelease mean?
parentViewController
receiver - selector - arguments
wait until the loop finishes processing the event - at the end release it
Abstraction
10. 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
11. initWithFrame: the designated initializer for UIView gives the view
storage
Object wrapper around primitive types like int - float - double - BOOl
methods
size and position
12. 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
setPossessionName
a mechanism to enable specific callbacks
super - self
You take ownership for an object you want to keep a pointer to
13. @property declares - and _ implements the setter and getter...
@synthesize
'getters' and 'setters'
reuse your cells
protocol
14. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
the instance variables
parentViewController
instance variable of an object is valid
initializers
15. 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
they need to be defined in the implementation file
define it in the implemenation file
rectangular
Functions
16. NSArray - important methods...
view controller
Object wrapper around primitive types like int - float - double - BOOl
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
copy - retain
17. Number one use of protocols in iOS...
Hash table - Look up objects using a key to get a value.
NSCoder
delegates and dataSources
rectangular
18. Defining variables - three parts...
only the innermost loop in which the break is executed is terminated
delegates and dataSources
'getters' and 'setters'
type - name and value
19. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
superclass's
Ready-Made Instance
you always return the newly initialized object(return self)
20. A view is an...
initializers
instance of UIView or one of its subclasses
nil
unordered collection of objects - objects must be unique
21. Just a floating point number - but we always use it for graphics.
instance variables
designated initializer
unordered collection of objects - objects must be unique
CGFloat
22. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
CGRect bounds - GCPoint center - CGRect frame
Anytime you call a method with new - alloc or copy. You own and must release that object.
Generic object wrapper for other non-object data types
lowercase - uppercase
23. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
alloc - singleton - informational utility method?
Instantiation from scratch
CGRect
variable scope - if defined within a block
24. A UITableViewController can fill all three roles of...
data source - view controller and delegate
viewWillDissapear: and viewWillAppear:
You take ownership for an object you want to keep a pointer to
receiving and handling events that are associated with it
25. Any individual object belonging to any class...
is an instance of that class
the array relinquishes ownership of that object and no longer has a pointer to it
upper
receiver[message]
26. A _ handles touch events.
type - name and value
to get and set variables
view
you always return the newly initialized object(return self)
27. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
view controller
creating an initializer
data source - delegate and view controller
28. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
CGRect
Maintenance of state
receiving and handling events that are associated with it
self
29. You use _ to implement the view
method
instance
CGRect bounds
group of global functions already assigned to this class
30. Also if you send the NSObject the _ message - you own that object.
C Functionn
attributes - behavior
retain
instance
31. 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
setPossessionName
Data Encapsulation
Encapsulation of functionality
creates an instance of NSString that holds the character string
32. Asking a class or object to execute a method
(id)initWithFrame:(CGRect)aRect;
alloc - singleton - informational utility method?
copy - retain
message
33. 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...
Abstraction
%d
setPossessionName
Anytime you call a method with new - alloc or copy. You own and must release that object.
34. 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
35. Primitives and C Structures...
You take ownership for an object you want to keep a pointer to
cannot be added to an array
variable scope - if defined within a block
delegates and dataSources
36. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
reuse your cells
draw images
a single-array can contain objects of different types
37. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
the array becomes an owner of that object and has a pointer to it.
do so in viewDidLoad
Generic object wrapper for other non-object data types
38. super - is used...
Object wrapper around primitive types like int - float - double - BOOl
for inheritance - adopting the superclasses implementation
unordered collection of objects - objects must be unique
NSBundle
39. When making a tableView always...
the instance variables
reuse your cells
self
Instantiation from scratch
40. To load a Xib file manually - you use _
receiving and handling events that are associated with it
storage
receiver - selector - arguments
NSBundle
41. Property List...
CGRect bounds - GCPoint center - CGRect frame
is an instance of that class
group of global functions already assigned to this class
collection of collections - NSArray of an NSArray
42. Prefixing a character string with an @ symbol [specific - NSString class]...
upper
NSBundle
Core Graphics Framework
creates an instance of NSString that holds the character string
43. 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.
the array relinquishes ownership of that object and no longer has a pointer to it
CGFloat
first responder
Continue
44. A message is always contained in square brackets - and has three parts
protocol
receiver - selector - arguments
data
Used to find the time right now or to store past or future time/dates
45. How do I implement my drawRect?
Core Graphics Framework
@interface ClassName:SuperClassName
create a XIB file
to get and set variables
46. The integer prefix is...
%d
callbacks
receiver
'getters' and 'setters'
47. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variable of an object is valid
protocol
instance variables
creates an instance of NSString that holds the character string
48. Reference Counting...
retain
a single-array can contain objects of different types
You take ownership for an object you want to keep a pointer to
methods for generating an instance
49. NSValue - class...
Object wrapper around primitive types like int - float - double - BOOl
Generic object wrapper for other non-object data types
ordered collection of objects - immutable
CGRect bounds - GCPoint center - CGRect frame
50. Each _ has a 'designated' initializer method....
CGRect bounds - GCPoint center - CGRect frame
Ready-Made Instance
super - self
class