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 _____ function can be used to print a message to the console
class method
dispatch table
-
printf( )
2. C-style strings are stored in an array of _____
Protocols
Signed
chars
+
3. An object that acts on behalf of another object.
mutex
NSObject
delegate
value
4. In Objective-C floats are more commonly used than ______
-
doubles
nil
adopt
5. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
encapsulation
class object
delegates
id
6. Symbol used to denote a placeholder in a format string
%
readwrite
-
pointer
7. In object-oriented programming a procedure that can be executed by an object.
runtime
binary
method
Product>Profile>Leaks>Profile
8. Any method that can be used by an instance of a class rather than by the class object.
Unsigned
long long
event
instance method
9. Property attribute that synthesizes only a getter for the property
@interface
NSObject
readonly
value
10. In object-oriented programming the object that is sent a message.
@implementation
+
receiver
chars
11. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
encapsulation
C operators
chars
zero
12. Property attribute that causes the setter to store a strong reference to the assigned value
nil
strong
Edit>Refactor>Convert to Objective-C ARC
Protocols
13. A ____ _____ is where you forget to free up memory
memory leak
distributed objects
weak
floating-point
14. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Signed
value
dispatch table
assign
15. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
inheritance hierarchy
+
value
16. Xcode sequence to examine an app for memory leaks or retain cycles
designated
properties
Product>Profile>Leaks>Profile
Unitary
17. 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).
adopt
message expression
Interface Builder
runtime
18. Square bracket syntax for calling a method
runtime
NSObject
struct
[receiver message];
19. Same as class object. (second way to say it.)
Unitary
asterisk (*)
factory object
class object
20. Finding the method implementation to invoke in response to the message
encapsulation
dynamic binding
Unsigned
id
21. Another name for a class that's defined solely so that other classes can inherit from it.
Product>Profile>Leaks>Profile
Unsigned
instance
abstract superclass
22. Objective-C's protocols are really about communicating _____ _______
message expression
developer intent
anonymous object
implementation
23. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
struct
nonatomic
structures
message
24. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
asterisk (*)
init
superclass
event
25. An object in another application - one that's a potential receiver for a remote message.
value
remote object
pointer
nil
26. The first index in an array is valued at ____
remote message
inheritance
zero
encapsulation
27. Objective-C binds methods and arguments at _____ instead of compile time
Product>Profile>Leaks>Profile
runtime
%
developer intent
28. 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.
Unsigned
floating-point
Encapsulation
reference counting
29. All objects are created on the _____
heap
factory object
struct
outlet
30. 3 Common Float data types: float - _____ - CGFloat
Encapsulation
nil
assignment
double
31. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
link time
zero
instance
strong
32. An object of unknown class. Interface is published through protocol declaration.
comma-separated
encapsulation
anonymous object
designated
33. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
dynamic allocation
instance variable
instance
NSString
34. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
unitary
@interface
Categories
procedures
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
informal protocol
assignment
anonymous object
36. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
dynamic binding
Smalltalk
assignment
framework
37. An architecture that facilitates communication between objects in different address spaces.
formal protocol
distributed objects
runtime
structures
38. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
struct
remote message
compile time
Enumerations
39. Xcode sequence to convert non-ARC apps to ARC
interface
Edit>Refactor>Convert to Objective-C ARC
polymorphism
class
40. Discovering the class of an object at runtime rather than at compile time.
-
dynamic typing
Cocoa
binary
41. Initializer method traditionally begin with the _____ prefix
properties
init
mutex
unitary
42. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
compile time
cannot
mutex
weak
43. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
NSObject
formal protocol
ampersand (&)
44. The root class in Objective-C
readwrite
NSObject
factory
properties
45. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
namespace
attributes
%
designated initializer
46. In a format string the place holder for an object is ______
double
strong
%@
copy
47. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
Interface Builder
binary
comma-separated
class object
48. _____ allow you to add new methods to existing classes
mutex
square brackets
Categories
Binary
49. This symbol denotes a method as being a class method
outlet
reference counting
Interface Builder
+
50. Objective-C objects should use strong or weak ______
outlet
null
attributes
assignment