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 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.
abstract class
AppKit
static typing
encapsulation
2. Property attribute where the setter stores the assigned value but does not perform any memory management.
message
runtime
@interface
assign
3. 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.
abstract class
nonatomic
asynchronous message
dereference (dereferencing)
4. 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.
unitary
instance
factory object
runtime
5. 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).
doubles
instance variable
@interface
message expression
6. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
floating-point
instance method
Categories
7. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
designated
anonymous object
weak
unitary
8. This symbol denotes a method as being a class method
+
copy
polymorphism
procedural programming language
9. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
Pointers
procedural programming language
abstract class
Categories
10. 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.
superset
conform
structures
link time
11. Three main categories of more complicated data structures:_______ - arrays and structs
comma-separated
memory leak
pointers
unitary
12. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
comma-separated
interface
class object
13. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
abstract superclass
Binary
comma-separated
dynamic allocation
14. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Encapsulation
delegate
Protocols
framework
15. Objective-C objects should use strong or weak ______
comma-separated
asynchronous message
[receiver message];
attributes
16. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
procedures
Protocols
C operators
structures
17. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
framework
Product>Profile>Leaks>Profile
factory object
18. _____ 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'.
runtime
NSString
Encapsulation
mutex
19. There are ____ fundamental building blocks in Objective-C
weak
init
instance variable
9
20. _____ operators take 2 operands
selector
informal protocol
@implementation
Binary
21. Any class that's one step below another class in the inheritance hierarchy.
Encapsulation
subclass
procedures
nil
22. Property attribute that causes the setter to store a copy of the assigned value
fields
deprecated
namespace
copy
23. An architecture that facilitates communication between objects in different address spaces.
Edit>Refactor>Convert to Objective-C ARC
binary
distributed objects
Smalltalk
24. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
runtime
assignment
dereference (dereferencing)
remote object
25. The _____ function can be used to print a message to the console
printf( )
dynamic allocation
unitary
NSObject
26. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
fields
interface
superset
deprecated
27. 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
interface
floating-point
delegates
28. All objects are created on the _____
heap
structures
Interface Builder
class method
29. 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.
namespace
deprecated
message expression
null
30. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
strong
Unitary
weak
31. 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.
remote message
dynamic allocation
abstract class
@interface
32. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
long long
Binary
polymorphism
value
33. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Protocols
synchronous message
inheritance hierarchy
superclass
34. Discovering the class of an object at runtime rather than at compile time.
floating-point
dynamic typing
structures
value
35. Xcode sequence to examine an app for memory leaks or retain cycles
runtime
Product>Profile>Leaks>Profile
Pointers
polymorphism
36. Symbol used to denote a placeholder in a format string
inheritance hierarchy
mutex
%
instance
37. 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.
double
cannot
compile time
runtime
38. A variable that points to the memory address of another value
Pointers
event
inheritance hierarchy
pointer
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
properties
floating-point
chars
40. ARC is susceptible to retain _____
precedence
delegate
encapsulation
cycles
41. Property attribute that synthesizes both a getter and setter for the property
readwrite
fields
polymorphism
Interface Builder
42. Objective-C binds methods and arguments at _____ instead of compile time
adopt
formal protocol
runtime
9
43. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
%@
dynamic binding
@implementation
heap
44. C-style strings are stored in an array of _____
conform
strong
chars
comma-separated
45. _____ allow indirect access and modification of a variable's value.
Pointers
printf( )
informal protocol
procedural programming language
46. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
precedence
cycles
long long
structures
47. In Objective-C floats are more commonly used than ______
abstract class
Interface Builder
class method
doubles
48. Objective-C is a _____ of the C language
id
Unitary
superset
inheritance
49. Any method that can be used by an instance of a class rather than by the class object.
instance method
mutex
nil
NSString
50. Same as class object. (second way to say it.)
zero
nonatomic
event
factory object