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 way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
class object
unitary
value
2. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
synchronous message
framework
class object
asterisk (*)
3. a+b; is an example of using a _____ operator
factory object
binary
framework
chars
4. All objects are created on the _____
class object
instance
heap
nil
5. An object in another application - one that's a potential receiver for a remote message.
id
Signed
remote object
%@
6. 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.
fields
long long
weak
selector
7. Property attribute that causes the setter to store a copy of the assigned value
copy
Binary
selector
dynamic typing
8. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
NSString
struct
deprecated
assignment
9. _____ 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
static typing
floating-point
superset
10. 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.
receiver
mutex
protocol
namespace
11. An object of unknown class. Interface is published through protocol declaration.
object
Enumerations
delegate
anonymous object
12. The most flexible C data type: ______
+
struct
binary
reference counting
13. 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.
superclass
printf( )
encapsulation
@implementation
14. In a home building analogy a ____ is the blueprint and the object is the house
cannot
static typing
superclass
class
15. 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.
link time
copy
struct
[receiver message];
16. Property attribute that synthesizes both a getter and setter for the property
Pointers
id
instance
readwrite
17. In the Objective-C language the declaration of a group of methods not associated with any particular class.
class
cycles
protocol
Protocols
18. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Binary
Product>Profile>Leaks>Profile
class object
procedures
19. 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
designated
Protocols
%
conform
20. The root class in Objective-C
nonatomic
procedural programming language
%
NSObject
21. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
weak
formal protocol
Enumerations
instance
22. 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.
framework
namespace
formal protocol
readwrite
23. 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.
compile time
interface
instance variable
Categories
24. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
asynchronous message
Encapsulation
NSString
25. Square bracket syntax for calling a method
cannot
[receiver message];
developer intent
copy
26. This symbol denotes a method as being an instance method
-
inheritance
dynamic binding
class
27. An object id with a value of 0.
superclass
@implementation
nil
heap
28. ARC is susceptible to retain _____
cycles
polymorphism
printf( )
receiver
29. 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.
Enumerations
asynchronous message
inheritance
class
30. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Pointers
cycles
chars
event
31. C-style strings always end with a ____ character
formal protocol
printf( )
null
dereference (dereferencing)
32. _____ operators take 2 operands
id
instance method
Binary
dangling pointer
33. Objective-C's protocols are really about communicating _____ _______
assign
developer intent
inheritance
heap
34. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
object
interface
cannot
strong
35. _____ allow indirect access and modification of a variable's value.
deprecated
heap
Pointers
precedence
36. _____ data types can be both positive and negative
Signed
namespace
Enumerations
class
37. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
category
Binary
asynchronous message
38. There are ____ fundamental building blocks in Objective-C
distributed objects
9
Unsigned
deprecated
39. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
abstract superclass
delegate
selector
40. A protocol declared as a category usually as a category of the NSObject class.
precedence
instance
informal protocol
delegate
41. Property attribute that causes the setter to store a strong reference to the assigned value
conform
dynamic allocation
@implementation
strong
42. 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
[receiver message];
Binary
zero
43. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
procedural programming language
designated
Binary
framework
44. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
Categories
method
abstract superclass
weak
45. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
Product>Profile>Leaks>Profile
9
%
message
46. The _____ function can be used to print a message to the console
printf( )
runtime
%
inheritance hierarchy
47. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
zero
object
static typing
floating-point
48. The process of setting or reading the value at an address pointed to by a pointer
weak
long long
inheritance hierarchy
dereference (dereferencing)
49. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
inheritance hierarchy
category
assignment
strong
50. Objective-C methods are called using ____ _____
null
square brackets
NSString
heap