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. Property attribute that synthesizes both a getter and setter for the property
id
remote object
readwrite
pointers
2. _____ operators take 2 operands
Cocoa
Smalltalk
struct
Binary
3. 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.
abstract superclass
chars
reference counting
Binary
4. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
+
namespace
designated
weak
5. There are ____ fundamental building blocks in Objective-C
unitary
Unitary
9
Interface Builder
6. 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.
remote object
implementation
chars
dynamic allocation
7. A variable that points to the memory address of another value
dereference (dereferencing)
readonly
pointer
Edit>Refactor>Convert to Objective-C ARC
8. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
remote object
zero
9
9. Property attribute that synthesizes only a getter for the property
struct
structures
readonly
delegates
10. Xcode sequence to examine an app for memory leaks or retain cycles
pointer
Product>Profile>Leaks>Profile
Protocols
encapsulation
11. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
instance
nil
inheritance
procedural programming language
12. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
nonatomic
square brackets
asterisk (*)
13. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
ARC
designated
memory leak
copy
14. An architecture that facilitates communication between objects in different address spaces.
Pointers
dynamic typing
designated
distributed objects
15. An object that acts on behalf of another object.
factory object
subclass
delegate
instance
16. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
C operators
delegates
runtime
encapsulation
17. 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.
Unitary
selector
conform
namespace
18. 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.
square brackets
outlet
selector
AppKit
19. The most flexible C data type: ______
struct
%@
Enumerations
inheritance hierarchy
20. All objects are created on the _____
chars
method
instance
heap
21. Three main categories of more complicated data structures:_______ - arrays and structs
double
pointers
cannot
Unitary
22. 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.
subclass
deprecated
namespace
long long
23. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
dangling pointer
class
Edit>Refactor>Convert to Objective-C ARC
factory object
24. Same as class object. (second way to say it.)
protocol
Unitary
printf( )
factory object
25. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
procedural programming language
pointers
delegate
dispatch table
26. In the Objective-C language the declaration of a group of methods not associated with any particular class.
strong
informal protocol
protocol
dereference (dereferencing)
27. _____ 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'.
zero
weak
Encapsulation
Pointers
28. In a format string the place holder for an object is ______
-
Smalltalk
link time
%@
29. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Product>Profile>Leaks>Profile
link time
factory
value
30. When creating a class header file you begin with the _____ keyword and close with the @end keyword
comma-separated
superset
@interface
chars
31. 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.
NSObject
outlet
procedural programming language
dispatch table
32. Objective-C is a _____ of the C language
message expression
superset
Interface Builder
designated initializer
33. In object-oriented programming a procedure that can be executed by an object.
asynchronous message
C operators
method
dispatch table
34. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
init
synchronous message
delegates
35. A class is said to do this when it declares that it implements all the methods in the protocol.
init
adopt
distributed objects
C operators
36. Property attribute that causes the setter to store a copy of the assigned value
copy
implementation
inheritance hierarchy
developer intent
37. A compiler feature that provides automated memory management
message expression
ARC
nil
Interface Builder
38. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
fields
dereference (dereferencing)
static typing
39. Objective-C's protocols are really about communicating _____ _______
floating-point
namespace
Unitary
developer intent
40. A set of method definitions that is segregated from the rest of the class definition.
static typing
category
link time
AppKit
41. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
null
outlet
abstract superclass
42. This symbol denotes a method as being an instance method
null
Unsigned
category
-
43. This symbol denotes a method as being a class method
+
abstract superclass
nil
Unsigned
44. 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
runtime
dynamic allocation
structures
dynamic typing
45. 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
readonly
synchronous message
abstract superclass
factory
46. A struct may contain multiple ____ consisting of different data types
+
fields
superclass
nil
47. Discovering the class of an object at runtime rather than at compile time.
Pointers
superclass
informal protocol
dynamic typing
48. 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).
implementation
properties
chars
receiver
49. In a home building analogy a ____ is the blueprint and the object is the house
class
namespace
readwrite
delegate
50. Same as class object. (first way to say it.)
factory
framework
remote object
NSObject