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 class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
@interface
printf( )
superclass
%@
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.
properties
abstract class
conform
chars
3. In a home building analogy a ____ is the blueprint and the object is the house
class
remote message
Categories
C operators
4. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
class method
Cocoa
%
asterisk (*)
5. C-style strings are stored in an array of _____
category
chars
comma-separated
ampersand (&)
6. Objective-C binds methods and arguments at _____ instead of compile time
binary
link time
pointers
runtime
7. In Objective-C floats are more commonly used than ______
abstract class
doubles
+
comma-separated
8. Three main categories of more complicated data structures:_______ - arrays and structs
runtime
abstract superclass
pointers
init
9. In the Objective-C language the declaration of a group of methods not associated with any particular class.
event
adopt
protocol
interface
10. An object in another application - one that's a potential receiver for a remote message.
readwrite
square brackets
remote object
runtime
11. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
strong
init
%@
12. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
NSString
dispatch table
@implementation
encapsulation
13. Objective-C's protocols are really about communicating _____ _______
developer intent
zero
init
distributed objects
14. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
Unsigned
instance variable
Smalltalk
15. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
C operators
informal protocol
developer intent
16. An architecture that facilitates communication between objects in different address spaces.
Binary
distributed objects
deprecated
heap
17. In object-oriented programming the object that is sent a message.
printf( )
dynamic binding
outlet
receiver
18. 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
reference counting
init
dynamic binding
19. A variable that points to the memory address of another value
deprecated
instance
pointer
assignment
20. A set of method definitions that is segregated from the rest of the class definition.
class method
printf( )
adopt
category
21. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
NSString
Product>Profile>Leaks>Profile
procedures
22. To destroy an object set the variable that points to it to _____
nil
Unsigned
polymorphism
deprecated
23. _____ allow you to add new methods to existing classes
nil
designated initializer
Categories
assign
24. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
delegate
inheritance
value
attributes
25. Objective-C methods are called using ____ _____
id
readonly
square brackets
NSObject
26. In a format string the place holder for an object is ______
%@
null
NSObject
delegates
27. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
NSString
superclass
framework
28. Finding the method implementation to invoke in response to the message
assign
Cocoa
dynamic binding
comma-separated
29. 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.
floating-point
mutex
assignment
instance variable
30. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
instance
polymorphism
Categories
chars
31. Same as class object. (second way to say it.)
@implementation
subclass
superset
factory object
32. When creating a class header file you begin with the _____ keyword and close with the @end keyword
subclass
@interface
designated
dynamic binding
33. Any class that's one step below another class in the inheritance hierarchy.
subclass
AppKit
square brackets
implementation
34. 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
dynamic typing
[receiver message];
framework
35. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Binary
+
subclass
cannot
36. Placing a ____ before a normal variable name gives it's address
compile time
class
value
ampersand (&)
37. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
instance
pointers
inheritance hierarchy
38. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
reference counting
9
inheritance
printf( )
39. 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.
delegate
formal protocol
nil
asterisk (*)
40. ______ operators take a single operand
long long
Unitary
informal protocol
pointers
41. The first index in an array is valued at ____
zero
synchronous message
Enumerations
%
42. A ____ ____ is a situation where you free memory and then accidentally continue to use it
delegates
dangling pointer
AppKit
class
43. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
distributed objects
nil
Binary
long long
44. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
Interface Builder
dispatch table
factory object
dereference (dereferencing)
45. Same as class object. (first way to say it.)
delegate
receiver
factory
namespace
46. 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
anonymous object
factory
dynamic binding
47. _____ operators take 2 operands
chars
conform
unitary
Binary
48. In object-oriented programming a procedure that can be executed by an object.
pointers
method
AppKit
id
49. 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.
C operators
dynamic allocation
heap
distributed objects
50. Xcode sequence to convert non-ARC apps to ARC
%@
Edit>Refactor>Convert to Objective-C ARC
value
binary