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 a class method you cannot access...
the instance variables
You take ownership for an object you want to keep a pointer to
selector[message]
has one root view controller
2. Property List...
header files declare
size and position
collection of collections - NSArray of an NSArray
Model Objects[Factory Worker]
3. Each _ has a 'designated' initializer method....
rectangular
class
Ready-Made Instance
Is a placeholder object
4. A _ handles touch events.
class's
view
retain
data
5. After accessors have been defined in the header file...
methods
they need to be defined in the implementation file
Anytime you call a method with new - alloc or copy. You own and must release that object.
initializer
6. Categories are an Objective C way to add _ to an existing class without subclassing
Controller Objects[Managers]
methods
causes the program to immediately exit from the loop it is executing - whether its for - while or do
alloc - singleton - informational utility method?
7. C struct with a CGPoint origin and a CGSize size - in other words two c structs.
CGRect
collection of collections - NSArray of an NSArray
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
for inheritance - adopting the superclasses implementation
8. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
instance variables
Instantiation from scratch
wait until the loop finishes processing the event - at the end release it
header files declare
9. A UITableViewController can fill all three roles of...
instance variables
the instance variables
data source - view controller and delegate
Hash table - Look up objects using a key to get a value.
10. Hold data and know nothing about the user interface
draw images
Model Objects[Factory Worker]
@synthesize
ordered collection of objects - immutable
11. 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
Functions
is called every time the event occurs
a single-array can contain objects of different types
NSBundle
12. NSArray - important methods...
receiver
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
Model Objects[Factory Worker]
create a XIB file
13. UIView - designated initializer...
for inheritance - adopting the superclasses implementation
receiver
(id)initWithFrame:(CGRect)aRect;
they need to be defined in the implementation file
14. Three ways instances are created...
creating an initializer
new instances of the class or retrieve some global property of the class.
ready-made instances - instantiation from scratch - and nib based instantiation
to get and set variables
15. To load a Xib file manually - you use _
values
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CGFloat
NSBundle
16. Classes describe two things...
Generic object wrapper for other non-object data types
attributes - behavior
has one root view controller
methods for generating an instance
17. What does autorelease mean?
type - name and value
You take ownership for an object you want to keep a pointer to
NSCoder
wait until the loop finishes processing the event - at the end release it
18. 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
in the dealloc - or when a Controller's view is 'unloaded'
a mechanism to enable specific callbacks
C Functionn
%d
19. Object Oriented based analogue to a function is called a...
ordered collection of objects - immutable
rectangular
unordered collection of objects - objects must be unique
method
20. class methods...
is an instance of that class
group of global functions already assigned to this class
position
do so in viewDidLoad
21. @property - is using methods...
Is a placeholder object
Hash table - Look up objects using a key to get a value.
to get and set variables
creating an initializer
22. Ready-made instances...
Is a placeholder object
calling code that does the instantiation for you
Maintenance of state
super - self
23. Class methods do not operate on an _ or have any access to _ variables....
instance
they need to be defined in the implementation file
instance of UIView or one of its subclasses
the message release to all its entries
24. In object oriented languages - we call methods that get and set instance variables
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
25. A UITableView usually needs three different pieces...
ordered collection of objects - immutable
data source - delegate and view controller
in the dealloc - or when a Controller's view is 'unloaded'
method
26. The root view controller typically creates the next view controller - and the next _ creates the one after that
view controller
in the dealloc - or when a Controller's view is 'unloaded'
the array becomes an owner of that object and has a pointer to it.
lowercase - uppercase
27. 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
28. Each object does its own job - and presents to the rest of the world - to other objects - and indeed in a sense to the programmer - an opaque wall whose only entrances are the methods to which it promises to respond and the actions it promises to per
methods for generating an instance
do so in viewDidLoad
CF - Ref
Encapsulation of functionality
29. NSString *s = @'Hello - World'; is an example of...
declaration and initialization of a variable
selector[message]
CGRect
wait until the loop finishes processing the event - at the end release it
30. Also - because arrays only hold a pointer to an object...
Is a placeholder object
a single-array can contain objects of different types
references to objects
protocol
31. Views have three properties related to their location and size: @property _ _;
only the class and subclasses can access
draw images
UIViewController
CGRect bounds - GCPoint center - CGRect frame
32. A method in a _ is required unless its preceded by an @optional.
class
protocol
Core Graphics Framework
nil
33. Typically the designated initializer has parameters for the most important and frequently used _ of an object
instance variables
CGFloat
method
self
34. Primitives and C Structures...
cannot be added to an array
CGRect
view controller
safety - subclassability and makes code look more consistent with C structs
35. If you have extra work you want to do on the view...
receiver[message]
do so in viewDidLoad
Core Graphics Framework
Continue
36. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
header files declare
for inheritance - adopting the superclasses implementation
receiver
object
37. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
CGFloat
Maintenance of state
is called every time the event occurs
38. 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
39. super - is used...
only the innermost loop in which the break is executed is terminated
CGRect bounds
for inheritance - adopting the superclasses implementation
Model Objects[Factory Worker]
40. The class is responsible for what instance variables the instance has - but not the _ of those variables.
ready-made instances - instantiation from scratch - and nib based instantiation
Is a placeholder object
Core Graphics Framework
values
41. Designated initializer makes sure that every...
instance variables
instance variable of an object is valid
implementation
the array becomes an owner of that object and has a pointer to it.
42. if you implemented both the setter and getter - the @synthesize method...
methods for generating an instance
is called every time the event occurs
will be ignored
implementation
43. UIImageView is used to...
attributes - behavior
draw images
a mechanism to enable specific callbacks
they need to be defined in the implementation file
44. A callback is a function that is supplied in advance of an event - and...
CGRect bounds
is called every time the event occurs
@synthesize
@interface ClassName:SuperClassName
45. NSString* s2 = [s uppercase String]; Is an example of what kind of instance?
Anytime you call a method with new - alloc or copy. You own and must release that object.
unordered collection of objects - objects must be unique
instance
Ready-Made Instance
46. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
@synthesize
has one root view controller
header files declare
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
47. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
NSLog routine
self
type - name and value
Abstraction
48. At the top of any implementation file...
you must import the header file of that class
is called every time the event occurs
receiver - selector - arguments
CF - Ref
49. 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
Used to find the time right now or to store past or future time/dates
unordered collection of objects - objects must be unique
draw images
50. Reference Counting...
Core Graphics Framework
data source - view controller and delegate
You take ownership for an object you want to keep a pointer to
Ready-Made Instance
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