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 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.
attributes
anonymous object
dynamic allocation
memory leak
2. Property attribute that causes the setter to store a strong reference to the assigned value
strong
static typing
Binary
runtime
3. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dispatch table
message expression
dangling pointer
compile time
4. A set of method definitions that is segregated from the rest of the class definition.
copy
square brackets
category
protocol
5. _____ allow you to add new methods to existing classes
reference counting
memory leak
dynamic binding
Categories
6. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
id
procedures
memory leak
7. Objective-C methods are called using ____ _____
outlet
Enumerations
Unitary
square brackets
8. Property attribute that synthesizes both a getter and setter for the property
readwrite
C operators
Cocoa
readonly
9. A ____ _____ is where you forget to free up memory
memory leak
delegate
nil
dangling pointer
10. 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.
informal protocol
id
superset
AppKit
11. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
Smalltalk
developer intent
Protocols
12. C-style strings are stored in an array of _____
chars
doubles
developer intent
Interface Builder
13. A message sent from one application to an object in another application.
remote message
protocol
pointer
copy
14. 3 Common Float data types: float - _____ - CGFloat
ARC
double
Smalltalk
method
15. An object of unknown class. Interface is published through protocol declaration.
polymorphism
weak
readonly
anonymous object
16. ______ operators take a single operand
mutex
Edit>Refactor>Convert to Objective-C ARC
id
Unitary
17. 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
Unsigned
class
designated initializer
adopt
18. 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.
value
dynamic allocation
factory
instance
19. The most flexible C data type: ______
designated
struct
deprecated
unitary
20. ______ data types are always zero or greate
binary
Unsigned
struct
framework
21. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
pointer
designated
binary
Edit>Refactor>Convert to Objective-C ARC
22. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
Unsigned
ARC
instance
@interface
23. a+b; is an example of using a _____ operator
object
precedence
binary
class object
24. All objects are created on the _____
heap
square brackets
nonatomic
dereference (dereferencing)
25. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
ampersand (&)
interface
doubles
precedence
26. This symbol denotes a method as being an instance method
+
Categories
-
null
27. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
abstract class
assign
interface
C operators
28. An object that acts on behalf of another object.
copy
class method
delegate
encapsulation
29. Placing a ____ before a normal variable name gives it's address
anonymous object
class method
ampersand (&)
developer intent
30. In object-oriented programming a procedure that can be executed by an object.
method
Encapsulation
dispatch table
printf( )
31. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
%
dynamic binding
procedures
9
32. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
superset
readonly
Smalltalk
dynamic typing
33. Finding the method implementation to invoke in response to the message
dangling pointer
reference counting
event
dynamic binding
34. Discovering the class of an object at runtime rather than at compile time.
informal protocol
dynamic typing
selector
abstract superclass
35. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
receiver
interface
long long
deprecated
36. 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
dynamic typing
struct
NSString
Edit>Refactor>Convert to Objective-C ARC
37. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
9
mutex
cannot
delegates
38. 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.
weak
long long
asynchronous message
abstract class
39. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
pointer
%@
C operators
40. Property attribute that synthesizes accessors that are not thread safe
AppKit
readwrite
+
nonatomic
41. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
Enumerations
long long
zero
42. A class is said to do this when it declares that it implements all the methods in the protocol.
attributes
structures
adopt
copy
43. To destroy an object set the variable that points to it to _____
fields
nil
procedural programming language
@implementation
44. 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.
runtime
abstract class
NSObject
link time
45. _____ 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'.
informal protocol
superset
double
Encapsulation
46. Any method that can be used by an instance of a class rather than by the class object.
instance method
ampersand (&)
selector
Enumerations
47. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
selector
binary
@implementation
square brackets
48. Property attribute that synthesizes only a getter for the property
procedures
dispatch table
double
readonly
49. This symbol denotes a method as being a class method
+
deprecated
fields
object
50. a++; is an example of using a _____ operator
framework
message
unitary
abstract class