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. Finding the method implementation to invoke in response to the message
dynamic binding
[receiver message];
Signed
binary
2. 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
factory object
receiver
class
3. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
protocol
message
instance variable
4. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
abstract class
value
Encapsulation
C operators
5. 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.
runtime
object
inheritance hierarchy
NSString
6. In object-oriented programming the object that is sent a message.
+
informal protocol
receiver
pointers
7. 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).
assignment
zero
Edit>Refactor>Convert to Objective-C ARC
implementation
8. Property attribute where the setter stores the assigned value but does not perform any memory management.
reference counting
assign
runtime
chars
9. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
class
message
zero
factory object
10. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
nonatomic
zero
delegates
Cocoa
11. _____ 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'.
Encapsulation
category
factory object
value
12. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
null
dereference (dereferencing)
message expression
13. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
subclass
struct
instance
14. 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
superset
Signed
square brackets
designated initializer
15. Xcode sequence to convert non-ARC apps to ARC
delegates
attributes
object
Edit>Refactor>Convert to Objective-C ARC
16. _____ data types can be both positive and negative
Signed
struct
remote object
Product>Profile>Leaks>Profile
17. A variable that points to the memory address of another value
pointer
framework
NSString
compile time
18. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
Unsigned
precedence
value
19. ______ data types are always zero or greate
procedures
Unsigned
method
mutex
20. Objective-C's protocols are really about communicating _____ _______
Signed
designated
developer intent
%@
21. 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.
dereference (dereferencing)
selector
precedence
static typing
22. Property attribute that causes the setter to store a copy of the assigned value
copy
remote object
nil
Smalltalk
23. Property attribute that synthesizes only a getter for the property
readonly
[receiver message];
init
Signed
24. 3 Common Float data types: float - _____ - CGFloat
double
+
Protocols
remote object
25. An object of unknown class. Interface is published through protocol declaration.
Pointers
abstract superclass
anonymous object
inheritance
26. Objective-C binds methods and arguments at _____ instead of compile time
instance
dangling pointer
selector
runtime
27. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
formal protocol
static typing
dynamic binding
strong
28. An object that acts on behalf of another object.
unitary
NSObject
delegate
procedural programming language
29. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
pointer
dynamic allocation
long long
30. a+b; is an example of using a _____ operator
chars
class
binary
adopt
31. A method that can operate on class objects rather than instances of the class.
fields
link time
class method
asterisk (*)
32. A compiler feature that provides automated memory management
remote object
dynamic allocation
link time
ARC
33. The most flexible C data type: ______
pointer
Pointers
struct
fields
34. 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.
synchronous message
dangling pointer
Encapsulation
Interface Builder
35. Another name for a class that's defined solely so that other classes can inherit from it.
doubles
designated initializer
inheritance hierarchy
abstract superclass
36. Objective-C objects should use strong or weak ______
C operators
superclass
attributes
fields
37. _____ allow you to add new methods to existing classes
Categories
instance
class object
nil
38. In Objective-C floats are more commonly used than ______
doubles
pointers
readonly
asterisk (*)
39. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
asterisk (*)
struct
receiver
weak
40. Symbol used to denote a placeholder in a format string
ARC
zero
init
%
41. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
Enumerations
inheritance
abstract superclass
class method
42. A struct may contain multiple ____ consisting of different data types
fields
receiver
Binary
pointers
43. Same as class object. (first way to say it.)
factory
asynchronous message
C operators
strong
44. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
null
delegates
copy
value
45. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
receiver
protocol
assignment
46. 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.
designated
Unsigned
remote object
class object
47. The root class in Objective-C
NSObject
factory object
procedural programming language
Unsigned
48. Square bracket syntax for calling a method
[receiver message];
nonatomic
designated initializer
category
49. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
designated
class object
selector
assignment
50. 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).
Unitary
message expression
asterisk (*)
runtime