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. Property attribute that synthesizes only a getter for the property
static typing
readonly
value
printf( )
2. Any class that's one step below another class in the inheritance hierarchy.
informal protocol
C operators
memory leak
subclass
3. A method that can operate on class objects rather than instances of the class.
synchronous message
class method
class object
procedures
4. In Objective-C floats are more commonly used than ______
outlet
inheritance hierarchy
superset
doubles
5. 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.
asynchronous message
zero
runtime
designated
6. Any method that can be used by an instance of a class rather than by the class object.
Interface Builder
long long
structures
instance method
7. Property attribute that synthesizes both a getter and setter for the property
assignment
readwrite
ampersand (&)
asynchronous message
8. Property attribute that synthesizes accessors that are not thread safe
receiver
fields
nonatomic
factory
9. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
copy
unitary
framework
10. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
dynamic binding
@implementation
class
Smalltalk
11. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
asynchronous message
reference counting
Cocoa
message
12. A protocol declared as a category usually as a category of the NSObject class.
attributes
event
informal protocol
implementation
13. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
polymorphism
struct
attributes
14. An object that acts on behalf of another object.
instance variable
delegate
runtime
printf( )
15. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
Pointers
Cocoa
comma-separated
@implementation
16. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
precedence
distributed objects
polymorphism
implementation
17. 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.
implementation
ampersand (&)
selector
Protocols
18. 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.
reference counting
fields
conform
NSObject
19. A message sent from one application to an object in another application.
inheritance
remote message
designated initializer
AppKit
20. This symbol denotes a method as being a class method
+
method
Pointers
AppKit
21. Another name for a class that's defined solely so that other classes can inherit from it.
Edit>Refactor>Convert to Objective-C ARC
compile time
Signed
abstract superclass
22. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
+
structures
instance
category
23. Objective-C methods are called using ____ _____
square brackets
instance method
floating-point
value
24. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
inheritance
superclass
instance
dispatch table
25. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
memory leak
Product>Profile>Leaks>Profile
ARC
Encapsulation
26. In a home building analogy a ____ is the blueprint and the object is the house
nonatomic
class
assignment
dereference (dereferencing)
27. _____ allow you to add new methods to existing classes
Binary
Categories
binary
delegate
28. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
strong
compile time
init
29. 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.
receiver
Encapsulation
runtime
id
30. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
@interface
conform
abstract class
weak
31. Initializer method traditionally begin with the _____ prefix
printf( )
init
link time
weak
32. ____ provide a concise & elegant method for defining a discrete set of values
adopt
Enumerations
Categories
structures
33. A compiler feature that provides automated memory management
Edit>Refactor>Convert to Objective-C ARC
ARC
dynamic typing
adopt
34. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
value
assign
dispatch table
comma-separated
35. 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.
link time
inheritance
@implementation
factory object
36. a+b; is an example of using a _____ operator
category
remote message
binary
Pointers
37. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
formal protocol
dereference (dereferencing)
dynamic binding
deprecated
38. When creating a class header file you begin with the _____ keyword and close with the @end keyword
static typing
polymorphism
@interface
assign
39. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
procedural programming language
value
Signed
weak
40. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
synchronous message
subclass
nil
delegates
41. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
distributed objects
nil
assignment
@implementation
42. The _____ function can be used to print a message to the console
class
Enumerations
encapsulation
printf( )
43. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
instance method
[receiver message];
dangling pointer
44. Same as class object. (second way to say it.)
printf( )
floating-point
factory object
designated
45. A variable that points to the memory address of another value
polymorphism
pointer
conform
cycles
46. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
remote message
cycles
outlet
instance
47. An object in another application - one that's a potential receiver for a remote message.
dereference (dereferencing)
remote object
@interface
NSObject
48. _____ operators take 2 operands
+
doubles
delegate
Binary
49. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
developer intent
cannot
subclass
cycles
50. _____ data types can be both positive and negative
Signed
Unitary
cycles
dynamic allocation