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. Same as class object. (first way to say it.)
designated
receiver
nil
factory
2. 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.
pointers
category
synchronous message
abstract class
3. A message sent from one application to an object in another application.
weak
designated initializer
remote message
Protocols
4. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
encapsulation
dereference (dereferencing)
Smalltalk
runtime
5. A set of method definitions that is segregated from the rest of the class definition.
instance variable
category
struct
Edit>Refactor>Convert to Objective-C ARC
6. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
event
comma-separated
inheritance hierarchy
nonatomic
7. C-style strings are stored in an array of _____
%@
nonatomic
readonly
chars
8. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
informal protocol
inheritance
link time
procedural programming language
9. 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.
9
reference counting
superclass
subclass
10. 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
properties
@interface
class object
11. Three main categories of more complicated data structures:_______ - arrays and structs
chars
%
pointers
dynamic binding
12. In a home building analogy a ____ is the blueprint and the object is the house
inheritance
nonatomic
namespace
class
13. Property attribute that causes the setter to store a strong reference to the assigned value
instance variable
readonly
strong
Encapsulation
14. 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).
object
C operators
message expression
class
15. 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).
Unsigned
factory
implementation
class
16. 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
Smalltalk
instance method
NSString
event
17. Xcode sequence to convert non-ARC apps to ARC
+
nil
Edit>Refactor>Convert to Objective-C ARC
inheritance
18. A variable that points to the memory address of another value
Protocols
pointer
printf( )
Unsigned
19. In object-oriented programming the object that is sent a message.
copy
subclass
receiver
weak
20. 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.
method
runtime
comma-separated
inheritance hierarchy
21. 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.
9
outlet
assign
remote object
22. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
printf( )
selector
inheritance
deprecated
23. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
class method
mutex
adopt
message
24. There are ____ fundamental building blocks in Objective-C
NSString
procedures
id
9
25. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
fields
message
Cocoa
init
26. 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.
inheritance hierarchy
inheritance
heap
chars
27. _____ data types can be both positive and negative
Signed
implementation
cycles
dispatch table
28. 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.
9
printf( )
selector
Unsigned
29. Objective-C methods are called using ____ _____
interface
copy
square brackets
weak
30. 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
superclass
printf( )
class object
31. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
double
delegate
instance
pointer
32. Objective-C's protocols are really about communicating _____ _______
developer intent
comma-separated
factory
dangling pointer
33. Property attribute that synthesizes both a getter and setter for the property
comma-separated
dispatch table
readwrite
fields
34. A method that can operate on class objects rather than instances of the class.
informal protocol
outlet
superclass
class method
35. An architecture that facilitates communication between objects in different address spaces.
zero
protocol
long long
distributed objects
36. To destroy an object set the variable that points to it to _____
remote message
class
designated initializer
nil
37. In a format string the place holder for an object is ______
nil
runtime
link time
%@
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.
compile time
dynamic allocation
@implementation
superset
39. _____ allow indirect access and modification of a variable's value.
memory leak
procedural programming language
Pointers
interface
40. An object that acts on behalf of another object.
delegate
heap
instance
Encapsulation
41. a++; is an example of using a _____ operator
method
dangling pointer
unitary
%@
42. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
copy
assign
reference counting
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.
init
link time
abstract class
superclass
44. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dynamic binding
%
dispatch table
compile time
45. Square bracket syntax for calling a method
[receiver message];
link time
C operators
cycles
46. 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.
namespace
reference counting
Signed
receiver
47. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Signed
instance
asterisk (*)
runtime
48. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
Protocols
double
assignment
class method
49. The most flexible C data type: ______
memory leak
struct
superclass
class method
50. ______ data types are always zero or greate
nil
Unsigned
anonymous object
asterisk (*)