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. 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).
adopt
message expression
superclass
NSString
2. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
dynamic typing
Pointers
@interface
3. ARC is susceptible to retain _____
cycles
Pointers
[receiver message];
interface
4. Symbol used to denote a placeholder in a format string
%
Unitary
assign
Protocols
5. 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.
Cocoa
strong
procedures
selector
6. Property attribute that synthesizes accessors that are not thread safe
nonatomic
ARC
receiver
precedence
7. Property attribute that causes the setter to store a copy of the assigned value
informal protocol
struct
pointers
copy
8. 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.
Interface Builder
@interface
dangling pointer
category
9. 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.
pointer
ARC
namespace
interface
10. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
Unitary
double
inheritance
11. A protocol declared as a category usually as a category of the NSObject class.
pointer
remote object
class method
informal protocol
12. The most flexible C data type: ______
class
message
runtime
struct
13. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
runtime
dangling pointer
static typing
attributes
14. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
class
long long
dereference (dereferencing)
15. Objective-C's protocols are really about communicating _____ _______
inheritance hierarchy
ARC
developer intent
formal protocol
16. C-style strings always end with a ____ character
properties
dispatch table
null
readonly
17. 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.
reference counting
instance
dynamic allocation
class method
18. The root class in Objective-C
doubles
AppKit
event
NSObject
19. This symbol denotes a method as being an instance method
object
Interface Builder
-
Enumerations
20. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
-
@implementation
abstract superclass
AppKit
21. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Protocols
dereference (dereferencing)
Product>Profile>Leaks>Profile
designated
22. Another name for a class that's defined solely so that other classes can inherit from it.
message
abstract superclass
nil
memory leak
23. _____ data types can be both positive and negative
procedures
attributes
Signed
value
24. A ____ ____ is a situation where you free memory and then accidentally continue to use it
remote object
Unsigned
dangling pointer
floating-point
25. Objective-C binds methods and arguments at _____ instead of compile time
NSObject
conform
runtime
printf( )
26. An architecture that facilitates communication between objects in different address spaces.
9
cannot
distributed objects
mutex
27. 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.
outlet
properties
class
class object
28. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
nil
long long
link time
nil
29. 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.
distributed objects
Interface Builder
asynchronous message
delegates
30. Square bracket syntax for calling a method
cycles
distributed objects
[receiver message];
null
31. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Smalltalk
dispatch table
binary
namespace
32. _____ 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'.
instance
selector
Encapsulation
unitary
33. 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
zero
adopt
34. a++; is an example of using a _____ operator
heap
pointers
unitary
adopt
35. All objects are created on the _____
protocol
heap
factory
Unitary
36. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
fields
namespace
conform
@implementation
37. 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.
Interface Builder
binary
structures
formal protocol
38. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
formal protocol
asterisk (*)
remote object
delegates
39. 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.
cannot
Binary
synchronous message
inheritance hierarchy
40. In a format string the place holder for an object is ______
%@
outlet
polymorphism
readwrite
41. 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
precedence
strong
reference counting
42. _____ allow indirect access and modification of a variable's value.
cannot
value
instance variable
Pointers
43. 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
link time
namespace
compile time
44. Same as class object. (first way to say it.)
adopt
dispatch table
factory
outlet
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
unitary
zero
adopt
46. A variable that points to the memory address of another value
Protocols
value
C operators
pointer
47. Objective-C is a _____ of the C language
adopt
runtime
superset
delegate
48. Xcode sequence to convert non-ARC apps to ARC
adopt
instance
message
Edit>Refactor>Convert to Objective-C ARC
49. When creating a class header file you begin with the _____ keyword and close with the @end keyword
value
AppKit
assignment
@interface
50. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
procedures
AppKit
copy
instance