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. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
polymorphism
procedures
implementation
Cocoa
2. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
procedures
framework
zero
value
3. ____ provide a concise & elegant method for defining a discrete set of values
cycles
encapsulation
Enumerations
outlet
4. Instance variables are optional in iOS if ________ are used
properties
unitary
chars
designated initializer
5. Property attribute that synthesizes both a getter and setter for the property
readonly
assign
Interface Builder
readwrite
6. 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.
selector
outlet
nil
Product>Profile>Leaks>Profile
7. Xcode sequence to convert non-ARC apps to ARC
assignment
instance
Edit>Refactor>Convert to Objective-C ARC
anonymous object
8. An architecture that facilitates communication between objects in different address spaces.
interface
remote object
distributed objects
floating-point
9. Square bracket syntax for calling a method
dynamic binding
ampersand (&)
[receiver message];
ARC
10. When creating a class header file you begin with the _____ keyword and close with the @end keyword
C operators
readonly
@interface
factory object
11. The first index in an array is valued at ____
copy
interface
zero
unitary
12. 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
assignment
dynamic binding
implementation
13. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
Cocoa
Unsigned
Product>Profile>Leaks>Profile
designated initializer
14. 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
memory leak
dispatch table
structures
delegates
15. 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.
encapsulation
cycles
instance variable
Protocols
16. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
NSString
unitary
deprecated
@implementation
17. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Unitary
instance variable
remote object
static typing
18. In Objective-C floats are more commonly used than ______
distributed objects
instance
doubles
struct
19. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
@interface
readonly
double
procedural programming language
20. 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.
memory leak
formal protocol
nonatomic
abstract class
21. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
adopt
dereference (dereferencing)
class object
dynamic typing
22. _____ operators take 2 operands
method
reference counting
Binary
subclass
23. a+b; is an example of using a _____ operator
superclass
link time
binary
%
24. 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.
factory object
binary
id
dispatch table
25. A variable that points to the memory address of another value
AppKit
long long
pointer
receiver
26. Symbol used to denote a placeholder in a format string
init
%
Cocoa
ARC
27. The root class in Objective-C
NSObject
assign
zero
superclass
28. 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
nil
doubles
NSString
square brackets
29. Objective-C binds methods and arguments at _____ instead of compile time
message expression
runtime
Edit>Refactor>Convert to Objective-C ARC
Pointers
30. In object-oriented programming a procedure that can be executed by an object.
deprecated
method
adopt
assignment
31. 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.
deprecated
subclass
remote message
reference counting
32. A ____ ____ is a situation where you free memory and then accidentally continue to use it
instance
abstract class
dangling pointer
dynamic binding
33. There are ____ fundamental building blocks in Objective-C
9
informal protocol
C operators
Signed
34. A struct may contain multiple ____ consisting of different data types
dynamic allocation
fields
NSObject
properties
35. A message sent from one application to an object in another application.
deprecated
cycles
delegate
remote message
36. Same as class object. (second way to say it.)
id
nonatomic
factory object
conform
37. _____ allow you to add new methods to existing classes
Categories
adopt
dynamic binding
procedures
38. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
zero
inheritance
init
39. This symbol denotes a method as being a class method
assignment
synchronous message
+
readonly
40. Finding the method implementation to invoke in response to the message
anonymous object
category
pointers
dynamic binding
41. The _____ function can be used to print a message to the console
runtime
factory object
printf( )
superclass
42. To destroy an object set the variable that points to it to _____
delegate
nil
instance
assignment
43. Xcode sequence to examine an app for memory leaks or retain cycles
Pointers
instance variable
Encapsulation
Product>Profile>Leaks>Profile
44. Three main categories of more complicated data structures:_______ - arrays and structs
procedures
memory leak
Encapsulation
pointers
45. _____ data types can be both positive and negative
Product>Profile>Leaks>Profile
mutex
Signed
fields
46. a++; is an example of using a _____ operator
unitary
doubles
Unsigned
Signed
47. An object that acts on behalf of another object.
Smalltalk
protocol
delegate
static typing
48. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
dynamic allocation
conform
adopt
49. A ____ _____ is where you forget to free up memory
event
method
procedural programming language
memory leak
50. Objective-C's protocols are really about communicating _____ _______
Enumerations
Protocols
Unitary
developer intent