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. If a break statement is executed from within a set of nested loops...
upper
collection of collections - NSArray of an NSArray
only the innermost loop in which the break is executed is terminated
cannot be added to an array
2. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
Hash table - Look up objects using a key to get a value.
Used to find the time right now or to store past or future time/dates
define it in the implemenation file
3. All objects are accessed using...
ordered collection of objects - immutable
will be ignored
NSLog routine
pointers
4. NSArray - important methods...
setPossessionName
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
selector[message]
array[class - NSMutableArray]
5. Hold data and know nothing about the user interface
Used to find the time right now or to store past or future time/dates
Model Objects[Factory Worker]
for inheritance - adopting the superclasses implementation
position
6. 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
Model Objects[Factory Worker]
is called every time the event occurs
protocol
7. Each _ has a 'designated' initializer method....
instance variables
class
super - self
variable scope - if defined within a block
8. A UITableView usually needs three different pieces...
super - self
lowercase - uppercase
variable scope - if defined within a block
data source - delegate and view controller
9. @property - is using methods...
to get and set variables
data source - view controller and delegate
Controller Objects[Managers]
CF - Ref
10. Origin of a view's coordinate system is _ left
UIViewController
instance
class methods - initializers
upper
11. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
Instantiation from scratch
receiver
Controller Objects[Managers]
is an instance of that class
12. 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 _.
subview(s)
data
you always return the newly initialized object(return self)
nil
13. 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
14. A command directed to an object is called an...
message
C Functionn
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
@synthesize
15. Object Oriented based analogue to a function is called a...
you always return the newly initialized object(return self)
method
methods
will be ignored
16. The class is responsible for what instance variables the instance has - but not the _ of those variables.
values
parentViewController
selector[message]
will be ignored
17. Core foundation classes are prefixed with _ and suffixed with _
@synthesize
creates an instance of NSString that holds the character string
object
CF - Ref
18. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
delegates and dataSources
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
CF - Ref
19. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
will be ignored
C Functionn
class
the array becomes an owner of that object and has a pointer to it.
20. When making a tableView always...
designated initializer
CF - Ref
reuse your cells
CGRect bounds
21. NSNumber - class...
%d
only the innermost loop in which the break is executed is terminated
protocol
Object wrapper around primitive types like int - float - double - BOOl
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
protocol
Functions
Instantiation from scratch
header files declare
23. A pointer to the object being asked to execute a method
receiver[message]
initializers
dealloc - is called on the object & the object's memory is returned to the heap
Controller Objects[Managers]
24. 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
25. id is a...
upper
viewWillDissapear: and viewWillAppear:
pointer to an object
view controller's initialization method
26. Number one use of protocols in iOS...
delegates and dataSources
in the dealloc - or when a Controller's view is 'unloaded'
Model Objects[Factory Worker]
methods
27. A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has _ (that appear on the window). Those views can also have _.
protocol
class
pointer - class
subview(s)
28. [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.
superclass's
data
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
Abstraction
29. Just a floating point number - but we always use it for graphics.
wait until the loop finishes processing the event - at the end release it
instance variables
unordered collection of objects - objects must be unique
CGFloat
30. In a class method you cannot access...
the instance variables
data
only the innermost loop in which the break is executed is terminated
calling code that does the instantiation for you
31. After accessors have been defined in the header file...
they need to be defined in the implementation file
the array becomes an owner of that object and has a pointer to it.
pointers
Maintenance of state
32. UITableViewController is a subclass of...
is called every time the event occurs
pointers
UIViewController
Generic object wrapper for other non-object data types
33. NSValue - class...
Hash table - Look up objects using a key to get a value.
selector[message]
Generic object wrapper for other non-object data types
creating an initializer
34. Use of class methods - there are three...
lowercase - uppercase
you always return the newly initialized object(return self)
Model Objects[Factory Worker]
alloc - singleton - informational utility method?
35. Class methods do not operate on an _ or have any access to _ variables....
first responder
instance
dealloc - is called on the object & the object's memory is returned to the heap
methods
36. When an object is added to a NSMutableArray - that object is sent the message to retain;...
declaration and initialization of a variable
pointer to an object
the array becomes an owner of that object and has a pointer to it.
the message release to all its entries
37. When an object is removed from an NSMutableArray - that object is sent the message release;...
view controller
the array relinquishes ownership of that object and no longer has a pointer to it
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
instance variables
38. Class methods typically either create
view controller
only the innermost loop in which the break is executed is terminated
new instances of the class or retrieve some global property of the class.
delegates and dataSources
39. Prefixing a character string with an @ symbol [specific - NSString class]...
arguments[message]
upper
retain
creates an instance of NSString that holds the character string
40. Proceed through the loop - jump back to the top and check again
references to objects
Continue
do so in viewDidLoad
you always return the newly initialized object(return self)
41. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
object
CGRect bounds - GCPoint center - CGRect frame
the array relinquishes ownership of that object and no longer has a pointer to it
42. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
protocol
header files declare
ready-made instances - instantiation from scratch - and nib based instantiation
view controller
43. In Cocoa Touch - the table view asks another object _ what it should display...
instance variables
values
methods
its dataSource
44. Each class picks one _ as it's designated initializer....
size and position
CGRect bounds - GCPoint center - CGRect frame
super - self
initializer
45. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
references to objects
lowercase - uppercase
arguments[message]
superclass's
46. In Objective C arrays can hold only...
Data Encapsulation
viewWillDissapear: and viewWillAppear:
C Functionn
references to objects
47. When do you take ownership?...
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
receiving and handling events that are associated with it
pointer - class
48. 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
Anytime you call a method with new - alloc or copy. You own and must release that object.
copy - retain
data source - view controller and delegate
Maintenance of state
49. Whenever a UINavigationController is about to swap views - it sends out two messages
alloc - singleton - informational utility method?
ready-made instances - instantiation from scratch - and nib based instantiation
Generic object wrapper for other non-object data types
viewWillDissapear: and viewWillAppear:
50. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
designated initializer
rectangular
setPossessionName
retain