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. Placing a ____ before a normal variable name gives it's address
ampersand (&)
class object
square brackets
conform
2. 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.
implementation
method
dynamic allocation
precedence
3. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
link time
polymorphism
double
value
4. Objective-C binds methods and arguments at _____ instead of compile time
pointer
double
abstract class
runtime
5. C-style strings are stored in an array of _____
factory
dynamic binding
chars
asynchronous message
6. In a home building analogy a ____ is the blueprint and the object is the house
instance method
polymorphism
copy
class
7. An object id with a value of 0.
assign
category
Unitary
nil
8. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
struct
runtime
Product>Profile>Leaks>Profile
Cocoa
9. _____ 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'.
C operators
ARC
long long
Encapsulation
10. ______ data types are always zero or greate
assignment
dangling pointer
Unsigned
namespace
11. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
implementation
memory leak
mutex
weak
12. Discovering the class of an object at runtime rather than at compile time.
link time
object
dangling pointer
dynamic typing
13. Property attribute that synthesizes only a getter for the property
structures
C operators
interface
readonly
14. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
structures
chars
Smalltalk
comma-separated
15. An object in another application - one that's a potential receiver for a remote message.
category
designated
remote object
instance
16. 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.
dynamic binding
floating-point
NSString
Interface Builder
17. A compiler feature that provides automated memory management
ampersand (&)
message expression
init
ARC
18. A variable that points to the memory address of another value
informal protocol
Categories
runtime
pointer
19. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
readwrite
deprecated
structures
informal protocol
20. This symbol denotes a method as being a class method
readwrite
+
abstract class
dereference (dereferencing)
21. Objective-C's protocols are really about communicating _____ _______
abstract class
implementation
developer intent
outlet
22. Any method that can be used by an instance of a class rather than by the class object.
instance
Categories
instance method
fields
23. The process of setting or reading the value at an address pointed to by a pointer
Pointers
category
weak
dereference (dereferencing)
24. Xcode sequence to examine an app for memory leaks or retain cycles
class object
Enumerations
comma-separated
Product>Profile>Leaks>Profile
25. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
pointer
message expression
binary
C operators
26. 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.
object
asynchronous message
Pointers
dangling pointer
27. 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
instance
NSString
subclass
runtime
28. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
asterisk (*)
procedures
method
delegates
29. 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.
double
inheritance hierarchy
floating-point
dynamic binding
30. 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.
abstract class
class
class object
delegates
31. ______ operators take a single operand
Unitary
pointer
memory leak
dynamic typing
32. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
long long
runtime
designated
square brackets
33. a++; is an example of using a _____ operator
heap
dereference (dereferencing)
unitary
superset
34. Finding the method implementation to invoke in response to the message
compile time
dynamic binding
message expression
ampersand (&)
35. In Objective-C floats are more commonly used than ______
doubles
nil
zero
pointers
36. The _____ function can be used to print a message to the console
null
Encapsulation
printf( )
Edit>Refactor>Convert to Objective-C ARC
37. Same as class object. (first way to say it.)
factory
procedural programming language
class object
runtime
38. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
class object
procedural programming language
Binary
polymorphism
39. An architecture that facilitates communication between objects in different address spaces.
9
C operators
distributed objects
long long
40. An object that acts on behalf of another object.
delegate
[receiver message];
remote object
Encapsulation
41. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
floating-point
distributed objects
precedence
interface
42. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
long long
superclass
dereference (dereferencing)
protocol
43. 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
compile time
namespace
static typing
synchronous message
44. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
interface
Categories
procedures
@implementation
45. Xcode sequence to convert non-ARC apps to ARC
formal protocol
Edit>Refactor>Convert to Objective-C ARC
factory
heap
46. 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
structures
Pointers
class
Smalltalk
47. Symbol used to denote a placeholder in a format string
dispatch table
%
developer intent
superset
48. 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.
link time
informal protocol
comma-separated
factory
49. 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
weak
inheritance
reference counting
50. 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.
Enumerations
struct
abstract class
delegates