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. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
properties
Enumerations
factory object
C operators
2. There are ____ fundamental building blocks in Objective-C
+
attributes
9
struct
3. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
factory object
method
designated
delegates
4. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
receiver
event
asterisk (*)
unitary
5. ____ provide a concise & elegant method for defining a discrete set of values
binary
Enumerations
anonymous object
structures
6. A method that can operate on class objects rather than instances of the class.
nil
remote message
class method
precedence
7. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
assign
class
reference counting
abstract class
8. When creating a class header file you begin with the _____ keyword and close with the @end keyword
distributed objects
assign
pointers
@interface
9. In Objective-C floats are more commonly used than ______
doubles
[receiver message];
%@
procedural programming language
10. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Unsigned
procedures
@interface
floating-point
11. Objective-C's protocols are really about communicating _____ _______
precedence
instance variable
weak
developer intent
12. _____ operators take 2 operands
designated initializer
Encapsulation
Binary
procedures
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
copy
developer intent
designated initializer
Smalltalk
14. Data types are divided into two main categories: integer and ______
floating-point
properties
remote object
nil
15. An object id with a value of 0.
nil
procedural programming language
dynamic allocation
heap
16. 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.
instance method
class object
class
framework
17. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
deprecated
framework
struct
Unsigned
18. Objective-C is a _____ of the C language
receiver
instance
abstract class
superset
19. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
AppKit
designated initializer
Protocols
long long
20. 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 superclass
method
inheritance
id
21. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
Binary
mutex
superclass
22. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
receiver
designated initializer
long long
precedence
23. C-style strings are stored in an array of _____
abstract class
@interface
chars
runtime
24. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
remote object
reference counting
cannot
polymorphism
25. 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
@implementation
protocol
26. 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.
precedence
link time
factory
encapsulation
27. Objective-C objects should use strong or weak ______
attributes
method
9
synchronous message
28. Any method that can be used by an instance of a class rather than by the class object.
instance method
asterisk (*)
readonly
comma-separated
29. Symbol used to denote a placeholder in a format string
object
asynchronous message
%
zero
30. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
NSObject
weak
attributes
Binary
31. In object-oriented programming a procedure that can be executed by an object.
abstract class
outlet
Interface Builder
method
32. _____ allow you to add new methods to existing classes
C operators
deprecated
informal protocol
Categories
33. Square bracket syntax for calling a method
init
[receiver message];
deprecated
dispatch table
34. Discovering the class of an object at runtime rather than at compile time.
Protocols
message
Smalltalk
dynamic typing
35. 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
zero
subclass
@implementation
structures
36. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
[receiver message];
receiver
interface
37. All objects are created on the _____
heap
designated initializer
instance variable
class method
38. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
instance variable
instance method
dereference (dereferencing)
polymorphism
39. Objective-C methods are called using ____ _____
square brackets
Categories
instance variable
inheritance
40. Placing a ____ before a normal variable name gives it's address
ampersand (&)
distributed objects
Pointers
dynamic typing
41. 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.
Encapsulation
reference counting
factory
printf( )
42. An object of unknown class. Interface is published through protocol declaration.
anonymous object
long long
NSObject
instance
43. 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).
Protocols
implementation
deprecated
dynamic typing
44. _____ 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
printf( )
binary
NSObject
45. To destroy an object set the variable that points to it to _____
Encapsulation
nil
message
structures
46. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
struct
static typing
null
developer intent
47. 3 Common Float data types: float - _____ - CGFloat
Signed
double
pointers
readonly
48. 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
formal protocol
message
class object
49. Property attribute that causes the setter to store a strong reference to the assigned value
static typing
+
attributes
strong
50. Objective-C binds methods and arguments at _____ instead of compile time
polymorphism
mutex
chars
runtime