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. 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.
asynchronous message
-
id
event
2. The process of setting or reading the value at an address pointed to by a pointer
factory object
dereference (dereferencing)
assignment
inheritance
3. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
protocol
id
NSObject
compile time
4. In a format string the place holder for an object is ______
object
%@
superset
null
5. An architecture that facilitates communication between objects in different address spaces.
comma-separated
outlet
%@
distributed objects
6. 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.
remote object
Product>Profile>Leaks>Profile
ARC
reference counting
7. Objective-C objects should use strong or weak ______
attributes
structures
floating-point
runtime
8. Property attribute that causes the setter to store a copy of the assigned value
readonly
%@
copy
floating-point
9. A message sent from one application to an object in another application.
remote message
@interface
instance
value
10. A ____ ____ is a situation where you free memory and then accidentally continue to use it
remote message
doubles
dangling pointer
pointer
11. In object-oriented programming the object that is sent a message.
receiver
framework
weak
compile time
12. 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.
namespace
formal protocol
cannot
abstract superclass
13. _____ 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'.
long long
dangling pointer
value
Encapsulation
14. Objective-C is a _____ of the C language
ARC
doubles
unitary
superset
15. When creating a class header file you begin with the _____ keyword and close with the @end keyword
structures
asterisk (*)
dynamic typing
@interface
16. ARC is susceptible to retain _____
memory leak
designated initializer
init
cycles
17. _____ data types can be both positive and negative
remote object
Signed
selector
delegates
18. An object in another application - one that's a potential receiver for a remote message.
remote object
attributes
Binary
Protocols
19. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
weak
Protocols
protocol
dynamic binding
20. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
Binary
procedural programming language
long long
21. The first index in an array is valued at ____
zero
dynamic binding
@interface
NSObject
22. ____ provide a concise & elegant method for defining a discrete set of values
inheritance
Enumerations
runtime
null
23. 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
static typing
@implementation
structures
polymorphism
24. The root class in Objective-C
message expression
doubles
NSObject
Cocoa
25. a++; is an example of using a _____ operator
remote object
unitary
Pointers
pointers
26. 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.
subclass
dynamic typing
framework
Interface Builder
27. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
long long
class object
outlet
synchronous message
28. The most flexible C data type: ______
link time
struct
@interface
ampersand (&)
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.
polymorphism
Encapsulation
id
Protocols
30. Same as class object. (first way to say it.)
@interface
factory
assign
copy
31. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
Pointers
developer intent
long long
class
32. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
mutex
nil
procedures
33. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
instance
factory
procedural programming language
namespace
34. Instance variables are optional in iOS if ________ are used
dereference (dereferencing)
floating-point
properties
Interface Builder
35. 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).
implementation
instance variable
framework
printf( )
36. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
instance method
link time
zero
dangling pointer
37. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
instance
unitary
class
dynamic binding
38. A struct may contain multiple ____ consisting of different data types
dynamic allocation
strong
Cocoa
fields
39. 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
NSString
dereference (dereferencing)
instance method
9
40. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
method
dynamic allocation
@implementation
41. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
struct
remote message
unitary
42. Property attribute that causes the setter to store a strong reference to the assigned value
namespace
attributes
strong
instance
43. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
static typing
binary
framework
inheritance
44. This symbol denotes a method as being an instance method
pointers
attributes
-
polymorphism
45. 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.
Edit>Refactor>Convert to Objective-C ARC
abstract superclass
inheritance hierarchy
selector
46. In Objective-C floats are more commonly used than ______
Unitary
class object
doubles
Pointers
47. 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.
framework
Pointers
encapsulation
class object
48. Objective-C methods are called using ____ _____
square brackets
Categories
developer intent
structures
49. Property attribute that synthesizes only a getter for the property
readonly
adopt
abstract superclass
precedence
50. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
remote message
precedence
asynchronous message
runtime