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. Objective-C methods are called using ____ _____
Product>Profile>Leaks>Profile
square brackets
subclass
%
2. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
instance
properties
Binary
3. 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.
id
comma-separated
readonly
adopt
4. A variable that points to the memory address of another value
dereference (dereferencing)
static typing
pointer
zero
5. A struct may contain multiple ____ consisting of different data types
fields
assign
Unsigned
informal protocol
6. An object that acts on behalf of another object.
Binary
delegate
null
Edit>Refactor>Convert to Objective-C ARC
7. Placing a ____ before a normal variable name gives it's address
9
ampersand (&)
namespace
chars
8. A set of method definitions that is segregated from the rest of the class definition.
class
method
dispatch table
category
9. A message sent from one application to an object in another application.
dispatch table
remote message
encapsulation
%
10. Property attribute that synthesizes accessors that are not thread safe
nonatomic
nil
selector
Enumerations
11. ______ data types are always zero or greate
Unsigned
Categories
implementation
asynchronous message
12. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
instance
remote message
synchronous message
C operators
13. In object-oriented programming the object that is sent a message.
zero
distributed objects
receiver
polymorphism
14. 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).
Pointers
link time
runtime
implementation
15. Three main categories of more complicated data structures:_______ - arrays and structs
class
zero
pointers
dynamic allocation
16. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
deprecated
encapsulation
%
17. Property attribute where the setter stores the assigned value but does not perform any memory management.
class object
nil
assign
heap
18. 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.
nil
NSString
asynchronous message
assignment
19. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
heap
floating-point
compile time
deprecated
20. Instance variables are optional in iOS if ________ are used
properties
readonly
informal protocol
@implementation
21. 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.
asterisk (*)
@implementation
outlet
delegates
22. Symbol used to denote a placeholder in a format string
%
readwrite
abstract class
Pointers
23. _____ allow you to add new methods to existing classes
square brackets
init
instance method
Categories
24. 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.
dynamic allocation
strong
anonymous object
instance
25. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
attributes
procedures
runtime
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.
heap
encapsulation
-
ampersand (&)
27. _____ data types can be both positive and negative
superclass
abstract class
remote message
Signed
28. C-style strings are stored in an array of _____
class object
pointer
printf( )
chars
29. 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
class
assignment
ampersand (&)
NSString
30. Any method that can be used by an instance of a class rather than by the class object.
Edit>Refactor>Convert to Objective-C ARC
instance method
inheritance hierarchy
floating-point
31. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
-
instance
remote message
square brackets
32. _____ operators take 2 operands
dynamic binding
Binary
informal protocol
method
33. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
namespace
dispatch table
Categories
message
34. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
informal protocol
instance variable
dangling pointer
@implementation
35. Objective-C is a _____ of the C language
superset
Encapsulation
abstract superclass
instance method
36. a++; is an example of using a _____ operator
unitary
id
remote message
heap
37. 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.
mutex
NSString
remote object
namespace
38. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
instance method
long long
polymorphism
39. Property attribute that synthesizes both a getter and setter for the property
instance method
readwrite
asterisk (*)
mutex
40. Objective-C's protocols are really about communicating _____ _______
heap
static typing
superset
developer intent
41. 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
factory object
implementation
synchronous message
abstract class
42. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
inheritance hierarchy
binary
procedural programming language
receiver
43. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
method
floating-point
interface
44. An object id with a value of 0.
designated initializer
nil
distributed objects
fields
45. ARC is susceptible to retain _____
comma-separated
instance variable
assign
cycles
46. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
dynamic binding
heap
zero
47. An object in another application - one that's a potential receiver for a remote message.
remote object
asterisk (*)
NSString
+
48. ______ operators take a single operand
procedural programming language
[receiver message];
factory object
Unitary
49. The first index in an array is valued at ____
C operators
synchronous message
Smalltalk
zero
50. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
framework
event
inheritance