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. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
a single-array can contain objects of different types
Abstraction
message
2. 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...
subview(s)
setPossessionName
object
arguments[message]
3. Designated initializer makes sure that every...
methods
instance variable of an object is valid
variable scope - if defined within a block
only the innermost loop in which the break is executed is terminated
4. UIViewController has several methods that get called at certain times...
new instances of the class or retrieve some global property of the class.
unordered collection of objects - objects must be unique
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
define it in the implemenation file
5. A UITableViewController can fill all three roles of...
storage
data source - view controller and delegate
(id)initWithFrame:(CGRect)aRect;
nil
6. Reducing details to focus on the core concepts
attributes - behavior
Used to find the time right now or to store past or future time/dates
method
Abstraction
7. Name of the method to be executed
initializers
Continue
methods
selector[message]
8. Origin of a view's coordinate system is _ left
upper
new instances of the class or retrieve some global property of the class.
class methods - initializers
header files declare
9. 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.
view controller
the instance variables
implementation
will be ignored
10. NSNumber - class...
you must import the header file of that class
Object wrapper around primitive types like int - float - double - BOOl
NSCoder
class methods - initializers
11. When an NSMutableArray is deallocated - it sends...
instance variables
initializers
the message release to all its entries
group of global functions already assigned to this class
12. A responder is responsible for...
receiving and handling events that are associated with it
(id)initWithFrame:(CGRect)aRect;
size and position
Object wrapper around primitive types like int - float - double - BOOl
13. NSDictionary...
creating an initializer
Hash table - Look up objects using a key to get a value.
CGRect
wait until the loop finishes processing the event - at the end release it
14. UIView - designated initializer...
(id)initWithFrame:(CGRect)aRect;
you always return the newly initialized object(return self)
Continue
CGFloat
15. What does autorelease mean?
data
calling code that does the instantiation for you
wait until the loop finishes processing the event - at the end release it
nil
16. 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
17. UIImageView is used to...
draw images
Controller Objects[Managers]
Functions
alloc - singleton - informational utility method?
18. Typically the designated initializer has parameters for the most important and frequently used _ of an object
type - name and value
class's
rectangular
instance variables
19. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
Controller Objects[Managers]
a single-array can contain objects of different types
designated initializer
storage
20. if you implemented both the setter and getter - the @synthesize method...
copy - retain
self
will be ignored
pointer - class
21. NSSet...
they need to be defined in the implementation file
unordered collection of objects - objects must be unique
references to objects
instance variable of an object is valid
22. A command directed to an object is called an...
message
only the innermost loop in which the break is executed is terminated
superclass's
subview(s)
23. Prefixing a character string with an @ symbol [specific - NSString class]...
CGRect bounds - GCPoint center - CGRect frame
creates an instance of NSString that holds the character string
group of global functions already assigned to this class
variable scope - if defined within a block
24. 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
NSBundle
method
25. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
Is a placeholder object
C Functionn
class's
class methods - initializers
26. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
values
new instances of the class or retrieve some global property of the class.
type - name and value
header files declare
27. Execution of the break statement...
an object's property
retain
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
causes the program to immediately exit from the loop it is executing - whether its for - while or do
28. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
superclass's
initializer
references to objects
receiver
29. How do I implement my drawRect?
initializer
draw images
Core Graphics Framework
first responder
30. The integer prefix is...
(id)initWithFrame:(CGRect)aRect;
has one root view controller
%d
the array becomes an owner of that object and has a pointer to it.
31. When do we need to release our outlets?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
32. After accessors have been defined in the header file...
will be ignored
they need to be defined in the implementation file
size and position
data source - delegate and view controller
33. You use _ to implement the view
CGRect bounds
receiver
creating an initializer
CGFloat
34. 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.
creating an initializer
has one root view controller
first responder
object
35. Ready-made instances...
its dataSource
pointer to an object
pointer - class
calling code that does the instantiation for you
36. Three ways instances are created...
data source - view controller and delegate
UIViewController
copy - retain
ready-made instances - instantiation from scratch - and nib based instantiation
37. Primitives and C Structures...
cannot be added to an array
an object's property
instance
position
38. @property declares - and _ implements the setter and getter...
@synthesize
data source - view controller and delegate
an object's property
first responder
39. At the top of any implementation file...
you must import the header file of that class
message
UIView
CGRect bounds - GCPoint center - CGRect frame
40. A function in the objective c library that simply displays or logs it's argument
C Functionn
its dataSource
NSLog routine
to give it someone else - or another object
41. 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
instance of UIView or one of its subclasses
CGRect bounds
dealloc - is called on the object & the object's memory is returned to the heap
Encapsulation of functionality
42. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
UIViewController
first responder
super - self
collection of collections - NSArray of an NSArray
43. A view represents a _ area
rectangular
safety - subclassability and makes code look more consistent with C structs
only the class and subclasses can access
attributes - behavior
44. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
NSCoder
lowercase - uppercase
attributes - behavior
methods
45. initWithFrame: the designated initializer for UIView gives the view
@synthesize
methods for generating an instance
size and position
Encapsulation of functionality
46. NSString *s = @'Hello - World'; is an example of...
receiver - selector - arguments
declaration and initialization of a variable
Core Graphics Framework
protocol
47. Categories are an Objective C way to add _ to an existing class without subclassing
instance variable of an object is valid
an object's property
do so in viewDidLoad
methods
48. NSDate - class...
ordered collection of objects - immutable
UIView
methods
Used to find the time right now or to store past or future time/dates
49. 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.
Object wrapper around primitive types like int - float - double - BOOl
collection of collections - NSArray of an NSArray
50. Asking a class or object to execute a method
create a XIB file
message
Is a placeholder object
object