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. C-style strings are stored in an array of _____
-
structures
chars
Encapsulation
2. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Encapsulation
superclass
+
ARC
3. 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).
message expression
printf( )
null
Enumerations
4. An object of unknown class. Interface is published through protocol declaration.
Categories
double
fields
anonymous object
5. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
Unsigned
runtime
dispatch table
6. An architecture that facilitates communication between objects in different address spaces.
assignment
instance
runtime
distributed objects
7. In a format string the place holder for an object is ______
instance
developer intent
delegates
%@
8. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
init
asterisk (*)
receiver
instance variable
9. A method that can operate on class objects rather than instances of the class.
class method
zero
protocol
assignment
10. 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
superclass
remote message
class
designated initializer
11. All objects are created on the _____
abstract class
null
heap
link time
12. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
synchronous message
@interface
dynamic binding
13. ______ data types are always zero or greate
Interface Builder
reference counting
dangling pointer
Unsigned
14. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
unitary
static typing
pointers
superset
15. When creating a class header file you begin with the _____ keyword and close with the @end keyword
inheritance hierarchy
@interface
runtime
Categories
16. ______ operators take a single operand
Interface Builder
polymorphism
Unitary
class
17. A ____ _____ is where you forget to free up memory
memory leak
procedural programming language
dynamic typing
null
18. In object-oriented programming a procedure that can be executed by an object.
square brackets
method
link time
designated initializer
19. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
designated initializer
runtime
fields
weak
20. A message sent from one application to an object in another application.
dynamic allocation
class method
Pointers
remote message
21. A struct may contain multiple ____ consisting of different data types
framework
[receiver message];
link time
fields
22. 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
Encapsulation
NSString
assign
long long
23. 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.
encapsulation
instance variable
distributed objects
class object
24. Objective-C binds methods and arguments at _____ instead of compile time
unitary
runtime
distributed objects
superclass
25. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
factory object
procedures
cycles
abstract superclass
26. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
instance
Signed
doubles
@implementation
27. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
attributes
precedence
Product>Profile>Leaks>Profile
abstract class
28. The root class in Objective-C
binary
factory object
NSObject
cannot
29. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
readonly
Categories
Signed
30. Initializer method traditionally begin with the _____ prefix
abstract class
assignment
deprecated
init
31. Objective-C's protocols are really about communicating _____ _______
developer intent
adopt
Categories
superset
32. Three main categories of more complicated data structures:_______ - arrays and structs
Product>Profile>Leaks>Profile
pointers
assignment
printf( )
33. 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
printf( )
conform
receiver
+
34. Property attribute that causes the setter to store a strong reference to the assigned value
class
readonly
adopt
strong
35. In object-oriented programming the object that is sent a message.
id
Product>Profile>Leaks>Profile
Unitary
receiver
36. a++; is an example of using a _____ operator
unitary
superset
mutex
Binary
37. Property attribute that causes the setter to store a copy of the assigned value
ampersand (&)
synchronous message
copy
deprecated
38. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
event
designated
dynamic binding
precedence
39. In Objective-C floats are more commonly used than ______
deprecated
+
formal protocol
doubles
40. A variable that points to the memory address of another value
encapsulation
procedures
distributed objects
pointer
41. 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.
NSString
runtime
namespace
encapsulation
42. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
designated initializer
interface
asynchronous message
factory object
43. _____ operators take 2 operands
developer intent
framework
Binary
weak
44. ____ provide a concise & elegant method for defining a discrete set of values
object
reference counting
Enumerations
method
45. 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
cannot
floating-point
framework
46. Finding the method implementation to invoke in response to the message
deprecated
weak
dynamic binding
comma-separated
47. Any method that can be used by an instance of a class rather than by the class object.
9
Product>Profile>Leaks>Profile
instance method
selector
48. 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
copy
weak
[receiver message];
49. _____ data types can be both positive and negative
Signed
formal protocol
receiver
instance
50. The first index in an array is valued at ____
zero
method
Binary
nil