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. Ready-made instances...
Object wrapper around primitive types like int - float - double - BOOl
parentViewController
instance of UIView or one of its subclasses
calling code that does the instantiation for you
2. A collection object - an ordered list of objects that can be accesed by an index
class methods - initializers
attributes - behavior
do so in viewDidLoad
array[class - NSMutableArray]
3. To get the full path for a directory in the sandbox - you use the _ NSSearchPathForDirectoriesInDomains.
view
data source - view controller and delegate
class methods - initializers
C Functionn
4. The root view controller typically creates the next view controller - and the next _ creates the one after that
Instantiation from scratch
causes the program to immediately exit from the loop it is executing - whether its for - while or do
view controller
variable scope - if defined within a block
5. If a break statement is executed from within a set of nested loops...
will be ignored
@interface ClassName:SuperClassName
only the innermost loop in which the break is executed is terminated
Controller Objects[Managers]
6. Keep view and model objects in sync - control the 'flow' of the application - and save the model objects out to the filesystem
only the class and subclasses can access
class methods - initializers
Controller Objects[Managers]
type - name and value
7. Delegation is an object oriented approach to
callbacks
define it in the implemenation file
UIView
safety - subclassability and makes code look more consistent with C structs
8. A UITableViewController can fill all three roles of...
to get and set variables
safety - subclassability and makes code look more consistent with C structs
data source - view controller and delegate
Core Graphics Framework
9. NSString *s = @'Hello - World'; is an example of...
you always return the newly initialized object(return self)
receiving and handling events that are associated with it
declaration and initialization of a variable
view controller's initialization method
10. Primitives and C Structures...
cannot be added to an array
first responder
pointer to an object
array[class - NSMutableArray]
11. Execution of the break statement...
a mechanism to enable specific callbacks
causes the program to immediately exit from the loop it is executing - whether its for - while or do
Abstraction
initializer
12. Also - because arrays only hold a pointer to an object...
a single-array can contain objects of different types
implementation
cannot be added to an array
receiver
13. A view is a subclass of _
Continue
instance of UIView or one of its subclasses
UIView
in the dealloc - or when a Controller's view is 'unloaded'
14. When an NSMutableArray is deallocated - it sends...
pointers
receiver[message]
pointer - class
the message release to all its entries
15. initWithFrame: the designated initializer for UIView gives the view
viewWillDissapear: and viewWillAppear:
instance variables
size and position
header files declare
16. Object Oriented based analogue to a function is called a...
data source - view controller and delegate
method
to get and set variables
designated initializer
17. When making a tableView always...
delegates and dataSources
reuse your cells
has one root view controller
methods for generating an instance
18. Defining variables - three parts...
ready-made instances - instantiation from scratch - and nib based instantiation
dealloc - is called on the object & the object's memory is returned to the heap
type - name and value
callbacks
19. After accessors have been defined in the header file...
Continue
they need to be defined in the implementation file
is called every time the event occurs
new instances of the class or retrieve some global property of the class.
20. Classes describe two things...
protocol
upper
Abstraction
attributes - behavior
21. 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 _.
class's
super - self
pointer - class
class methods - initializers
22. Name of the new class - it's superclass - the instance variables that each instance of this class has - and any methods this class implements
header files declare
Core Graphics Framework
you must import the header file of that class
unordered collection of objects - objects must be unique
23. 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.
the array relinquishes ownership of that object and no longer has a pointer to it
retain
creating an initializer
cannot be added to an array
24. 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.
initializer
first responder
only the class and subclasses can access
Instantiation from scratch
25. super - is used...
view
for inheritance - adopting the superclasses implementation
causes the program to immediately exit from the loop it is executing - whether its for - while or do
CGRect
26. In general - class methods tend to be factory methods - that is...
viewWillAppear - viewDidAppear - viewWillDisappear & viewDidDisappear
C Functionn
methods for generating an instance
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
27. 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
28. Class methods do not operate on an _ or have any access to _ variables....
instance variable of an object is valid
Functions
instance
attributes - behavior
29. Archiving works by creating an instance of _ - which is essentially just a container for data - and placing objects and their data inside it.
NSCoder
wait until the loop finishes processing the event - at the end release it
unordered collection of objects - objects must be unique
delegates and dataSources
30. SomeClass* aVariable = [[SomeClass alloc] init]; is an example of what kind of instance?
rectangular
pointer to an object
ready-made instances - instantiation from scratch - and nib based instantiation
Instantiation from scratch
31. @property - is using methods...
methods
view
for inheritance - adopting the superclasses implementation
to get and set variables
32. A pointer to the object being asked to execute a method
references to objects
create a XIB file
receiver[message]
its dataSource
33. NSNumber - class...
object
Object wrapper around primitive types like int - float - double - BOOl
Hash table - Look up objects using a key to get a value.
subview(s)
34. NSString objects are usually sent _ rather than _...
UIViewController
copy - retain
Encapsulation of functionality
instance
35. @property declares - and _ implements the setter and getter...
cannot be added to an array
lowercase - uppercase
@synthesize
view
36. Class methods typically either create
super - self
new instances of the class or retrieve some global property of the class.
instance of UIView or one of its subclasses
to get and set variables
37. Categories are an Objective C way to add _ to an existing class without subclassing
instance
creates an instance of NSString that holds the character string
methods
header files declare
38. A message is always contained in square brackets - and has three parts
new instances of the class or retrieve some global property of the class.
receiver - selector - arguments
instance variables
UIViewController
39. A set of variables and associated methods. An object can be sent messages to cause one of its methods to be executed.
delegates and dataSources
Functions
dealloc - is called on the object & the object's memory is returned to the heap
object
40. Property List...
collection of collections - NSArray of an NSArray
only the innermost loop in which the break is executed is terminated
variable scope - if defined within a block
alloc - singleton - informational utility method?
41. Why properties?
retain
Controller Objects[Managers]
safety - subclassability and makes code look more consistent with C structs
references to objects
42. Order of the declarations for methods. _ come first - followed by _ - followed by any other methods...
the array relinquishes ownership of that object and no longer has a pointer to it
class methods - initializers
initializers
setPossessionName
43. Only exists within the statement block there defined - outside of the block is fine
storage
Generic object wrapper for other non-object data types
variable scope - if defined within a block
'getters' and 'setters'
44. In the last line of an init method...
size and position
nil
methods for generating an instance
you always return the newly initialized object(return self)
45. [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.
Used to find the time right now or to store past or future time/dates
view controller
data
draw images
46. Typically the designated initializer has parameters for the most important and frequently used _ of an object
references to objects
instance variables
group of global functions already assigned to this class
You take ownership for an object you want to keep a pointer to
47. 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.
implementation
is an instance of that class
only the innermost loop in which the break is executed is terminated
Used to find the time right now or to store past or future time/dates
48. Name of the method to be executed
Model Objects[Factory Worker]
selector[message]
callbacks
is an instance of that class
49. What happens when the last owner calls release?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
50. The object to which a message is sent - the receiver can be referred to as self from inside the method that is invoked
count - objectAtIndex - makeObjectsPerformSelector - sortedArrayUsingSelector - lastObject
cannot be added to an array
Continue
receiver
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