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. Defining variables - three parts...
instance variables
UIViewController
self
type - name and value
2. In general - class methods tend to be factory methods - that is...
UIViewController
Controller Objects[Managers]
methods for generating an instance
designated initializer
3. [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.
ordered collection of objects - immutable
data
protocol
position
4. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
dealloc - is called on the object & the object's memory is returned to the heap
only the innermost loop in which the break is executed is terminated
header files declare
type - name and value
5. In Objective C arrays can hold only...
references to objects
upper
data
wait until the loop finishes processing the event - at the end release it
6. Reference Counting...
draw images
You take ownership for an object you want to keep a pointer to
NSCoder
initializers
7. Primitives and C Structures...
cannot be added to an array
header files declare
the array becomes an owner of that object and has a pointer to it.
UIViewController
8. Delegation is an object oriented approach to
callbacks
method
its dataSource
Core Graphics Framework
9. What does autorelease mean?
methods
CGRect
creates an instance of NSString that holds the character string
wait until the loop finishes processing the event - at the end release it
10. 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
to get and set variables
an object's property
first responder
Maintenance of state
11. 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...
receiving and handling events that are associated with it
define it in the implemenation file
setPossessionName
view controller
12. We can use dot notation to reference...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
13. 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.
(id)initWithFrame:(CGRect)aRect;
creating an initializer
Encapsulation of functionality
Is a placeholder object
14. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
delegates and dataSources
You take ownership for an object you want to keep a pointer to
UIViewController
15. Asking a class or object to execute a method
selector[message]
message
dealloc - is called on the object & the object's memory is returned to the heap
superclass's
16. NSSet...
group of global functions already assigned to this class
unordered collection of objects - objects must be unique
Continue
wait until the loop finishes processing the event - at the end release it
17. When an object is removed from an NSMutableArray - that object is sent the message release;...
Continue
the array relinquishes ownership of that object and no longer has a pointer to it
lowercase - uppercase
data source - delegate and view controller
18. id is a...
pointer to an object
storage
wait until the loop finishes processing the event - at the end release it
reuse your cells
19. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
a single-array can contain objects of different types
header files declare
Model Objects[Factory Worker]
C Functionn
20. Class methods do not operate on an _ or have any access to _ variables....
instance
receiver[message]
Is a placeholder object
header files declare
21. Prefixing a character string with an @ symbol [specific - NSString class]...
draw images
Abstraction
CF - Ref
creates an instance of NSString that holds the character string
22. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
new instances of the class or retrieve some global property of the class.
object
Data Encapsulation
Ready-Made Instance
23. A UITableView usually needs three different pieces...
'getters' and 'setters'
implementation
data source - delegate and view controller
wait until the loop finishes processing the event - at the end release it
24. Use of class methods - there are three...
in the dealloc - or when a Controller's view is 'unloaded'
has one root view controller
alloc - singleton - informational utility method?
initializer
25. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
an object's property
instance
declaration and initialization of a variable
super - self
26. You use _ to implement the view
header files declare
a mechanism to enable specific callbacks
CGRect bounds
alloc - singleton - informational utility method?
27. @property - is using methods...
to get and set variables
CGRect bounds - GCPoint center - CGRect frame
Instantiation from scratch
to give it someone else - or another object
28. In any application with UINavigationController - the navigation controller...
has one root view controller
data
view
Model Objects[Factory Worker]
29. Values to be supplied as the parameters to the method
group of global functions already assigned to this class
arguments[message]
method
creating an initializer
30. 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 _.
a mechanism to enable specific callbacks
pointer - class
an object's property
CGFloat
31. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
Instantiation from scratch
creates an instance of NSString that holds the character string
instance variables
class's
32. 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 _.
values
receiving and handling events that are associated with it
subview(s)
designated initializer
33. NSArray - class...
upper
Anytime you call a method with new - alloc or copy. You own and must release that object.
safety - subclassability and makes code look more consistent with C structs
ordered collection of objects - immutable
34. initWithFrame: the designated initializer for UIView gives the view
initializers
size and position
@synthesize
receiver
35. Categories are an Objective C way to add _ to an existing class without subclassing
Controller Objects[Managers]
first responder
setPossessionName
methods
36. Also - because arrays only hold a pointer to an object...
Model Objects[Factory Worker]
instance variable of an object is valid
receiver
a single-array can contain objects of different types
37. All objects are accessed using...
pointers
position
Data Encapsulation
C Functionn
38. In a class method you cannot access...
the instance variables
they need to be defined in the implementation file
superclass's
the message release to all its entries
39. A delegate is a pointer to an object with a set of methods the delegate-holder knows how to call. In other words - it's _ from a later created object
viewWillDissapear: and viewWillAppear:
CGRect bounds - GCPoint center - CGRect frame
a mechanism to enable specific callbacks
Data Encapsulation
40. NSValue - class...
Generic object wrapper for other non-object data types
pointers
You take ownership for an object you want to keep a pointer to
receiving and handling events that are associated with it
41. 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.
implementation
alloc - singleton - informational utility method?
Hash table - Look up objects using a key to get a value.
@synthesize
42. UIView - designated initializer...
will be ignored
(id)initWithFrame:(CGRect)aRect;
references to objects
Core Graphics Framework
43. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
Maintenance of state
has one root view controller
delegates and dataSources
44. Why properties?
safety - subclassability and makes code look more consistent with C structs
instance variables
view
references to objects
45. Designated initializer makes sure that every...
initializer
instance variable of an object is valid
header files declare
method
46. A function in the objective c library that simply displays or logs it's argument
receiver - selector - arguments
declaration and initialization of a variable
NSLog routine
selector[message]
47. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
Ready-Made Instance
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
You take ownership for an object you want to keep a pointer to
@interface ClassName:SuperClassName
48. NSNumber - class...
to get and set variables
callbacks
type - name and value
Object wrapper around primitive types like int - float - double - BOOl
49. Typically the designated initializer has parameters for the most important and frequently used _ of an object
Object wrapper around primitive types like int - float - double - BOOl
Controller Objects[Managers]
instance variables
CF - Ref
50. 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 _.
initializer
Model Objects[Factory Worker]
message
nil
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests