SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
Product>Profile>Leaks>Profile
remote object
abstract superclass
2. Data types are divided into two main categories: integer and ______
floating-point
deprecated
Enumerations
comma-separated
3. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
-
object
interface
nil
4. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
Unsigned
delegates
Signed
Smalltalk
5. Objective-C binds methods and arguments at _____ instead of compile time
assignment
runtime
outlet
9
6. When creating a class header file you begin with the _____ keyword and close with the @end keyword
nil
@interface
distributed objects
Enumerations
7. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
object
square brackets
dynamic allocation
framework
8. Another name for a class that's defined solely so that other classes can inherit from it.
developer intent
abstract superclass
static typing
id
9. 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
nil
delegates
link time
10. In the Objective-C language the declaration of a group of methods not associated with any particular class.
Encapsulation
protocol
framework
unitary
11. Property attribute that synthesizes accessors that are not thread safe
nonatomic
procedures
Protocols
floating-point
12. All objects are created on the _____
id
asterisk (*)
heap
runtime
13. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
struct
Cocoa
structures
dereference (dereferencing)
14. To destroy an object set the variable that points to it to _____
class
procedural programming language
mutex
nil
15. Property attribute that causes the setter to store a strong reference to the assigned value
strong
-
class
pointer
16. An object in another application - one that's a potential receiver for a remote message.
outlet
remote object
ampersand (&)
[receiver message];
17. 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.
binary
runtime
abstract superclass
developer intent
18. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
compile time
Categories
conform
weak
19. In Objective-C floats are more commonly used than ______
doubles
distributed objects
zero
Smalltalk
20. C-style strings are stored in an array of _____
message expression
chars
procedural programming language
designated initializer
21. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
formal protocol
procedural programming language
delegates
22. 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
ampersand (&)
%@
structures
event
23. A message sent from one application to an object in another application.
remote message
value
nonatomic
+
24. 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.
inheritance
id
instance
inheritance hierarchy
25. 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.
designated
dynamic allocation
asynchronous message
-
26. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
NSObject
implementation
selector
27. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
attributes
AppKit
method
28. 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.
Smalltalk
framework
outlet
link time
29. Any class that's one step below another class in the inheritance hierarchy.
method
assign
polymorphism
subclass
30. There are ____ fundamental building blocks in Objective-C
attributes
runtime
static typing
9
31. Same as class object. (second way to say it.)
comma-separated
outlet
assignment
factory object
32. C-style strings always end with a ____ character
dangling pointer
null
factory object
doubles
33. 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.
9
abstract class
fields
conform
34. ____ provide a concise & elegant method for defining a discrete set of values
chars
Enumerations
value
Protocols
35. 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.
square brackets
selector
designated
heap
36. Same as class object. (first way to say it.)
factory
AppKit
%
Enumerations
37. ARC is susceptible to retain _____
receiver
category
cycles
deprecated
38. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
readonly
cannot
comma-separated
runtime
39. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
Protocols
Unitary
long long
informal protocol
40. 3 Common Float data types: float - _____ - CGFloat
double
floating-point
precedence
heap
41. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
class
@implementation
message
compile time
42. _____ 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'.
9
Pointers
Encapsulation
comma-separated
43. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
nil
C operators
instance variable
44. An object id with a value of 0.
framework
nil
class
compile time
45. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
assign
procedures
instance variable
readwrite
46. Property attribute that synthesizes both a getter and setter for the property
readwrite
printf( )
ampersand (&)
asterisk (*)
47. The first index in an array is valued at ____
zero
dangling pointer
framework
Enumerations
48. A method that can operate on class objects rather than instances of the class.
distributed objects
pointers
Protocols
class method
49. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
adopt
Cocoa
superclass
50. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Product>Profile>Leaks>Profile
inheritance
copy
dispatch table