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. A class inherits all _ from its superclass and can add as many as it wants for its own purposes....
message
accessors - individually we call them 'getters' and 'setters'
initializers
first responder
2. Values to be supplied as the parameters to the method
arguments[message]
Generic object wrapper for other non-object data types
position
collection of collections - NSArray of an NSArray
3. 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
receiving and handling events that are associated with it
receiver - selector - arguments
Encapsulation of functionality
only the innermost loop in which the break is executed is terminated
4. Also - because arrays only hold a pointer to an object...
You take ownership for an object you want to keep a pointer to
safety - subclassability and makes code look more consistent with C structs
a single-array can contain objects of different types
@interface ClassName:SuperClassName
5. 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
6. Typically the designated initializer has parameters for the most important and frequently used _ of an object
position
dealloc - is called on the object & the object's memory is returned to the heap
Core Graphics Framework
instance variables
7. Primitives and C Structures...
delegates and dataSources
the instance variables
type - name and value
cannot be added to an array
8. 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
methods for generating an instance
C Functionn
Functions
self
9. In any application with UINavigationController - the navigation controller...
retain
size and position
has one root view controller
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
10. A command directed to an object is called an...
initializer
Hash table - Look up objects using a key to get a value.
message
the array becomes an owner of that object and has a pointer to it.
11. Execution of the break statement...
data
the array relinquishes ownership of that object and no longer has a pointer to it
causes the program to immediately exit from the loop it is executing - whether its for - while or do
%d
12. To load a Xib file manually - you use _
Continue
to get and set variables
draw images
NSBundle
13. In Objective C arrays can hold only...
type - name and value
Object wrapper around primitive types like int - float - double - BOOl
view
references to objects
14. When do you take ownership?...
creating an initializer
calling code that does the instantiation for you
CGRect bounds - GCPoint center - CGRect frame
Anytime you call a method with new - alloc or copy. You own and must release that object.
15. Just a floating point number - but we always use it for graphics.
calling code that does the instantiation for you
view controller
CGFloat
CGRect bounds
16. 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
parentViewController
retain
Data Encapsulation
class methods - initializers
17. 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 _.
ready-made instances - instantiation from scratch - and nib based instantiation
has one root view controller
subview(s)
data source - view controller and delegate
18. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
self
object
setPossessionName
Abstraction
19. UIImageView is used to...
draw images
they need to be defined in the implementation file
accessors - individually we call them 'getters' and 'setters'
@synthesize
20. The root view controller typically creates the next view controller - and the next _ creates the one after that
a single-array can contain objects of different types
view controller
collection of collections - NSArray of an NSArray
Functions
21. super - is used...
copy - retain
unordered collection of objects - objects must be unique
for inheritance - adopting the superclasses implementation
class's
22. If you have extra work you want to do on the view...
protocol
wait until the loop finishes processing the event - at the end release it
do so in viewDidLoad
methods
23. Origin of a view's coordinate system is _ left
upper
the array becomes an owner of that object and has a pointer to it.
Maintenance of state
class methods - initializers
24. Ready-made instances...
calling code that does the instantiation for you
Continue
NSBundle
a single-array can contain objects of different types
25. NSString *s = @'Hello - World'; is an example of...
Is a placeholder object
declaration and initialization of a variable
class
header files declare
26. A view is an...
retain
instance of UIView or one of its subclasses
ordered collection of objects - immutable
viewWillDissapear: and viewWillAppear:
27. Inside a method - _ is an implicit local variable. Typically - _ is used so that an object can send a message to itself....
CGFloat
methods
self
cannot be added to an array
28. @property - is using methods...
pointer - class
to get and set variables
@synthesize
pointers
29. 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
30. After accessors have been defined in the header file...
they need to be defined in the implementation file
in the dealloc - or when a Controller's view is 'unloaded'
Continue
receiver - selector - arguments
31. NSDate - class...
setPossessionName
a mechanism to enable specific callbacks
initializers
Used to find the time right now or to store past or future time/dates
32. Delegation is an object oriented approach to
they need to be defined in the implementation file
size and position
callbacks
copy - retain
33. Files Owner...
You take ownership for an object you want to keep a pointer to
Is a placeholder object
reuse your cells
retain
34. A UITableViewController can fill all three roles of...
data source - view controller and delegate
Abstraction
methods for generating an instance
designated initializer
35. If you aren't going to initialize an instance reference pointer at the moment you declare it by assigning a real value - it's a good idea to assign it _.
initializer
(id)initWithFrame:(CGRect)aRect;
nil
methods for generating an instance
36. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
receiving and handling events that are associated with it
draw images
Controller Objects[Managers]
copy - retain
37. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
receiver
its dataSource
has one root view controller
in the dealloc - or when a Controller's view is 'unloaded'
38. 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
viewWillDissapear: and viewWillAppear:
unordered collection of objects - objects must be unique
method
39. A method in a _ is required unless its preceded by an @optional.
view controller's initialization method
Ready-Made Instance
(id)initWithFrame:(CGRect)aRect;
protocol
40. In a class method you cannot access...
the array relinquishes ownership of that object and no longer has a pointer to it
view
the instance variables
view controller's initialization method
41. UIViewController has several methods that get called at certain times...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
subview(s)
@synthesize
callbacks
42. Number one use of protocols in iOS...
the array relinquishes ownership of that object and no longer has a pointer to it
delegates and dataSources
pointer - class
attributes - behavior
43. Hold data and know nothing about the user interface
references to objects
Model Objects[Factory Worker]
reuse your cells
CGRect
44. If the view has no subviews - create it programmatically; if it has subviews
dealloc - is called on the object & the object's memory is returned to the heap
only the class and subclasses can access
create a XIB file
the array becomes an owner of that object and has a pointer to it.
45. Name of the method to be executed
selector[message]
delegates and dataSources
receiver - selector - arguments
setPossessionName
46. NSArray - class...
ordered collection of objects - immutable
Abstraction
you must import the header file of that class
receiver[message]
47. The class is responsible for what instance variables the instance has - but not the _ of those variables.
instance
values
@interface ClassName:SuperClassName
create a XIB file
48. Core foundation classes are prefixed with _ and suffixed with _
pointer to an object
variable scope - if defined within a block
create a XIB file
CF - Ref
49. UITableViewController is a subclass of...
subview(s)
Anytime you call a method with new - alloc or copy. You own and must release that object.
creating an initializer
UIViewController
50. Prefixing a character string with an @ symbol [specific - NSString class]...
Functions
CGRect bounds - GCPoint center - CGRect frame
receiver[message]
creates an instance of NSString that holds the character string
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