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. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
copy
receiver
designated initializer
2. 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.
NSString
zero
class object
link time
3. ______ operators take a single operand
Unitary
nonatomic
[receiver message];
runtime
4. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
pointers
-
mutex
link time
5. 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
precedence
static typing
synchronous message
pointer
6. In the Objective-C language the declaration of a group of methods not associated with any particular class.
dispatch table
protocol
procedural programming language
designated
7. Property attribute that causes the setter to store a copy of the assigned value
superclass
copy
runtime
namespace
8. A message sent from one application to an object in another application.
remote message
dereference (dereferencing)
Categories
instance variable
9. C-style strings are stored in an array of _____
remote message
ampersand (&)
struct
chars
10. Xcode sequence to examine an app for memory leaks or retain cycles
instance variable
Product>Profile>Leaks>Profile
dispatch table
square brackets
11. 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
anonymous object
doubles
asynchronous message
designated initializer
12. _____ allow you to add new methods to existing classes
ARC
Binary
init
Categories
13. _____ 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'.
class
Unsigned
Encapsulation
informal protocol
14. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
selector
static typing
encapsulation
square brackets
15. In a home building analogy a ____ is the blueprint and the object is the house
[receiver message];
Smalltalk
dynamic binding
class
16. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
static typing
anonymous object
Encapsulation
17. 3 Common Float data types: float - _____ - CGFloat
memory leak
double
dynamic allocation
pointers
18. 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.
procedural programming language
cannot
formal protocol
inheritance hierarchy
19. 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
Unsigned
unitary
%@
20. There are ____ fundamental building blocks in Objective-C
dispatch table
superset
@implementation
9
21. Placing a ____ before a normal variable name gives it's address
doubles
assign
polymorphism
ampersand (&)
22. An object that acts on behalf of another object.
Unitary
copy
precedence
delegate
23. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
nil
compile time
pointers
24. An object id with a value of 0.
nil
compile time
Cocoa
chars
25. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
remote message
category
copy
deprecated
26. Initializer method traditionally begin with the _____ prefix
properties
long long
dynamic typing
init
27. 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
factory
instance
category
28. _____ data types can be both positive and negative
Signed
factory
subclass
Unitary
29. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
delegates
doubles
zero
mutex
30. ____ provide a concise & elegant method for defining a discrete set of values
Protocols
long long
Enumerations
Edit>Refactor>Convert to Objective-C ARC
31. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
designated initializer
synchronous message
instance method
superclass
32. A ____ _____ is where you forget to free up memory
init
readonly
memory leak
superset
33. Another name for a class that's defined solely so that other classes can inherit from it.
nonatomic
class object
inheritance
abstract superclass
34. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
synchronous message
pointers
runtime
35. Same as class object. (first way to say it.)
ampersand (&)
Signed
factory
NSString
36. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
namespace
init
@implementation
%@
37. _____ allow indirect access and modification of a variable's value.
strong
Pointers
dereference (dereferencing)
inheritance hierarchy
38. A variable that points to the memory address of another value
pointer
class
unitary
Binary
39. A method that can operate on class objects rather than instances of the class.
polymorphism
precedence
class method
Signed
40. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
dynamic typing
outlet
procedural programming language
remote object
41. C-style strings always end with a ____ character
null
reference counting
NSString
delegates
42. 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
id
instance variable
43. Objective-C objects should use strong or weak ______
Product>Profile>Leaks>Profile
assignment
mutex
attributes
44. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
binary
init
namespace
delegates
45. 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
message expression
Pointers
ARC
46. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
ampersand (&)
nil
event
47. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
informal protocol
interface
Encapsulation
dangling pointer
48. In object-oriented programming the object that is sent a message.
Smalltalk
method
receiver
Edit>Refactor>Convert to Objective-C ARC
49. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
instance
precedence
floating-point
null
50. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Binary
Protocols
event
abstract superclass