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. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
a single-array can contain objects of different types
instance variable of an object is valid
Instantiation from scratch
only the class and subclasses can access
2. Origin of a view's coordinate system is _ left
upper
do so in viewDidLoad
Used to find the time right now or to store past or future time/dates
alloc - singleton - informational utility method?
3. Why properties?
a single-array can contain objects of different types
CGFloat
safety - subclassability and makes code look more consistent with C structs
array[class - NSMutableArray]
4. 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 _.
Hash table - Look up objects using a key to get a value.
subview(s)
unordered collection of objects - objects must be unique
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
5. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
group of global functions already assigned to this class
UIView
CGRect
delegates and dataSources
6. NSDate - class...
message
Used to find the time right now or to store past or future time/dates
a mechanism to enable specific callbacks
Continue
7. In general - class methods tend to be factory methods - that is...
nil
first responder
instance
methods for generating an instance
8. 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....
only the innermost loop in which the break is executed is terminated
define it in the implemenation file
a single-array can contain objects of different types
references to objects
9. 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 _.
pointer - class
do so in viewDidLoad
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
methods for generating an instance
10. NSSet...
instance of UIView or one of its subclasses
unordered collection of objects - objects must be unique
message
self
11. NSDictionary...
Hash table - Look up objects using a key to get a value.
alloc - singleton - informational utility method?
data source - view controller and delegate
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
12. When an NSMutableArray is deallocated - it sends...
methods
data
the message release to all its entries
superclass's
13. In Cocoa Touch - the table view asks another object _ what it should display...
a mechanism to enable specific callbacks
super - self
its dataSource
message
14. Whenever a UINavigationController is about to swap views - it sends out two messages
viewWillDissapear: and viewWillAppear:
a single-array can contain objects of different types
draw images
class's
15. Files Owner...
view controller
Is a placeholder object
Encapsulation of functionality
NSCoder
16. Property List...
collection of collections - NSArray of an NSArray
methods for generating an instance
NSCoder
they need to be defined in the implementation file
17. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
calling code that does the instantiation for you
designated initializer
retain
18. The root view controller typically creates the next view controller - and the next _ creates the one after that
view
data
cannot be added to an array
view controller
19. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Core Graphics Framework
'getters' and 'setters'
self
unordered collection of objects - objects must be unique
20. NSArray - important methods...
instance variables
pointers
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
creating an initializer
21. 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
You take ownership for an object you want to keep a pointer to
Encapsulation of functionality
class
instance
22. Use of class methods - there are three...
Object wrapper around primitive types like int - float - double - BOOl
CF - Ref
rectangular
alloc - singleton - informational utility method?
23. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
ready-made instances - instantiation from scratch - and nib based instantiation
accessors - individually we call them 'getters' and 'setters'
Ready-Made Instance
wait until the loop finishes processing the event - at the end release it
24. Object Oriented based analogue to a function is called a...
implementation
method
Used to find the time right now or to store past or future time/dates
in the dealloc - or when a Controller's view is 'unloaded'
25. 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.
setPossessionName
message
first responder
CGRect
26. UIImageView is used to...
view controller's initialization method
draw images
copy - retain
class's
27. If you have extra work you want to do on the view...
Anytime you call a method with new - alloc or copy. You own and must release that object.
do so in viewDidLoad
creating an initializer
values
28. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
CF - Ref
arguments[message]
attributes - behavior
29. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
instance variables
CF - Ref
Controller Objects[Managers]
group of global functions already assigned to this class
30. Defining variables - three parts...
values
class methods - initializers
they need to be defined in the implementation file
type - name and value
31. Execution of the break statement...
%d
causes the program to immediately exit from the loop it is executing - whether its for - while or do
you must import the header file of that class
UIView
32. If the view has no subviews - create it programmatically; if it has subviews
instance variable of an object is valid
create a XIB file
group of global functions already assigned to this class
the array becomes an owner of that object and has a pointer to it.
33. At the top of any implementation file...
for inheritance - adopting the superclasses implementation
you must import the header file of that class
accessors - individually we call them 'getters' and 'setters'
Object wrapper around primitive types like int - float - double - BOOl
34. 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
the array relinquishes ownership of that object and no longer has a pointer to it
arguments[message]
safety - subclassability and makes code look more consistent with C structs
parentViewController
35. After accessors have been defined in the header file...
in the dealloc - or when a Controller's view is 'unloaded'
super - self
calling code that does the instantiation for you
they need to be defined in the implementation file
36. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
NSCoder
Generic object wrapper for other non-object data types
copy - retain
37. An instance is a device for maintaining state. It's a box for _ of data.
storage
ordered collection of objects - immutable
nil
creates an instance of NSString that holds the character string
38. NSNumber - class...
Continue
view
Object wrapper around primitive types like int - float - double - BOOl
the instance variables
39. 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.
data source - delegate and view controller
rectangular
creating an initializer
Controller Objects[Managers]
40. Number one use of protocols in iOS...
Controller Objects[Managers]
declaration and initialization of a variable
a mechanism to enable specific callbacks
delegates and dataSources
41. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
type - name and value
class methods - initializers
upper
NSBundle
42. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
receiver[message]
@interface ClassName:SuperClassName
safety - subclassability and makes code look more consistent with C structs
group of global functions already assigned to this class
43. 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
44. Each _ has a 'designated' initializer method....
'getters' and 'setters'
for inheritance - adopting the superclasses implementation
designated initializer
class
45. 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...
setPossessionName
a mechanism to enable specific callbacks
in the dealloc - or when a Controller's view is 'unloaded'
position
46. Primitives and C Structures...
they need to be defined in the implementation file
cannot be added to an array
creating an initializer
group of global functions already assigned to this class
47. A UITableView usually needs three different pieces...
data source - delegate and view controller
size and position
class's
Hash table - Look up objects using a key to get a value.
48. How do I implement my drawRect?
Core Graphics Framework
only the class and subclasses can access
Object wrapper around primitive types like int - float - double - BOOl
first responder
49. Prefixing a character string with an @ symbol [specific - NSString class]...
Used to find the time right now or to store past or future time/dates
creates an instance of NSString that holds the character string
ordered collection of objects - immutable
initializers
50. A pointer to the object being asked to execute a method
first responder
receiver[message]
receiving and handling events that are associated with it
NSBundle