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. A message sent from one application to an object in another application.
remote message
pointer
-
designated initializer
2. 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.
procedures
runtime
nil
doubles
3. 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.
procedures
factory
implementation
link time
4. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
%
Enumerations
Cocoa
class
5. 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.
[receiver message];
struct
doubles
encapsulation
6. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
delegate
inheritance
class object
7. 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.
message
instance
receiver
reference counting
8. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
Interface Builder
namespace
conform
message
9. ______ operators take a single operand
assignment
Unitary
conform
[receiver message];
10. Objective-C objects should use strong or weak ______
attributes
Binary
Product>Profile>Leaks>Profile
-
11. The first index in an array is valued at ____
null
zero
method
asterisk (*)
12. In object-oriented programming a procedure that can be executed by an object.
method
object
struct
mutex
13. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
C operators
precedence
asterisk (*)
14. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
AppKit
object
instance variable
encapsulation
15. The most flexible C data type: ______
floating-point
struct
category
message expression
16. 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
implementation
designated initializer
instance method
inheritance
17. _____ data types can be both positive and negative
Signed
designated
implementation
factory
18. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
designated
anonymous object
interface
class object
19. Data types are divided into two main categories: integer and ______
comma-separated
floating-point
+
pointer
20. Any class that's one step below another class in the inheritance hierarchy.
class method
delegates
subclass
distributed objects
21. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
[receiver message];
init
procedures
Product>Profile>Leaks>Profile
22. _____ 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'.
protocol
Encapsulation
message
pointers
23. Finding the method implementation to invoke in response to the message
dynamic binding
memory leak
abstract superclass
runtime
24. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
NSString
dynamic allocation
Binary
25. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
selector
instance
Enumerations
superclass
26. Same as class object. (first way to say it.)
pointer
factory
structures
dynamic binding
27. C-style strings are stored in an array of _____
dynamic binding
superset
chars
floating-point
28. A compiler feature that provides automated memory management
AppKit
ARC
mutex
class
29. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
cannot
NSString
formal protocol
30. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
Interface Builder
procedural programming language
chars
31. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
struct
dispatch table
asterisk (*)
Pointers
32. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
factory
factory object
dynamic allocation
33. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
protocol
implementation
runtime
compile time
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).
message expression
instance
factory
precedence
35. In Objective-C floats are more commonly used than ______
framework
runtime
doubles
implementation
36. 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.
Interface Builder
inheritance hierarchy
doubles
protocol
37. A variable that points to the memory address of another value
class
assign
dangling pointer
pointer
38. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
Unsigned
subclass
value
precedence
39. 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.
Binary
%
namespace
long long
40. Objective-C binds methods and arguments at _____ instead of compile time
cannot
NSString
pointers
runtime
41. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
memory leak
dynamic binding
doubles
polymorphism
42. 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.
NSObject
delegate
formal protocol
static typing
43. 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.
abstract class
class
struct
framework
44. 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.
ARC
class
dynamic binding
outlet
45. This symbol denotes a method as being a class method
object
init
+
properties
46. 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.
protocol
readonly
instance
asynchronous message
47. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
Protocols
properties
namespace
48. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
factory
synchronous message
superclass
object
49. a+b; is an example of using a _____ operator
binary
informal protocol
-
superclass
50. 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
factory
pointer
synchronous message
AppKit