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. 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
NSCoder
parentViewController
accessors - individually we call them 'getters' and 'setters'
class's
2. NSString objects are usually sent _ rather than _...
arguments[message]
copy - retain
cannot be added to an array
Model Objects[Factory Worker]
3. At the top of any implementation file...
you must import the header file of that class
Abstraction
unordered collection of objects - objects must be unique
Functions
4. 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...
You take ownership for an object you want to keep a pointer to
class
Data Encapsulation
setPossessionName
5. All objects are accessed using...
pointers
array[class - NSMutableArray]
protocol
pointer to an object
6. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
@interface ClassName:SuperClassName
retain
storage
Hash table - Look up objects using a key to get a value.
7. 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.
pointer - class
implementation
Is a placeholder object
first responder
8. A callback is a function that is supplied in advance of an event - and...
is called every time the event occurs
declaration and initialization of a variable
CGFloat
pointer to an object
9. A UITableViewController can fill all three roles of...
data source - view controller and delegate
instance variables
instance
Object wrapper around primitive types like int - float - double - BOOl
10. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
pointer - class
self
size and position
method
11. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
attributes - behavior
Model Objects[Factory Worker]
instance variables
12. 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
13. In Objective C arrays can hold only...
for inheritance - adopting the superclasses implementation
references to objects
ready-made instances - instantiation from scratch - and nib based instantiation
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
14. Only exists within the statement block there defined - outside of the block is fine
object
Encapsulation of functionality
data
variable scope - if defined within a block
15. Object Oriented based analogue to a function is called a...
subview(s)
method
initializers
%d
16. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
calling code that does the instantiation for you
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
to give it someone else - or another object
Controller Objects[Managers]
17. 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 _.
pointer - class
Maintenance of state
safety - subclassability and makes code look more consistent with C structs
they need to be defined in the implementation file
18. if you implemented both the setter and getter - the @synthesize method...
creating an initializer
CGRect
Core Graphics Framework
will be ignored
19. The class is responsible for what instance variables the instance has - but not the _ of those variables.
message
viewWillDissapear: and viewWillAppear:
values
the array relinquishes ownership of that object and no longer has a pointer to it
20. @property declares - and _ implements the setter and getter...
@synthesize
has one root view controller
Is a placeholder object
parentViewController
21. If a break statement is executed from within a set of nested loops...
method
CGRect bounds - GCPoint center - CGRect frame
arguments[message]
only the innermost loop in which the break is executed is terminated
22. When an object is added to a NSMutableArray - that object is sent the message to retain;...
receiver[message]
methods
a single-array can contain objects of different types
the array becomes an owner of that object and has a pointer to it.
23. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
instance variables
the instance variables
subview(s)
24. Designated initializer makes sure that every...
instance variable of an object is valid
an object's property
instance variables
Continue
25. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
only the class and subclasses can access
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Functions
initializers
26. A UITableView usually needs three different pieces...
for inheritance - adopting the superclasses implementation
wait until the loop finishes processing the event - at the end release it
data source - delegate and view controller
its dataSource
27. A view is an...
instance of UIView or one of its subclasses
Encapsulation of functionality
class's
%d
28. @property - is using methods...
ready-made instances - instantiation from scratch - and nib based instantiation
to get and set variables
the message release to all its entries
Ready-Made Instance
29. Hold data and know nothing about the user interface
pointers
Object wrapper around primitive types like int - float - double - BOOl
for inheritance - adopting the superclasses implementation
Model Objects[Factory Worker]
30. 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
declaration and initialization of a variable
Maintenance of state
subview(s)
message
31. In a class method you cannot access...
ordered collection of objects - immutable
the instance variables
receiving and handling events that are associated with it
Abstraction
32. NSDictionary...
Is a placeholder object
group of global functions already assigned to this class
Hash table - Look up objects using a key to get a value.
array[class - NSMutableArray]
33. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Ready-Made Instance
NSLog routine
initializer
message
34. Reference Counting...
you must import the header file of that class
You take ownership for an object you want to keep a pointer to
CGRect
instance variable of an object is valid
35. Ready-made instances...
callbacks
references to objects
Anytime you call a method with new - alloc or copy. You own and must release that object.
calling code that does the instantiation for you
36. UIImageView is used to...
instance variable of an object is valid
create a XIB file
draw images
dealloc - is called on the object & the object's memory is returned to the heap
37. 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
receiver - selector - arguments
a mechanism to enable specific callbacks
receiver
the array becomes an owner of that object and has a pointer to it.
38. [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.
delegates and dataSources
data
Model Objects[Factory Worker]
a single-array can contain objects of different types
39. 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....
class methods - initializers
UIViewController
define it in the implemenation file
receiver - selector - arguments
40. A collection object - an ordered list of objects that can be accesed by an index
upper
variable scope - if defined within a block
array[class - NSMutableArray]
initializer
41. NSArray - class...
ordered collection of objects - immutable
subview(s)
initializer
view
42. Execution of the break statement...
causes the program to immediately exit from the loop it is executing - whether its for - while or do
C Functionn
do so in viewDidLoad
calling code that does the instantiation for you
43. You use _ to implement the view
methods
CGRect bounds
array[class - NSMutableArray]
CGFloat
44. Class methods typically either create
position
data
new instances of the class or retrieve some global property of the class.
instance variables
45. id is a...
pointer to an object
class's
Instantiation from scratch
retain
46. 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
instance variables
type - name and value
Anytime you call a method with new - alloc or copy. You own and must release that object.
Functions
47. Values to be supplied as the parameters to the method
arguments[message]
protocol
Encapsulation of functionality
its dataSource
48. Origin of a view's coordinate system is _ left
a mechanism to enable specific callbacks
upper
super - self
new instances of the class or retrieve some global property of the class.
49. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
(id)initWithFrame:(CGRect)aRect;
CGRect
C Functionn
cannot be added to an array
50. Reducing details to focus on the core concepts
Abstraction
variable scope - if defined within a block
pointer to an object
lowercase - uppercase
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