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
Product>Profile>Leaks>Profile
precedence
9
2. There are ____ fundamental building blocks in Objective-C
properties
9
informal protocol
runtime
3. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
factory object
nil
runtime
4. Finding the method implementation to invoke in response to the message
inheritance hierarchy
link time
runtime
dynamic binding
5. Initializer method traditionally begin with the _____ prefix
receiver
init
remote message
null
6. 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).
receiver
designated initializer
message expression
dynamic binding
7. In object-oriented programming the object that is sent a message.
nonatomic
protocol
cannot
receiver
8. Any method that can be used by an instance of a class rather than by the class object.
instance method
double
printf( )
outlet
9. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
[receiver message];
interface
synchronous message
asterisk (*)
10. 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.
class
object
delegate
properties
11. A variable that points to the memory address of another value
pointer
framework
nil
weak
12. In a format string the place holder for an object is ______
formal protocol
encapsulation
%@
runtime
13. The most flexible C data type: ______
properties
floating-point
nil
struct
14. 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.
instance method
runtime
factory
id
15. 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.
deprecated
precedence
dispatch table
formal protocol
16. Symbol used to denote a placeholder in a format string
[receiver message];
dynamic binding
Pointers
%
17. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
dynamic allocation
dynamic binding
%
factory
18. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
AppKit
@implementation
long long
Binary
19. In the Objective-C language the declaration of a group of methods not associated with any particular class.
class
class object
superclass
protocol
20. _____ data types can be both positive and negative
superset
zero
Signed
Product>Profile>Leaks>Profile
21. A class is said to do this when it declares that it implements all the methods in the protocol.
link time
class object
id
adopt
22. _____ allow you to add new methods to existing classes
Smalltalk
heap
Categories
@interface
23. When creating a class header file you begin with the _____ keyword and close with the @end keyword
long long
instance
@interface
superset
24. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class method
class
assignment
runtime
25. 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
method
NSString
category
instance
26. Square bracket syntax for calling a method
[receiver message];
fields
init
informal protocol
27. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
conform
weak
anonymous object
printf( )
28. An architecture that facilitates communication between objects in different address spaces.
Interface Builder
Protocols
polymorphism
distributed objects
29. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
class
object
readwrite
30. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
designated
Cocoa
procedures
AppKit
31. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
message
deprecated
[receiver message];
32. _____ operators take 2 operands
Binary
cannot
assignment
id
33. C-style strings are stored in an array of _____
anonymous object
Product>Profile>Leaks>Profile
chars
delegate
34. Objective-C's protocols are really about communicating _____ _______
AppKit
developer intent
dangling pointer
floating-point
35. a+b; is an example of using a _____ operator
abstract class
mutex
binary
link time
36. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
framework
weak
Categories
37. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
superclass
procedures
struct
38. 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.
comma-separated
class object
deprecated
long long
39. To destroy an object set the variable that points to it to _____
protocol
developer intent
nil
printf( )
40. 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
conform
unitary
anonymous object
abstract class
41. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
superclass
method
class
mutex
42. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
delegates
event
runtime
cannot
43. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
fields
runtime
Smalltalk
superclass
44. Another name for a class that's defined solely so that other classes can inherit from it.
properties
abstract superclass
readonly
factory
45. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
[receiver message];
Product>Profile>Leaks>Profile
static typing
46. C-style strings always end with a ____ character
link time
null
doubles
formal protocol
47. 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.
message
outlet
comma-separated
readwrite
48. Any class that's one step below another class in the inheritance hierarchy.
subclass
dereference (dereferencing)
precedence
implementation
49. An object that acts on behalf of another object.
%
delegate
deprecated
encapsulation
50. Property attribute that synthesizes both a getter and setter for the property
method
readwrite
synchronous message
instance