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. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
Enumerations
message expression
interface
cycles
2. _____ 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'.
developer intent
Encapsulation
interface
strong
3. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
copy
event
structures
asterisk (*)
4. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
inheritance
instance variable
null
C operators
5. In Objective-C floats are more commonly used than ______
ampersand (&)
abstract class
square brackets
doubles
6. C-style strings are stored in an array of _____
Unsigned
chars
abstract superclass
designated
7. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
cannot
protocol
inheritance hierarchy
8. ______ data types are always zero or greate
Unsigned
Pointers
chars
protocol
9. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
[receiver message];
instance
factory
Cocoa
10. Objective-C is a _____ of the C language
reference counting
inheritance hierarchy
procedural programming language
superset
11. Xcode sequence to convert non-ARC apps to ARC
namespace
pointers
Edit>Refactor>Convert to Objective-C ARC
Interface Builder
12. 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
implementation
factory
reference counting
NSString
13. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
null
class
selector
conform
14. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
nil
assignment
designated
attributes
15. Property attribute that synthesizes accessors that are not thread safe
dispatch table
nonatomic
Product>Profile>Leaks>Profile
object
16. 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
distributed objects
structures
factory object
-
17. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
message expression
polymorphism
class method
Smalltalk
18. 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.
class object
unitary
Smalltalk
fields
19. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
interface
implementation
distributed objects
static typing
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.
Binary
synchronous message
pointers
formal protocol
21. Objective-C methods are called using ____ _____
abstract superclass
[receiver message];
square brackets
init
22. 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.
value
compile time
AppKit
Product>Profile>Leaks>Profile
23. 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.
mutex
zero
dynamic allocation
dynamic typing
24. This symbol denotes a method as being a class method
dynamic allocation
+
dereference (dereferencing)
null
25. Same as class object. (first way to say it.)
factory
doubles
square brackets
namespace
26. Symbol used to denote a placeholder in a format string
Interface Builder
%
printf( )
Cocoa
27. 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
outlet
receiver
class
28. Placing a ____ before a normal variable name gives it's address
reference counting
link time
ampersand (&)
runtime
29. 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.
encapsulation
implementation
id
C operators
30. A ____ _____ is where you forget to free up memory
dynamic typing
memory leak
AppKit
copy
31. A struct may contain multiple ____ consisting of different data types
selector
long long
weak
fields
32. 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
Encapsulation
long long
double
designated initializer
33. The most flexible C data type: ______
struct
binary
factory
Smalltalk
34. 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.
remote message
delegates
namespace
class
35. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
abstract superclass
Pointers
inheritance
36. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
reference counting
floating-point
interface
37. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
Signed
message
namespace
[receiver message];
38. 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.
Cocoa
class object
selector
class method
39. C-style strings always end with a ____ character
abstract class
null
category
Smalltalk
40. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
square brackets
pointer
inheritance hierarchy
41. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
null
pointer
remote object
42. To destroy an object set the variable that points to it to _____
pointers
structures
nil
zero
43. 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.
id
dereference (dereferencing)
attributes
outlet
44. Another name for a class that's defined solely so that other classes can inherit from it.
readonly
abstract superclass
message expression
dispatch table
45. 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.
copy
abstract class
protocol
+
46. 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).
distributed objects
cannot
message
implementation
47. An object in another application - one that's a potential receiver for a remote message.
remote object
memory leak
link time
encapsulation
48. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
9
readwrite
procedural programming language
runtime
49. a++; is an example of using a _____ operator
unitary
NSObject
procedural programming language
nil
50. Property attribute that synthesizes both a getter and setter for the property
nil
subclass
readwrite
%@