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. In Objective C arrays can hold only...
group of global functions already assigned to this class
Continue
references to objects
receiver - selector - arguments
2. In general - class methods tend to be factory methods - that is...
group of global functions already assigned to this class
methods for generating an instance
storage
'getters' and 'setters'
3. initWithFrame: the designated initializer for UIView gives the view
its dataSource
ready-made instances - instantiation from scratch - and nib based instantiation
size and position
class
4. 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....
Functions
parentViewController
Controller Objects[Managers]
define it in the implemenation file
5. In the last line of an init method...
Anytime you call a method with new - alloc or copy. You own and must release that object.
callbacks
you always return the newly initialized object(return self)
NSBundle
6. 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
CGRect bounds - GCPoint center - CGRect frame
Anytime you call a method with new - alloc or copy. You own and must release that object.
a mechanism to enable specific callbacks
7. A UITableViewController can fill all three roles of...
data source - view controller and delegate
arguments[message]
you always return the newly initialized object(return self)
receiver[message]
8. Object Oriented based analogue to a function is called a...
will be ignored
draw images
lowercase - uppercase
method
9. NSSet...
Hash table - Look up objects using a key to get a value.
Continue
unordered collection of objects - objects must be unique
rectangular
10. NSDate - class...
Used to find the time right now or to store past or future time/dates
pointers
Ready-Made Instance
data
11. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
viewWillDissapear: and viewWillAppear:
reuse your cells
instance of UIView or one of its subclasses
12. Any individual object belonging to any class...
reuse your cells
variable scope - if defined within a block
is an instance of that class
'getters' and 'setters'
13. Typically the designated initializer has parameters for the most important and frequently used _ of an object
receiver[message]
declaration and initialization of a variable
instance variables
self
14. Ready-made instances...
you always return the newly initialized object(return self)
calling code that does the instantiation for you
values
a single-array can contain objects of different types
15. Defining variables - three parts...
class methods - initializers
type - name and value
receiver[message]
a mechanism to enable specific callbacks
16. A message is always contained in square brackets - and has three parts
arguments[message]
class's
receiver - selector - arguments
view controller's initialization method
17. In Cocoa Touch - the table view asks another object _ what it should display...
callbacks
(id)initWithFrame:(CGRect)aRect;
type - name and value
its dataSource
18. Just a floating point number - but we always use it for graphics.
Object wrapper around primitive types like int - float - double - BOOl
CGFloat
view
ready-made instances - instantiation from scratch - and nib based instantiation
19. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
superclass's
You take ownership for an object you want to keep a pointer to
header files declare
for inheritance - adopting the superclasses implementation
20. Origin of a view's coordinate system is _ left
an object's property
initializers
(id)initWithFrame:(CGRect)aRect;
upper
21. Delegation is an object oriented approach to
NSCoder
selector[message]
callbacks
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
22. The only reason to temporarily own an object - is...
the array relinquishes ownership of that object and no longer has a pointer to it
storage
to give it someone else - or another object
CF - Ref
23. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
view controller's initialization method
lowercase - uppercase
superclass's
instance variable of an object is valid
24. Whenever a UINavigationController is about to swap views - it sends out two messages
instance variables
viewWillDissapear: and viewWillAppear:
safety - subclassability and makes code look more consistent with C structs
method
25. 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 _.
subview(s)
object
Ready-Made Instance
nil
26. 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
27. NSString *s = @'Hello - World'; is an example of...
pointers
viewWillDissapear: and viewWillAppear:
declaration and initialization of a variable
(id)initWithFrame:(CGRect)aRect;
28. id is a...
alloc - singleton - informational utility method?
pointer to an object
rectangular
instance variable of an object is valid
29. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
@interface ClassName:SuperClassName
class
only the class and subclasses can access
30. class methods...
callbacks
group of global functions already assigned to this class
a mechanism to enable specific callbacks
draw images
31. Class methods do not operate on an _ or have any access to _ variables....
values
viewWillDissapear: and viewWillAppear:
instance
a mechanism to enable specific callbacks
32. Classes describe two things...
attributes - behavior
ordered collection of objects - immutable
Object wrapper around primitive types like int - float - double - BOOl
protocol
33. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
pointers
group of global functions already assigned to this class
unordered collection of objects - objects must be unique
Controller Objects[Managers]
34. 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's initialization method
position
implementation
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
35. Class methods typically either create
CGFloat
selector[message]
ordered collection of objects - immutable
new instances of the class or retrieve some global property of the class.
36. Prefixing a character string with an @ symbol [specific - NSString class]...
its dataSource
creates an instance of NSString that holds the character string
Object wrapper around primitive types like int - float - double - BOOl
size and position
37. UITableViewController is a subclass of...
for inheritance - adopting the superclasses implementation
NSBundle
setPossessionName
UIViewController
38. 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
group of global functions already assigned to this class
header files declare
array[class - NSMutableArray]
39. 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.
delegates and dataSources
methods for generating an instance
instance variables
a single-array can contain objects of different types
40. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
do so in viewDidLoad
class methods - initializers
retain
C Functionn
41. UIView - designated initializer...
an object's property
attributes - behavior
(id)initWithFrame:(CGRect)aRect;
protocol
42. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
self
calling code that does the instantiation for you
receiver
Used to find the time right now or to store past or future time/dates
43. Also if you send the NSObject the _ message - you own that object.
to give it someone else - or another object
retain
rectangular
pointer - class
44. Name of the method to be executed
instance
nil
selector[message]
lowercase - uppercase
45. Values to be supplied as the parameters to the method
CGFloat
ordered collection of objects - immutable
storage
arguments[message]
46. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
to give it someone else - or another object
size and position
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
initializers
47. An instance is a device for maintaining state. It's a box for _ of data.
storage
instance variables
Used to find the time right now or to store past or future time/dates
Data Encapsulation
48. @property - is using methods...
in the dealloc - or when a Controller's view is 'unloaded'
to get and set variables
initializer
to give it someone else - or another object
49. Proceed through the loop - jump back to the top and check again
upper
Continue
instance variables
implementation
50. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
to give it someone else - or another object
You take ownership for an object you want to keep a pointer to
do so in viewDidLoad
Sorry!:) No result found.
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