SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Objective C Programming Basics
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. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
memory leak
abstract class
link time
reference counting
2. Property attribute that synthesizes both a getter and setter for the property
reference counting
readwrite
dangling pointer
pointers
3. Objective-C is a _____ of the C language
informal protocol
comma-separated
superset
doubles
4. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
category
C operators
NSString
protocol
5. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
Edit>Refactor>Convert to Objective-C ARC
NSObject
deprecated
runtime
6. The first index in an array is valued at ____
zero
instance method
procedural programming language
distributed objects
7. In a home building analogy a ____ is the blueprint and the object is the house
anonymous object
nil
printf( )
class
8. A struct may contain multiple ____ consisting of different data types
compile time
fields
assign
deprecated
9. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
category
Binary
message expression
long long
10. A protocol declared as a category usually as a category of the NSObject class.
object
class method
dangling pointer
informal protocol
11. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
static typing
reference counting
method
class
12. A ____ _____ is where you forget to free up memory
procedural programming language
unitary
interface
memory leak
13. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
inheritance hierarchy
delegates
assign
class object
14. Property attribute where the setter stores the assigned value but does not perform any memory management.
[receiver message];
assign
weak
NSObject
15. To destroy an object set the variable that points to it to _____
nil
null
distributed objects
instance
16. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
protocol
value
dynamic allocation
dangling pointer
17. An object that acts on behalf of another object.
long long
delegate
designated
9
18. C-style strings are stored in an array of _____
double
+
chars
delegate
19. Objective-C's protocols are really about communicating _____ _______
factory
developer intent
distributed objects
factory object
20. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
id
developer intent
runtime
pointers
21. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
nonatomic
event
link time
message expression
22. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
runtime
factory object
fields
selector
23. An object id with a value of 0.
9
dereference (dereferencing)
receiver
nil
24. A class is said to do this when it declares that it implements all the methods in the protocol.
designated initializer
developer intent
adopt
compile time
25. ______ operators take a single operand
Unitary
class
NSString
inheritance hierarchy
26. Symbol used to denote a placeholder in a format string
delegates
Categories
cycles
%
27. Any class that's one step below another class in the inheritance hierarchy.
developer intent
receiver
subclass
designated
28. In the Objective-C language the declaration of a group of methods not associated with any particular class.
subclass
inheritance
protocol
attributes
29. C-style strings always end with a ____ character
adopt
instance
Unitary
null
30. Property attribute that synthesizes accessors that are not thread safe
factory
delegate
nonatomic
id
31. A message sent from one application to an object in another application.
value
framework
chars
remote message
32. Property attribute that synthesizes only a getter for the property
Edit>Refactor>Convert to Objective-C ARC
readonly
AppKit
C operators
33. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
runtime
delegate
Enumerations
inheritance hierarchy
34. 3 Common Float data types: float - _____ - CGFloat
double
struct
formal protocol
designated
35. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
runtime
%@
procedures
asynchronous message
36. Property attribute that causes the setter to store a copy of the assigned value
id
deprecated
memory leak
copy
37. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
encapsulation
superclass
delegate
formal protocol
38. The root class in Objective-C
%@
NSObject
Cocoa
developer intent
39. _____ allow indirect access and modification of a variable's value.
Pointers
ampersand (&)
Enumerations
asterisk (*)
40. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
object
Cocoa
Edit>Refactor>Convert to Objective-C ARC
informal protocol
41. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
unitary
Unitary
outlet
42. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
superset
asterisk (*)
null
reference counting
43. The _____ function can be used to print a message to the console
dereference (dereferencing)
structures
printf( )
%
44. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
AppKit
%
Unitary
Product>Profile>Leaks>Profile
45. a+b; is an example of using a _____ operator
fields
binary
developer intent
conform
46. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
instance method
init
designated initializer
compile time
47. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
strong
[receiver message];
dynamic typing
cannot
48. Objective-C methods are called using ____ _____
assign
square brackets
remote message
class object
49. Same as class object. (second way to say it.)
binary
factory object
asterisk (*)
class method
50. Same as class object. (first way to say it.)
nil
factory
nil
category