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. Ready-made instances...
CGRect
calling code that does the instantiation for you
cannot be added to an array
Model Objects[Factory Worker]
2. Property List...
is an instance of that class
a single-array can contain objects of different types
collection of collections - NSArray of an NSArray
class's
3. How do I implement my drawRect?
Core Graphics Framework
calling code that does the instantiation for you
data
you must import the header file of that class
4. Only exists within the statement block there defined - outside of the block is fine
variable scope - if defined within a block
object
initializer
viewWillDissapear: and viewWillAppear:
5. An instance is a device for maintaining state. It's a box for _ of data.
view controller
UIViewController
storage
message
6. 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 _.
CGRect bounds - GCPoint center - CGRect frame
subview(s)
@interface ClassName:SuperClassName
receiving and handling events that are associated with it
7. 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.
Ready-Made Instance
Generic object wrapper for other non-object data types
creating an initializer
instance
8. If a class declares a _ that is different from its superclass - you must override the superclass' _ to call the new _...
group of global functions already assigned to this class
designated initializer
Core Graphics Framework
declaration and initialization of a variable
9. UIImageView is used to...
methods for generating an instance
instance of UIView or one of its subclasses
causes the program to immediately exit from the loop it is executing - whether its for - while or do
draw images
10. All objects are accessed using...
to get and set variables
instance variables
pointers
Abstraction
11. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
instance variable of an object is valid
view controller
receiver
initializers
12. Views have three properties related to their location and size: @property _ _;
Used to find the time right now or to store past or future time/dates
CGRect bounds - GCPoint center - CGRect frame
do so in viewDidLoad
arguments[message]
13. When an object is removed from an NSMutableArray - that object is sent the message release;...
the array relinquishes ownership of that object and no longer has a pointer to it
object
class methods - initializers
the message release to all its entries
14. 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.
object
accessors - individually we call them 'getters' and 'setters'
header files declare
Data Encapsulation
15. When do you take ownership?...
Anytime you call a method with new - alloc or copy. You own and must release that object.
C Functionn
is called every time the event occurs
Generic object wrapper for other non-object data types
16. 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
Encapsulation of functionality
Model Objects[Factory Worker]
first responder
17. id is a...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
ordered collection of objects - immutable
pointer to an object
Is a placeholder object
18. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
has one root view controller
super - self
copy - retain
a mechanism to enable specific callbacks
19. Asking a class or object to execute a method
receiver
first responder
message
'getters' and 'setters'
20. A pointer to the object being asked to execute a method
create a XIB file
receiver[message]
you always return the newly initialized object(return self)
retain
21. In a class method you cannot access...
will be ignored
the instance variables
creates an instance of NSString that holds the character string
initializer
22. NSString *s = @'Hello - World'; is an example of...
receiver - selector - arguments
pointer - class
Maintenance of state
declaration and initialization of a variable
23. The integer prefix is...
instance
subview(s)
lowercase - uppercase
%d
24. super - is used...
Is a placeholder object
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
for inheritance - adopting the superclasses implementation
NSBundle
25. [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.
object
data
receiver
Hash table - Look up objects using a key to get a value.
26. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
initializer
C Functionn
define it in the implemenation file
lowercase - uppercase
27. A UITableViewController can fill all three roles of...
has one root view controller
data source - view controller and delegate
for inheritance - adopting the superclasses implementation
its dataSource
28. 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 _.
will be ignored
nil
Ready-Made Instance
is an instance of that class
29. 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
30. 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
safety - subclassability and makes code look more consistent with C structs
parentViewController
Hash table - Look up objects using a key to get a value.
'getters' and 'setters'
31. At the top of any implementation file...
you must import the header file of that class
first responder
define it in the implemenation file
'getters' and 'setters'
32. 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 _.
variable scope - if defined within a block
pointer - class
message
define it in the implemenation file
33. What does autorelease mean?
wait until the loop finishes processing the event - at the end release it
the array relinquishes ownership of that object and no longer has a pointer to it
initializer
reuse your cells
34. Any individual object belonging to any class...
the array becomes an owner of that object and has a pointer to it.
to get and set variables
an object's property
is an instance of that class
35. Classes describe two things...
only the innermost loop in which the break is executed is terminated
attributes - behavior
cannot be added to an array
(id)initWithFrame:(CGRect)aRect;
36. A command directed to an object is called an...
message
retain
UIView
storage
37. In Objective C arrays can hold only...
CF - Ref
type - name and value
references to objects
creating an initializer
38. Three ways instances are created...
class methods - initializers
ready-made instances - instantiation from scratch - and nib based instantiation
CGRect bounds
a single-array can contain objects of different types
39. @property declares - and _ implements the setter and getter...
Functions
methods for generating an instance
@synthesize
position
40. Categories are an Objective C way to add _ to an existing class without subclassing
NSBundle
unordered collection of objects - objects must be unique
methods
methods for generating an instance
41. NSValue - class...
message
Generic object wrapper for other non-object data types
do so in viewDidLoad
(id)initWithFrame:(CGRect)aRect;
42. 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
an object's property
Object wrapper around primitive types like int - float - double - BOOl
rectangular
Maintenance of state
43. @property - is using methods...
cannot be added to an array
attributes - behavior
to get and set variables
Instantiation from scratch
44. 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
45. A method in a _ is required unless its preceded by an @optional.
Is a placeholder object
protocol
instance variables
alloc - singleton - informational utility method?
46. Primitives and C Structures...
Continue
safety - subclassability and makes code look more consistent with C structs
its dataSource
cannot be added to an array
47. A responder is responsible for...
super - self
Used to find the time right now or to store past or future time/dates
wait until the loop finishes processing the event - at the end release it
receiving and handling events that are associated with it
48. Delegation is an object oriented approach to
Is a placeholder object
is called every time the event occurs
instance variables
callbacks
49. A message is always contained in square brackets - and has three parts
CF - Ref
receiver - selector - arguments
the array becomes an owner of that object and has a pointer to it.
class methods - initializers
50. 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