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. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
dynamic allocation
synchronous message
designated initializer
2. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
formal protocol
static typing
class
3. A compiler feature that provides automated memory management
inheritance hierarchy
ARC
runtime
nil
4. A variable that points to the memory address of another value
asterisk (*)
distributed objects
%@
pointer
5. _____ 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'.
Encapsulation
class object
encapsulation
binary
6. 3 Common Float data types: float - _____ - CGFloat
double
cycles
asynchronous message
printf( )
7. 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.
inheritance hierarchy
strong
object
method
8. Another name for a class that's defined solely so that other classes can inherit from it.
assignment
abstract superclass
protocol
cycles
9. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
null
NSString
instance
%@
10. ______ operators take a single operand
Cocoa
subclass
Unitary
category
11. An object id with a value of 0.
@implementation
Protocols
nil
precedence
12. A set of method definitions that is segregated from the rest of the class definition.
ampersand (&)
instance
category
Edit>Refactor>Convert to Objective-C ARC
13. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
Cocoa
class
cannot
dereference (dereferencing)
14. 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
dynamic typing
nil
strong
15. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
message
pointers
static typing
delegates
16. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
abstract class
nonatomic
Cocoa
init
17. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
double
selector
asterisk (*)
informal protocol
18. 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.
ampersand (&)
anonymous object
object
copy
19. 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.
id
class
Interface Builder
strong
20. 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.
encapsulation
reference counting
memory leak
link time
21. _____ allow indirect access and modification of a variable's value.
remote object
binary
@implementation
Pointers
22. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
pointer
runtime
Interface Builder
23. a++; is an example of using a _____ operator
unitary
pointers
nil
heap
24. The first index in an array is valued at ____
reference counting
zero
strong
pointers
25. The root class in Objective-C
inheritance
NSObject
binary
procedures
26. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
distributed objects
precedence
deprecated
reference counting
27. Same as class object. (second way to say it.)
doubles
factory object
designated
outlet
28. Any method that can be used by an instance of a class rather than by the class object.
namespace
asynchronous message
instance method
superset
29. A method that can operate on class objects rather than instances of the class.
Pointers
selector
class method
reference counting
30. 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).
precedence
protocol
Edit>Refactor>Convert to Objective-C ARC
implementation
31. Finding the method implementation to invoke in response to the message
dynamic binding
Interface Builder
Unitary
Unsigned
32. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
method
cycles
mutex
unitary
33. Same as class object. (first way to say it.)
superclass
factory object
double
factory
34. 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.
delegates
formal protocol
procedures
namespace
35. This symbol denotes a method as being an instance method
implementation
Smalltalk
-
designated
36. In object-oriented programming the object that is sent a message.
receiver
remote message
9
protocol
37. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
encapsulation
dispatch table
ARC
developer intent
38. The most flexible C data type: ______
Product>Profile>Leaks>Profile
class object
struct
[receiver message];
39. 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
9
double
ampersand (&)
40. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
reference counting
message expression
procedures
delegate
41. A message sent from one application to an object in another application.
anonymous object
selector
square brackets
remote message
42. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
strong
instance
asterisk (*)
43. This symbol denotes a method as being a class method
abstract superclass
nil
dangling pointer
+
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.
double
9
floating-point
outlet
45. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
Unsigned
instance
namespace
designated
46. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Encapsulation
9
value
id
47. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
framework
method
Interface Builder
readwrite
48. C-style strings are stored in an array of _____
designated
developer intent
chars
remote message
49. In Objective-C floats are more commonly used than ______
AppKit
nonatomic
ARC
doubles
50. The _____ function can be used to print a message to the console
superclass
selector
printf( )
formal protocol