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?
Instantiation from scratch
@synthesize
setPossessionName
receiver
2. Files Owner...
Encapsulation of functionality
methods for generating an instance
instance variable of an object is valid
Is a placeholder object
3. Center and frame are used to _ your view
Continue
position
ordered collection of objects - immutable
variable scope - if defined within a block
4. NSDate - class...
Controller Objects[Managers]
the instance variables
has one root view controller
Used to find the time right now or to store past or future time/dates
5. UIViewController has several methods that get called at certain times...
initializers
Object wrapper around primitive types like int - float - double - BOOl
view
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
6. Typically the designated initializer has parameters for the most important and frequently used _ of an object
@synthesize
in the dealloc - or when a Controller's view is 'unloaded'
size and position
instance variables
7. In Objective C arrays can hold only...
collection of collections - NSArray of an NSArray
%d
view
references to objects
8. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
You take ownership for an object you want to keep a pointer to
position
CGRect
designated initializer
9. The root view controller typically creates the next view controller - and the next _ creates the one after that
NSCoder
Maintenance of state
view controller
creating an initializer
10. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
you always return the newly initialized object(return self)
position
Functions
11. super - is used...
a single-array can contain objects of different types
for inheritance - adopting the superclasses implementation
protocol
Core Graphics Framework
12. NSString objects are usually sent _ rather than _...
class methods - initializers
CGRect bounds - GCPoint center - CGRect frame
viewWillDissapear: and viewWillAppear:
copy - retain
13. NSArray - class...
upper
superclass's
to get and set variables
ordered collection of objects - immutable
14. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
pointers
CGRect
CGRect bounds - GCPoint center - CGRect frame
define it in the implemenation file
15. 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
16. Designated initializer makes sure that every...
Continue
instance variable of an object is valid
reuse your cells
size and position
17. If a break statement is executed from within a set of nested loops...
values
do so in viewDidLoad
the message release to all its entries
only the innermost loop in which the break is executed is terminated
18. A view is an...
lowercase - uppercase
instance of UIView or one of its subclasses
Instantiation from scratch
you must import the header file of that class
19. [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.
will be ignored
storage
data
size and position
20. 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
21. Hold data and know nothing about the user interface
initializers
delegates and dataSources
draw images
Model Objects[Factory Worker]
22. Core foundation classes are prefixed with _ and suffixed with _
class's
is an instance of that class
Hash table - Look up objects using a key to get a value.
CF - Ref
23. A command directed to an object is called an...
message
causes the program to immediately exit from the loop it is executing - whether its for - while or do
'getters' and 'setters'
to give it someone else - or another object
24. @property declares - and _ implements the setter and getter...
setPossessionName
@synthesize
Maintenance of state
Abstraction
25. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
(id)initWithFrame:(CGRect)aRect;
Controller Objects[Managers]
the instance variables
storage
26. Each _ has a 'designated' initializer method....
to give it someone else - or another object
instance variables
class
has one root view controller
27. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
Generic object wrapper for other non-object data types
only the class and subclasses can access
setPossessionName
C Functionn
28. 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
object
UIView
designated initializer
29. After accessors have been defined in the header file...
they need to be defined in the implementation file
Data Encapsulation
define it in the implemenation file
position
30. Classes describe two things...
attributes - behavior
CGRect
array[class - NSMutableArray]
collection of collections - NSArray of an NSArray
31. 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
Functions
Abstraction
Core Graphics Framework
CF - Ref
32. 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
view controller
Encapsulation of functionality
Continue
accessors - individually we call them 'getters' and 'setters'
33. 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 _.
size and position
subview(s)
creates an instance of NSString that holds the character string
C Functionn
34. The integer prefix is...
Is a placeholder object
Used to find the time right now or to store past or future time/dates
pointers
%d
35. At the top of any implementation file...
you must import the header file of that class
CF - Ref
dealloc - is called on the object & the object's memory is returned to the heap
alloc - singleton - informational utility method?
36. A view represents a _ area
the message release to all its entries
UIView
rectangular
Anytime you call a method with new - alloc or copy. You own and must release that object.
37. 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.
CGFloat
position
creating an initializer
method
38. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
data
class
delegates and dataSources
lowercase - uppercase
39. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
view controller
safety - subclassability and makes code look more consistent with C structs
position
40. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
object
is called every time the event occurs
self
initializers
41. When do you take ownership?...
Hash table - Look up objects using a key to get a value.
NSBundle
creating an initializer
Anytime you call a method with new - alloc or copy. You own and must release that object.
42. A responder is responsible for...
in the dealloc - or when a Controller's view is 'unloaded'
instance of UIView or one of its subclasses
view controller's initialization method
receiving and handling events that are associated with it
43. In general - class methods tend to be factory methods - that is...
methods for generating an instance
Abstraction
@interface ClassName:SuperClassName
will be ignored
44. If the view has no subviews - create it programmatically; if it has subviews
draw images
size and position
viewWillDissapear: and viewWillAppear:
create a XIB file
45. NSArray - important methods...
do so in viewDidLoad
they need to be defined in the implementation file
initializer
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
46. Name of the method to be executed
%d
selector[message]
the instance variables
wait until the loop finishes processing the event - at the end release it
47. Object Oriented based analogue to a function is called a...
calling code that does the instantiation for you
method
super - self
instance
48. Property List...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
attributes - behavior
collection of collections - NSArray of an NSArray
creates an instance of NSString that holds the character string
49. Whenever a UINavigationController is about to swap views - it sends out two messages
the instance variables
position
array[class - NSMutableArray]
viewWillDissapear: and viewWillAppear:
50. 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
message
Maintenance of state
calling code that does the instantiation for you
accessors - individually we call them 'getters' and 'setters'