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 process of setting or reading the value at an address pointed to by a pointer
Categories
dereference (dereferencing)
init
namespace
2. ____ provide a concise & elegant method for defining a discrete set of values
dynamic allocation
factory object
Enumerations
instance method
3. An object of unknown class. Interface is published through protocol declaration.
inheritance
chars
anonymous object
comma-separated
4. Property attribute that synthesizes accessors that are not thread safe
Pointers
outlet
nonatomic
Edit>Refactor>Convert to Objective-C ARC
5. In object-oriented programming a procedure that can be executed by an object.
method
assign
procedures
instance
6. Same as class object. (second way to say it.)
reference counting
long long
factory object
instance
7. A compiler feature that provides automated memory management
ARC
reference counting
remote message
attributes
8. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
ampersand (&)
Enumerations
object
9. The first index in an array is valued at ____
9
superset
zero
ampersand (&)
10. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
superclass
instance variable
struct
delegate
11. Objective-C objects should use strong or weak ______
attributes
subclass
Unitary
factory
12. 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.
precedence
+
readwrite
AppKit
13. All objects are created on the _____
heap
factory
%@
NSString
14. The _____ function can be used to print a message to the console
printf( )
class
Interface Builder
zero
15. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
value
unitary
dynamic binding
cannot
16. Objective-C binds methods and arguments at _____ instead of compile time
method
developer intent
runtime
remote object
17. A ____ _____ is where you forget to free up memory
memory leak
floating-point
implementation
copy
18. C-style strings are stored in an array of _____
heap
superclass
chars
attributes
19. ARC is susceptible to retain _____
link time
mutex
@implementation
cycles
20. An architecture that facilitates communication between objects in different address spaces.
dynamic allocation
distributed objects
selector
remote message
21. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
square brackets
designated initializer
asterisk (*)
ampersand (&)
22. A struct may contain multiple ____ consisting of different data types
cannot
Product>Profile>Leaks>Profile
fields
nil
23. In a format string the place holder for an object is ______
Categories
%@
formal protocol
Signed
24. _____ 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'.
-
remote message
Encapsulation
encapsulation
25. Property attribute that synthesizes only a getter for the property
designated
receiver
struct
readonly
26. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
designated
outlet
nil
value
27. 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.
comma-separated
interface
reference counting
Encapsulation
28. Objective-C is a _____ of the C language
synchronous message
ARC
superset
designated initializer
29. _____ data types can be both positive and negative
dynamic typing
nonatomic
Signed
-
30. 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
copy
procedural programming language
properties
31. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
method
conform
designated
nil
32. 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
NSString
weak
chars
asynchronous message
33. 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
inheritance
structures
AppKit
runtime
34. 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).
@interface
message expression
Interface Builder
object
35. Initializer method traditionally begin with the _____ prefix
synchronous message
formal protocol
Smalltalk
init
36. An object that acts on behalf of another object.
Protocols
delegate
superclass
unitary
37. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
procedural programming language
+
conform
Cocoa
38. This symbol denotes a method as being a class method
@implementation
copy
instance
+
39. _____ allow indirect access and modification of a variable's value.
superset
Pointers
pointer
double
40. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
runtime
category
comma-separated
receiver
41. Another name for a class that's defined solely so that other classes can inherit from it.
factory
Enumerations
abstract superclass
procedural programming language
42. Xcode sequence to examine an app for memory leaks or retain cycles
NSString
Product>Profile>Leaks>Profile
category
dynamic allocation
43. Finding the method implementation to invoke in response to the message
dynamic binding
-
inheritance
Smalltalk
44. Property attribute that synthesizes both a getter and setter for the property
abstract superclass
weak
readwrite
implementation
45. An object in another application - one that's a potential receiver for a remote message.
remote object
floating-point
procedures
C operators
46. In Objective-C floats are more commonly used than ______
delegate
superclass
method
doubles
47. a+b; is an example of using a _____ operator
dynamic binding
informal protocol
doubles
binary
48. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
mutex
abstract class
-
printf( )
49. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
factory object
cannot
weak
instance
50. A method that can operate on class objects rather than instances of the class.
dangling pointer
%
class method
class