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 prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
instance variable
namespace
floating-point
2. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
conform
cannot
runtime
+
3. The most flexible C data type: ______
cannot
@interface
attributes
struct
4. 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.
readwrite
class object
Enumerations
receiver
5. _____ 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'.
Encapsulation
superclass
subclass
framework
6. 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.
binary
%
outlet
C operators
7. 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
zero
structures
designated
Unsigned
8. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
outlet
Pointers
attributes
interface
9. 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
designated initializer
Binary
AppKit
printf( )
10. Finding the method implementation to invoke in response to the message
Smalltalk
synchronous message
Categories
dynamic binding
11. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
memory leak
dynamic allocation
formal protocol
12. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
Protocols
factory
polymorphism
13. A struct may contain multiple ____ consisting of different data types
designated
assign
fields
id
14. A set of method definitions that is segregated from the rest of the class definition.
Product>Profile>Leaks>Profile
category
binary
receiver
15. An object in another application - one that's a potential receiver for a remote message.
subclass
remote object
Interface Builder
Smalltalk
16. 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.
class method
link time
zero
+
17. The root class in Objective-C
designated
NSObject
polymorphism
superclass
18. In a home building analogy a ____ is the blueprint and the object is the house
NSObject
remote message
printf( )
class
19. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
deprecated
encapsulation
Product>Profile>Leaks>Profile
dynamic allocation
20. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
subclass
asterisk (*)
precedence
chars
21. C-style strings are stored in an array of _____
ARC
-
static typing
chars
22. 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
dynamic allocation
method
copy
23. C-style strings always end with a ____ character
printf( )
superset
%
null
24. An object that acts on behalf of another object.
instance
dynamic binding
delegate
instance
25. _____ data types can be both positive and negative
assign
factory
Signed
factory object
26. 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.
C operators
selector
category
distributed objects
27. A variable that points to the memory address of another value
designated
square brackets
selector
pointer
28. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
binary
outlet
zero
29. Property attribute that synthesizes accessors that are not thread safe
nonatomic
dangling pointer
assign
ARC
30. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
doubles
Signed
value
Pointers
31. The first index in an array is valued at ____
runtime
zero
runtime
selector
32. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
-
%
subclass
33. 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
runtime
formal protocol
receiver
synchronous message
34. Property attribute that synthesizes both a getter and setter for the property
dynamic binding
%
long long
readwrite
35. 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
dangling pointer
asynchronous message
%
36. Square bracket syntax for calling a method
conform
square brackets
message
[receiver message];
37. _____ allow indirect access and modification of a variable's value.
Pointers
factory
Binary
factory object
38. 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.
inheritance hierarchy
anonymous object
static typing
dynamic allocation
39. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
value
superclass
runtime
40. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Product>Profile>Leaks>Profile
pointer
heap
Cocoa
41. Any class that's one step below another class in the inheritance hierarchy.
inheritance
factory object
Encapsulation
subclass
42. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
remote object
Edit>Refactor>Convert to Objective-C ARC
instance
framework
43. Initializer method traditionally begin with the _____ prefix
attributes
fields
procedures
init
44. This symbol denotes a method as being a class method
dynamic binding
+
precedence
class method
45. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
dynamic typing
cycles
dereference (dereferencing)
inheritance
46. Objective-C binds methods and arguments at _____ instead of compile time
static typing
Categories
runtime
zero
47. 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.
remote message
object
comma-separated
C operators
48. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
assignment
@implementation
Encapsulation
ampersand (&)
49. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
anonymous object
binary
informal protocol
message
50. 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).
NSString
Signed
NSObject
message expression