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. In a home building analogy a ____ is the blueprint and the object is the house
Categories
class
superset
reference counting
2. To destroy an object set the variable that points to it to _____
nil
class
dangling pointer
NSString
3. This symbol denotes a method as being an instance method
-
@interface
comma-separated
[receiver message];
4. 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.
message
ARC
abstract class
Product>Profile>Leaks>Profile
5. 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.
instance variable
square brackets
copy
pointer
6. Any class that's one step below another class in the inheritance hierarchy.
Protocols
@interface
subclass
interface
7. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
NSObject
binary
class
8. 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
value
attributes
runtime
9. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
instance
delegates
heap
Categories
10. 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.
comma-separated
nil
readwrite
namespace
11. An object of unknown class. Interface is published through protocol declaration.
cannot
anonymous object
dispatch table
synchronous message
12. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
formal protocol
informal protocol
procedures
Pointers
13. An architecture that facilitates communication between objects in different address spaces.
distributed objects
protocol
NSObject
inheritance
14. Property attribute that synthesizes accessors that are not thread safe
nonatomic
instance
distributed objects
pointers
15. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
printf( )
weak
Smalltalk
static typing
16. Objective-C's protocols are really about communicating _____ _______
@interface
Enumerations
developer intent
outlet
17. 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.
abstract class
id
assign
inheritance hierarchy
18. ____ provide a concise & elegant method for defining a discrete set of values
category
encapsulation
interface
Enumerations
19. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
AppKit
receiver
value
reference counting
20. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
encapsulation
informal protocol
namespace
21. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
strong
Cocoa
fields
22. 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.
namespace
selector
subclass
struct
23. Instance variables are optional in iOS if ________ are used
selector
link time
properties
inheritance hierarchy
24. 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.
method
encapsulation
runtime
framework
25. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
weak
Protocols
deprecated
AppKit
26. 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).
message expression
Unitary
init
square brackets
27. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
nil
dangling pointer
comma-separated
28. ______ operators take a single operand
encapsulation
Unsigned
[receiver message];
Unitary
29. Objective-C is a _____ of the C language
struct
Interface Builder
superset
Enumerations
30. ______ data types are always zero or greate
instance
Unsigned
inheritance
subclass
31. A ____ _____ is where you forget to free up memory
nil
selector
pointer
memory leak
32. 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.
link time
Smalltalk
conform
interface
33. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
assign
value
event
copy
34. ARC is susceptible to retain _____
cycles
encapsulation
doubles
formal protocol
35. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
link time
inheritance
square brackets
dynamic binding
36. An object in another application - one that's a potential receiver for a remote message.
asynchronous message
remote object
polymorphism
fields
37. An object that acts on behalf of another object.
delegate
formal protocol
heap
inheritance
38. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
subclass
C operators
dispatch table
comma-separated
39. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
dynamic binding
dynamic allocation
superset
40. Objective-C methods are called using ____ _____
printf( )
namespace
square brackets
Binary
41. C-style strings are stored in an array of _____
comma-separated
chars
object
assignment
42. Same as class object. (second way to say it.)
procedures
factory object
weak
delegates
43. The first index in an array is valued at ____
Interface Builder
@interface
binary
zero
44. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
square brackets
NSObject
id
45. This symbol denotes a method as being a class method
+
-
object
factory
46. A protocol declared as a category usually as a category of the NSObject class.
pointers
copy
asterisk (*)
informal protocol
47. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
null
NSString
fields
dispatch table
48. 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
@interface
distributed objects
assignment
49. A struct may contain multiple ____ consisting of different data types
static typing
abstract class
instance
fields
50. 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.
conform
%@
object
ARC