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. Another name for a class that's defined solely so that other classes can inherit from it.
polymorphism
deprecated
abstract superclass
Unitary
2. 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.
remote object
conform
runtime
selector
3. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
floating-point
reference counting
Cocoa
NSString
4. 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
remote object
dispatch table
message expression
5. 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.
instance
abstract class
mutex
superclass
6. Data types are divided into two main categories: integer and ______
floating-point
abstract superclass
class
[receiver message];
7. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
Enumerations
interface
method
cycles
8. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
C operators
informal protocol
instance
superclass
9. 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.
memory leak
reference counting
precedence
outlet
10. Any method that can be used by an instance of a class rather than by the class object.
Edit>Refactor>Convert to Objective-C ARC
distributed objects
instance method
framework
11. A ____ _____ is where you forget to free up memory
null
memory leak
inheritance hierarchy
weak
12. The _____ function can be used to print a message to the console
struct
comma-separated
printf( )
dynamic allocation
13. A message sent from one application to an object in another application.
attributes
remote message
struct
Smalltalk
14. All objects are created on the _____
procedural programming language
printf( )
heap
framework
15. 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
inheritance hierarchy
conform
+
class object
16. Same as class object. (first way to say it.)
formal protocol
factory
@implementation
instance
17. ______ data types are always zero or greate
NSString
Signed
Unsigned
dereference (dereferencing)
18. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
event
init
C operators
factory
19. This symbol denotes a method as being a class method
struct
+
Signed
null
20. 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.
floating-point
runtime
abstract superclass
asterisk (*)
21. 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.
cannot
object
Edit>Refactor>Convert to Objective-C ARC
asynchronous message
22. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
long long
class object
polymorphism
formal protocol
23. 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
weak
chars
method
24. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
synchronous message
long long
Edit>Refactor>Convert to Objective-C ARC
runtime
25. 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
C operators
remote message
selector
26. Symbol used to denote a placeholder in a format string
Smalltalk
link time
%
implementation
27. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
inheritance hierarchy
anonymous object
synchronous message
cannot
28. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
readwrite
conform
dynamic binding
compile time
29. 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
ampersand (&)
instance
dangling pointer
NSString
30. a+b; is an example of using a _____ operator
nil
Unsigned
binary
abstract class
31. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
inheritance hierarchy
procedures
Binary
precedence
32. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
instance variable
remote object
static typing
factory
33. To destroy an object set the variable that points to it to _____
procedures
pointer
nil
adopt
34. A struct may contain multiple ____ consisting of different data types
fields
delegate
C operators
double
35. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
receiver
polymorphism
AppKit
delegates
36. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
inheritance
readonly
AppKit
37. _____ allow you to add new methods to existing classes
Categories
Pointers
compile time
unitary
38. 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).
properties
implementation
heap
pointer
39. An object in another application - one that's a potential receiver for a remote message.
ampersand (&)
remote object
dynamic binding
deprecated
40. There are ____ fundamental building blocks in Objective-C
9
strong
heap
NSString
41. Square bracket syntax for calling a method
factory
class
[receiver message];
readonly
42. An object id with a value of 0.
ampersand (&)
class method
dynamic allocation
nil
43. The root class in Objective-C
distributed objects
NSObject
asterisk (*)
Categories
44. ARC is susceptible to retain _____
NSString
remote message
cycles
anonymous object
45. A compiler feature that provides automated memory management
[receiver message];
ARC
heap
structures
46. A variable that points to the memory address of another value
pointer
cannot
id
heap
47. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
Enumerations
inheritance
-
deprecated
48. In a home building analogy a ____ is the blueprint and the object is the house
class
encapsulation
remote message
NSObject
49. When creating a class header file you begin with the _____ keyword and close with the @end keyword
pointer
class object
@interface
instance
50. Property attribute that causes the setter to store a strong reference to the assigned value
strong
reference counting
ARC
remote message