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. Same as class object. (first way to say it.)
message expression
instance
factory
dynamic binding
2. An object that acts on behalf of another object.
compile time
delegate
synchronous message
binary
3. In object-oriented programming a procedure that can be executed by an object.
weak
Smalltalk
method
instance
4. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
informal protocol
mutex
class
framework
5. 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
polymorphism
Signed
NSString
@implementation
6. Same as class object. (second way to say it.)
factory object
instance method
instance variable
nonatomic
7. _____ operators take 2 operands
compile time
Binary
nil
delegates
8. Placing a ____ before a normal variable name gives it's address
ampersand (&)
interface
class
Enumerations
9. This symbol denotes a method as being an instance method
Enumerations
-
printf( )
developer intent
10. An object in another application - one that's a potential receiver for a remote message.
namespace
designated
remote object
chars
11. The _____ function can be used to print a message to the console
printf( )
nil
readwrite
inheritance hierarchy
12. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
pointer
factory object
instance
structures
13. This symbol denotes a method as being a class method
Categories
+
Smalltalk
properties
14. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
-
class
factory
15. Discovering the class of an object at runtime rather than at compile time.
memory leak
dynamic typing
instance
developer intent
16. The process of setting or reading the value at an address pointed to by a pointer
link time
init
dereference (dereferencing)
class
17. Objective-C methods are called using ____ _____
weak
Encapsulation
Categories
square brackets
18. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
Pointers
readwrite
static typing
procedural programming language
19. ARC is susceptible to retain _____
nil
NSObject
cycles
Pointers
20. To destroy an object set the variable that points to it to _____
nil
adopt
factory
event
21. There are ____ fundamental building blocks in Objective-C
9
long long
value
Cocoa
22. In object-oriented programming the object that is sent a message.
unitary
method
polymorphism
receiver
23. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Pointers
dispatch table
id
deprecated
24. 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.
mutex
double
comma-separated
formal protocol
25. Any class that's one step below another class in the inheritance hierarchy.
class method
namespace
subclass
remote message
26. Property attribute that synthesizes both a getter and setter for the property
remote object
readwrite
[receiver message];
assign
27. A class is said to do this when it declares that it implements all the methods in the protocol.
ARC
adopt
formal protocol
Unitary
28. A variable that points to the memory address of another value
namespace
pointer
object
C operators
29. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
abstract superclass
weak
method
Enumerations
30. 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.
conform
-
delegates
inheritance hierarchy
31. Initializer method traditionally begin with the _____ prefix
init
instance method
event
Pointers
32. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
adopt
static typing
pointer
C operators
33. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
designated initializer
Product>Profile>Leaks>Profile
designated
superclass
34. A ____ _____ is where you forget to free up memory
dispatch table
runtime
memory leak
floating-point
35. 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).
mutex
Enumerations
informal protocol
message expression
36. 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.
instance variable
link time
nil
namespace
37. In a home building analogy a ____ is the blueprint and the object is the house
receiver
9
class
NSString
38. Property attribute that synthesizes only a getter for the property
NSObject
properties
assign
readonly
39. 3 Common Float data types: float - _____ - CGFloat
inheritance
double
weak
procedural programming language
40. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
superclass
synchronous message
subclass
Smalltalk
41. A ____ ____ is a situation where you free memory and then accidentally continue to use it
runtime
readonly
dangling pointer
class
42. a++; is an example of using a _____ operator
class object
unitary
Pointers
cannot
43. a+b; is an example of using a _____ operator
binary
instance
unitary
@implementation
44. The most flexible C data type: ______
id
pointers
[receiver message];
struct
45. _____ data types can be both positive and negative
readwrite
class
C operators
Signed
46. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
interface
implementation
subclass
delegates
47. A method that can operate on class objects rather than instances of the class.
category
cycles
abstract superclass
class method
48. A struct may contain multiple ____ consisting of different data types
mutex
Unitary
fields
runtime
49. 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.
reference counting
@implementation
remote object
runtime
50. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
asterisk (*)
namespace
inheritance hierarchy