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
receiver
Product>Profile>Leaks>Profile
@implementation
attributes
2. Property attribute that synthesizes both a getter and setter for the property
developer intent
readwrite
mutex
NSString
3. 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.
runtime
class object
developer intent
binary
4. a+b; is an example of using a _____ operator
binary
+
polymorphism
Signed
5. Property attribute that synthesizes only a getter for the property
readonly
class object
struct
designated initializer
6. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
assignment
factory
asterisk (*)
designated
7. Objective-C objects should use strong or weak ______
reference counting
memory leak
attributes
factory object
8. 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
synchronous message
chars
abstract superclass
assignment
9. 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
message expression
dynamic allocation
instance method
10. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
class
remote object
instance
11. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
protocol
abstract class
id
12. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
init
Smalltalk
value
precedence
13. Data types are divided into two main categories: integer and ______
dispatch table
adopt
floating-point
dereference (dereferencing)
14. 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
procedural programming language
nil
dispatch table
15. A compiler feature that provides automated memory management
ARC
properties
remote object
designated initializer
16. Data (like nouns) represent the information we are processing and in Objective-C this made up of the four elements of C types - _____ - enums and objects
Enumerations
double
structures
weak
17. Placing a ____ before a normal variable name gives it's address
Categories
ampersand (&)
strong
cannot
18. An object that acts on behalf of another object.
encapsulation
framework
Interface Builder
delegate
19. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
memory leak
assignment
pointers
value
20. Property attribute that causes the setter to store a copy of the assigned value
nonatomic
synchronous message
copy
-
21. Xcode sequence to convert non-ARC apps to ARC
chars
formal protocol
Edit>Refactor>Convert to Objective-C ARC
@interface
22. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
event
printf( )
runtime
precedence
23. In a home building analogy a ____ is the blueprint and the object is the house
class
Encapsulation
Smalltalk
asterisk (*)
24. 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.
adopt
runtime
dynamic allocation
anonymous object
25. All objects are created on the _____
abstract superclass
Unsigned
pointer
heap
26. An object in another application - one that's a potential receiver for a remote message.
conform
Interface Builder
dispatch table
remote object
27. A ____ ____ is a situation where you free memory and then accidentally continue to use it
static typing
dangling pointer
inheritance
zero
28. A set of method definitions that is segregated from the rest of the class definition.
-
weak
category
anonymous object
29. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
nil
instance
implementation
square brackets
30. 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.
dereference (dereferencing)
abstract class
dangling pointer
Protocols
31. An object of unknown class. Interface is published through protocol declaration.
precedence
anonymous object
encapsulation
binary
32. Square bracket syntax for calling a method
C operators
AppKit
[receiver message];
Signed
33. When creating a class header file you begin with the _____ keyword and close with the @end keyword
delegate
NSObject
heap
@interface
34. 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
superset
dispatch table
cycles
35. 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
asynchronous message
class
NSObject
NSString
36. 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
init
properties
pointers
37. In object-oriented programming the object that is sent a message.
Protocols
receiver
long long
class object
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).
implementation
Smalltalk
delegates
null
39. Another name for a class that's defined solely so that other classes can inherit from it.
comma-separated
framework
selector
abstract superclass
40. Property attribute that causes the setter to store a strong reference to the assigned value
[receiver message];
id
superclass
strong
41. 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
designated initializer
copy
Signed
link time
42. C-style strings are stored in an array of _____
Unsigned
deprecated
abstract class
chars
43. 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.
formal protocol
delegate
deprecated
asynchronous message
44. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
procedures
instance method
ampersand (&)
45. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
receiver
ARC
readonly
long long
46. 3 Common Float data types: float - _____ - CGFloat
link time
init
conform
double
47. Same as class object. (first way to say it.)
Encapsulation
factory
Binary
double
48. In object-oriented programming a procedure that can be executed by an object.
Binary
inheritance
method
[receiver message];
49. ______ operators take a single operand
Unitary
namespace
runtime
doubles
50. C-style strings always end with a ____ character
Smalltalk
binary
Interface Builder
null