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. Core foundation classes are prefixed with _ and suffixed with _
declaration and initialization of a variable
only the class and subclasses can access
CF - Ref
they need to be defined in the implementation file
2. When an object is added to a NSMutableArray - that object is sent the message to retain;...
the array becomes an owner of that object and has a pointer to it.
CF - Ref
copy - retain
superclass's
3. Variable names tend to start with a _ letter; class names tend to start with an _ letter.
lowercase - uppercase
reuse your cells
methods
pointer to an object
4. Primitives and C Structures...
Ready-Made Instance
cannot be added to an array
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
method
5. Proceed through the loop - jump back to the top and check again
UIViewController
first responder
Continue
@synthesize
6. @property declares - and _ implements the setter and getter...
Functions
selector[message]
@synthesize
method
7. 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
Maintenance of state
is an instance of that class
ready-made instances - instantiation from scratch - and nib based instantiation
Controller Objects[Managers]
8. A collection object - an ordered list of objects that can be accesed by an index
view controller
C Functionn
superclass's
array[class - NSMutableArray]
9. How do I implement my drawRect?
object
Core Graphics Framework
header files declare
only the innermost loop in which the break is executed is terminated
10. UIImageView is used to...
message
Object wrapper around primitive types like int - float - double - BOOl
only the class and subclasses can access
draw images
11. When an NSMutableArray is deallocated - it sends...
attributes - behavior
the message release to all its entries
pointer to an object
has one root view controller
12. NSArray - important methods...
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
protocol
will be ignored
receiving and handling events that are associated with it
13. A view is an...
initializer
safety - subclassability and makes code look more consistent with C structs
instance of UIView or one of its subclasses
an object's property
14. Ready-made instances...
calling code that does the instantiation for you
setPossessionName
initializers
an object's property
15. 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
16. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
type - name and value
receiver[message]
new instances of the class or retrieve some global property of the class.
class methods - initializers
17. 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
18. id is a...
setPossessionName
pointer to an object
only the class and subclasses can access
self
19. When you send a message to _ - you are sending a message to _ - but demanding that the search for the method begin at the superclass....
super - self
initializers
Model Objects[Factory Worker]
UIView
20. Instance Variables by default are called @protected meaning...
only the class and subclasses can access
the message release to all its entries
super - self
Continue
21. Classes describe two things...
attributes - behavior
they need to be defined in the implementation file
ordered collection of objects - immutable
only the innermost loop in which the break is executed is terminated
22. The class is responsible for what instance variables the instance has - but not the _ of those variables.
message
values
@interface ClassName:SuperClassName
arguments[message]
23. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
class methods - initializers
a single-array can contain objects of different types
receiver
header files declare
24. NSDictionary...
superclass's
Hash table - Look up objects using a key to get a value.
CGRect
message
25. Why properties?
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
only the class and subclasses can access
safety - subclassability and makes code look more consistent with C structs
do so in viewDidLoad
26. UIView - designated initializer...
method
(id)initWithFrame:(CGRect)aRect;
NSCoder
CGRect
27. An instance is a device for maintaining state. It's a box for _ of data.
NSBundle
storage
Encapsulation of functionality
receiver
28. Just a floating point number - but we always use it for graphics.
(id)initWithFrame:(CGRect)aRect;
CGFloat
data source - view controller and delegate
alloc - singleton - informational utility method?
29. A pointer to the object being asked to execute a method
cannot be added to an array
receiver[message]
Abstraction
pointers
30. A responder is responsible for...
has one root view controller
receiving and handling events that are associated with it
NSCoder
implementation
31. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
self
NSCoder
a single-array can contain objects of different types
@interface ClassName:SuperClassName
32. At the top of any implementation file...
you must import the header file of that class
do so in viewDidLoad
size and position
Object wrapper around primitive types like int - float - double - BOOl
33. Categories are an Objective C way to add _ to an existing class without subclassing
callbacks
variable scope - if defined within a block
methods
you must import the header file of that class
34. The designated initializer calls the _ designated initializer....
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
35. A UITableViewController can fill all three roles of...
NSLog routine
data source - view controller and delegate
message
for inheritance - adopting the superclasses implementation
36. if you implemented both the setter and getter - the @synthesize method...
Instantiation from scratch
will be ignored
receiver[message]
implementation
37. initWithFrame: the designated initializer for UIView gives the view
will be ignored
size and position
a mechanism to enable specific callbacks
they need to be defined in the implementation file
38. A method in a _ is required unless its preceded by an @optional.
Abstraction
protocol
variable scope - if defined within a block
only the innermost loop in which the break is executed is terminated
39. UITableViewController is a subclass of...
receiver - selector - arguments
dealloc - is called on the object & the object's memory is returned to the heap
UIViewController
has one root view controller
40. 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
creating an initializer
Model Objects[Factory Worker]
only the innermost loop in which the break is executed is terminated
41. Defining variables - three parts...
type - name and value
NSCoder
receiver
new instances of the class or retrieve some global property of the class.
42. Three ways instances are created...
data
wait until the loop finishes processing the event - at the end release it
an object's property
ready-made instances - instantiation from scratch - and nib based instantiation
43. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
Generic object wrapper for other non-object data types
self
viewWillDissapear: and viewWillAppear:
an object's property
44. 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.
to give it someone else - or another object
first responder
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
nil
45. When do you take ownership?...
first responder
Anytime you call a method with new - alloc or copy. You own and must release that object.
superclass's
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
46. A view represents a _ area
group of global functions already assigned to this class
rectangular
pointers
Core Graphics Framework
47. NSArray - class...
Data Encapsulation
has one root view controller
ordered collection of objects - immutable
Is a placeholder object
48. If you have extra work you want to do on the view...
self
arguments[message]
do so in viewDidLoad
'getters' and 'setters'
49. If a break statement is executed from within a set of nested loops...
NSLog routine
only the innermost loop in which the break is executed is terminated
is an instance of that class
CGRect bounds
50. The only reason to temporarily own an object - is...
to give it someone else - or another object
instance variable of an object is valid
initializers
CGRect bounds
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