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. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
@interface
unitary
Protocols
2. Square bracket syntax for calling a method
framework
[receiver message];
asynchronous message
nil
3. Property attribute that causes the setter to store a strong reference to the assigned value
unitary
strong
method
formal protocol
4. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
precedence
selector
heap
5. Property attribute that synthesizes only a getter for the property
strong
readonly
dispatch table
conform
6. Objective-C objects should use strong or weak ______
category
developer intent
dangling pointer
attributes
7. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
NSObject
instance method
fields
8. In object-oriented programming the object that is sent a message.
subclass
inheritance hierarchy
message
receiver
9. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
subclass
ARC
precedence
instance
10. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
attributes
Cocoa
instance method
delegates
11. _____ allow indirect access and modification of a variable's value.
outlet
Pointers
remote message
AppKit
12. 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
compile time
nonatomic
double
13. A method that can operate on class objects rather than instances of the class.
dispatch table
class method
implementation
init
14. To destroy an object set the variable that points to it to _____
nil
ARC
heap
category
15. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Edit>Refactor>Convert to Objective-C ARC
unitary
superclass
informal protocol
16. Property attribute that synthesizes accessors that are not thread safe
conform
nonatomic
delegates
anonymous object
17. In a format string the place holder for an object is ______
fields
nil
%@
compile time
18. 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
encapsulation
cannot
dereference (dereferencing)
19. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
superset
value
Unsigned
polymorphism
20. Initializer method traditionally begin with the _____ prefix
unitary
init
method
procedures
21. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
asterisk (*)
synchronous message
superset
22. 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
Pointers
null
remote object
designated initializer
23. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
Binary
Unitary
unitary
24. ______ data types are always zero or greate
class
remote object
nil
Unsigned
25. a++; is an example of using a _____ operator
asterisk (*)
pointer
unitary
Pointers
26. _____ allow you to add new methods to existing classes
Categories
nonatomic
polymorphism
Interface Builder
27. An object that acts on behalf of another object.
encapsulation
pointer
delegate
init
28. 3 Common Float data types: float - _____ - CGFloat
factory object
dynamic typing
doubles
double
29. A ____ ____ is a situation where you free memory and then accidentally continue to use it
null
dangling pointer
cannot
9
30. 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.
ampersand (&)
value
remote object
id
31. This symbol denotes a method as being an instance method
value
doubles
inheritance
-
32. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
chars
framework
nil
dispatch table
33. Same as class object. (second way to say it.)
designated
link time
factory object
factory
34. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
conform
factory
nonatomic
asterisk (*)
35. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
square brackets
procedures
asynchronous message
cannot
36. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
procedural programming language
asterisk (*)
instance
printf( )
37. 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.
weak
properties
%
abstract class
38. C-style strings always end with a ____ character
null
reference counting
class
instance
39. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
conform
@implementation
@interface
namespace
40. 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.
outlet
cycles
namespace
Binary
41. An object of unknown class. Interface is published through protocol declaration.
Categories
nil
outlet
anonymous object
42. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
pointer
class
procedural programming language
%@
43. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
ampersand (&)
namespace
Interface Builder
44. 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).
encapsulation
chars
instance
message expression
45. Data types are divided into two main categories: integer and ______
struct
floating-point
factory object
heap
46. _____ operators take 2 operands
copy
class
Binary
%
47. ARC is susceptible to retain _____
cycles
NSObject
framework
class
48. This symbol denotes a method as being a class method
+
asynchronous message
null
procedures
49. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
struct
Interface Builder
%
class
50. C-style strings are stored in an array of _____
Pointers
chars
Unsigned
instance