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. This symbol denotes a method as being a class method
+
selector
binary
fields
2. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
binary
outlet
value
framework
3. _____ operators take 2 operands
ARC
Binary
floating-point
distributed objects
4. Property attribute that synthesizes only a getter for the property
abstract superclass
implementation
readonly
instance method
5. C-style strings always end with a ____ character
anonymous object
@interface
Unitary
null
6. 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.
class method
square brackets
selector
binary
7. C-style strings are stored in an array of _____
zero
Encapsulation
Edit>Refactor>Convert to Objective-C ARC
chars
8. _____ data types can be both positive and negative
%
Signed
Pointers
superset
9. 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.
doubles
double
link time
AppKit
10. ____ provide a concise & elegant method for defining a discrete set of values
cannot
Binary
Enumerations
nil
11. 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.
structures
category
init
formal protocol
12. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
object
factory
deprecated
abstract superclass
13. 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.
ARC
cannot
namespace
instance method
14. a++; is an example of using a _____ operator
ARC
dynamic allocation
id
unitary
15. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
pointer
framework
NSString
@interface
16. 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.
id
inheritance hierarchy
namespace
Enumerations
17. _____ allow indirect access and modification of a variable's value.
Pointers
AppKit
strong
properties
18. 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
class object
class method
Cocoa
structures
19. An architecture that facilitates communication between objects in different address spaces.
[receiver message];
distributed objects
asynchronous message
readwrite
20. 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
readonly
id
NSString
binary
21. Square bracket syntax for calling a method
[receiver message];
chars
Smalltalk
interface
22. 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.
runtime
outlet
ARC
encapsulation
23. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
adopt
implementation
category
24. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
abstract superclass
copy
polymorphism
cannot
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.
dynamic allocation
Product>Profile>Leaks>Profile
NSString
event
26. An object in another application - one that's a potential receiver for a remote message.
properties
remote object
%
factory
27. Same as class object. (first way to say it.)
interface
factory
dynamic allocation
conform
28. In object-oriented programming the object that is sent a message.
receiver
copy
subclass
zero
29. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
inheritance
asterisk (*)
binary
strong
30. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
category
polymorphism
long long
31. The _____ function can be used to print a message to the console
cannot
assignment
printf( )
copy
32. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
procedures
synchronous message
@interface
polymorphism
33. Objective-C binds methods and arguments at _____ instead of compile time
runtime
receiver
-
delegate
34. 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.
encapsulation
factory object
readwrite
framework
35. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
printf( )
C operators
conform
36. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
instance
implementation
compile time
dereference (dereferencing)
37. 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.
Unsigned
id
unitary
NSObject
38. This symbol denotes a method as being an instance method
runtime
static typing
delegates
-
39. A method that can operate on class objects rather than instances of the class.
class method
designated initializer
informal protocol
floating-point
40. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
message
static typing
ARC
designated initializer
41. The first index in an array is valued at ____
zero
mutex
receiver
id
42. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
chars
message
Enumerations
asynchronous message
43. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
chars
superclass
namespace
designated
44. 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).
procedural programming language
message expression
readwrite
category
45. Symbol used to denote a placeholder in a format string
%
developer intent
factory object
dispatch table
46. 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.
remote object
message
method
asynchronous message
47. Objective-C's protocols are really about communicating _____ _______
developer intent
nonatomic
chars
category
48. a+b; is an example of using a _____ operator
binary
framework
selector
pointer
49. Objective-C methods are called using ____ _____
reference counting
square brackets
nil
NSString
50. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
ampersand (&)
asterisk (*)
null
C operators