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 _
rectangular
CF - Ref
%d
object
2. Views have three properties related to their location and size: @property _ _;
CGRect bounds - GCPoint center - CGRect frame
data
view controller's initialization method
will be ignored
3. In object oriented languages - we call methods that get and set instance variables accessors - individually we call them...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
4. The root view controller typically creates the next view controller - and the next _ creates the one after that
methods for generating an instance
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
view controller
variable scope - if defined within a block
5. A view is a subclass of _
data source - view controller and delegate
first responder
class methods - initializers
UIView
6. If you have extra work you want to do on the view...
do so in viewDidLoad
creates an instance of NSString that holds the character string
self
UIViewController
7. The integer prefix is...
new instances of the class or retrieve some global property of the class.
NSLog routine
%d
message
8. 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
9. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
CGFloat
protocol
object
10. Values to be supplied as the parameters to the method
they need to be defined in the implementation file
ordered collection of objects - immutable
arguments[message]
create a XIB file
11. The class is responsible for what instance variables the instance has - but not the _ of those variables.
nil
data source - delegate and view controller
values
only the innermost loop in which the break is executed is terminated
12. Files Owner...
selector[message]
define it in the implemenation file
for inheritance - adopting the superclasses implementation
Is a placeholder object
13. 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.
first responder
receiver
(id)initWithFrame:(CGRect)aRect;
Hash table - Look up objects using a key to get a value.
14. 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
15. Origin of a view's coordinate system is _ left
superclass's
upper
ready-made instances - instantiation from scratch - and nib based instantiation
protocol
16. Reducing details to focus on the core concepts
Abstraction
pointer to an object
Object wrapper around primitive types like int - float - double - BOOl
dealloc - is called on the object & the object's memory is returned to the heap
17. NSSet...
dealloc - is called on the object & the object's memory is returned to the heap
ordered collection of objects - immutable
data source - view controller and delegate
unordered collection of objects - objects must be unique
18. 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 _.
unordered collection of objects - objects must be unique
the instance variables
pointer - class
data
19. What does autorelease mean?
data source - delegate and view controller
wait until the loop finishes processing the event - at the end release it
instance
will be ignored
20. 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)
ordered collection of objects - immutable
@interface ClassName:SuperClassName
to get and set variables
21. Hold data and know nothing about the user interface
Model Objects[Factory Worker]
storage
the array becomes an owner of that object and has a pointer to it.
implementation
22. A _ handles touch events.
CGRect bounds - GCPoint center - CGRect frame
view
@synthesize
Instantiation from scratch
23. NSString *s = @'Hello - World'; is an example of...
array[class - NSMutableArray]
view
declaration and initialization of a variable
is called every time the event occurs
24. When an object is added to a NSMutableArray - that object is sent the message to retain;...
pointer - class
the array becomes an owner of that object and has a pointer to it.
storage
Anytime you call a method with new - alloc or copy. You own and must release that object.
25. A responder is responsible for...
receiving and handling events that are associated with it
receiver[message]
receiver
ordered collection of objects - immutable
26. If a break statement is executed from within a set of nested loops...
only the innermost loop in which the break is executed is terminated
safety - subclassability and makes code look more consistent with C structs
rectangular
first responder
27. 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
a mechanism to enable specific callbacks
Object wrapper around primitive types like int - float - double - BOOl
message
data
28. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
initializers
Maintenance of state
receiver[message]
type - name and value
29. NSArray - important methods...
initializers
the array becomes an owner of that object and has a pointer to it.
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Encapsulation of functionality
30. 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
parentViewController
attributes - behavior
@interface ClassName:SuperClassName
Functions
31. Prefixing a character string with an @ symbol [specific - NSString class]...
C Functionn
wait until the loop finishes processing the event - at the end release it
an object's property
creates an instance of NSString that holds the character string
32. In any application with UINavigationController - the navigation controller...
methods for generating an instance
'getters' and 'setters'
has one root view controller
the instance variables
33. Why properties?
new instances of the class or retrieve some global property of the class.
NSLog routine
receiver[message]
safety - subclassability and makes code look more consistent with C structs
34. Asking a class or object to execute a method
view controller
class's
data
message
35. Three ways instances are created...
type - name and value
Anytime you call a method with new - alloc or copy. You own and must release that object.
instance
ready-made instances - instantiation from scratch - and nib based instantiation
36. Each class picks one _ as it's designated initializer....
initializer
the instance variables
super - self
delegates and dataSources
37. A message is always contained in square brackets - and has three parts
receiver - selector - arguments
to get and set variables
draw images
the instance variables
38. if you implemented both the setter and getter - the @synthesize method...
the message release to all its entries
Continue
will be ignored
'getters' and 'setters'
39. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
You take ownership for an object you want to keep a pointer to
Generic object wrapper for other non-object data types
upper
40. At the top of any implementation file...
unordered collection of objects - objects must be unique
instance variable of an object is valid
C Functionn
you must import the header file of that class
41. When an NSMutableArray is deallocated - it sends...
the message release to all its entries
implementation
Instantiation from scratch
message
42. Class methods do not operate on an _ or have any access to _ variables....
instance
causes the program to immediately exit from the loop it is executing - whether its for - while or do
%d
attributes - behavior
43. 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
44. Designated initializer makes sure that every...
Model Objects[Factory Worker]
instance variable of an object is valid
UIView
calling code that does the instantiation for you
45. NSDictionary...
to get and set variables
Hash table - Look up objects using a key to get a value.
cannot be added to an array
method
46. Name of the method to be executed
Controller Objects[Managers]
the array relinquishes ownership of that object and no longer has a pointer to it
type - name and value
selector[message]
47. Objective C only allows for single inheritance - so in regards to class you only ever see the following pattern
instance variable of an object is valid
CF - Ref
Core Graphics Framework
@interface ClassName:SuperClassName
48. NSNumber - class...
Object wrapper around primitive types like int - float - double - BOOl
causes the program to immediately exit from the loop it is executing - whether its for - while or do
instance
@synthesize
49. id is a...
wait until the loop finishes processing the event - at the end release it
Generic object wrapper for other non-object data types
You take ownership for an object you want to keep a pointer to
pointer to an object
50. Class methods typically either create
new instances of the class or retrieve some global property of the class.
data source - delegate and view controller
CGRect bounds
position
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