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. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
category
C operators
selector
factory
2. C-style strings are stored in an array of _____
pointer
chars
interface
unitary
3. 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
class method
structures
synchronous message
assign
4. 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
value
procedures
structures
superset
5. A ____ ____ is a situation where you free memory and then accidentally continue to use it
protocol
dangling pointer
conform
receiver
6. 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.
Unsigned
method
encapsulation
square brackets
7. Three main categories of more complicated data structures:_______ - arrays and structs
factory object
heap
pointers
abstract class
8. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
Protocols
AppKit
dynamic allocation
ARC
9. Symbol used to denote a placeholder in a format string
designated
instance
%
protocol
10. 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.
abstract class
designated
synchronous message
receiver
11. An architecture that facilitates communication between objects in different address spaces.
message expression
pointer
factory object
distributed objects
12. A ____ _____ is where you forget to free up memory
factory
memory leak
Categories
abstract class
13. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
mutex
chars
factory object
14. The first index in an array is valued at ____
class method
outlet
zero
formal protocol
15. Property attribute that synthesizes accessors that are not thread safe
@interface
nonatomic
9
polymorphism
16. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
null
Cocoa
anonymous object
readwrite
17. In the Objective-C language the declaration of a group of methods not associated with any particular class.
struct
chars
protocol
event
18. 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.
outlet
dynamic allocation
[receiver message];
conform
19. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
@implementation
instance
9
dangling pointer
20. In object-oriented programming the object that is sent a message.
class
ARC
receiver
instance method
21. In object-oriented programming a procedure that can be executed by an object.
asynchronous message
id
nil
method
22. _____ allow indirect access and modification of a variable's value.
assign
synchronous message
Pointers
factory object
23. 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.
runtime
doubles
selector
class object
24. Discovering the class of an object at runtime rather than at compile time.
readonly
dynamic typing
deprecated
ampersand (&)
25. A class is said to do this when it declares that it implements all the methods in the protocol.
dispatch table
runtime
interface
adopt
26. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
strong
object
@interface
mutex
27. a++; is an example of using a _____ operator
outlet
unitary
asynchronous message
distributed objects
28. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
floating-point
doubles
binary
weak
29. 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.
assign
instance
deprecated
long long
30. All objects are created on the _____
heap
anonymous object
Binary
long long
31. 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.
dangling pointer
Smalltalk
chars
selector
32. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
procedures
Smalltalk
outlet
cycles
33. 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.
%
object
reference counting
remote object
34. An object in another application - one that's a potential receiver for a remote message.
precedence
remote object
Binary
reference counting
35. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
@interface
dispatch table
class
asterisk (*)
36. ____ provide a concise & elegant method for defining a discrete set of values
class
9
cannot
Enumerations
37. Square bracket syntax for calling a method
dangling pointer
class method
Binary
[receiver message];
38. In Objective-C floats are more commonly used than ______
cycles
procedural programming language
doubles
weak
39. _____ data types can be both positive and negative
message expression
Signed
Binary
NSString
40. Another name for a class that's defined solely so that other classes can inherit from it.
NSString
developer intent
abstract superclass
designated
41. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
compile time
long long
category
assignment
42. Xcode sequence to convert non-ARC apps to ARC
delegates
dynamic typing
null
Edit>Refactor>Convert to Objective-C ARC
43. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
memory leak
cannot
mutex
message
44. Placing a ____ before a normal variable name gives it's address
NSString
init
ampersand (&)
abstract class
45. Property attribute that causes the setter to store a strong reference to the assigned value
procedural programming language
developer intent
strong
adopt
46. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
selector
asynchronous message
delegates
Binary
47. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
doubles
method
distributed objects
48. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
class
outlet
null
interface
49. An object id with a value of 0.
9
method
informal protocol
nil
50. 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.
init
namespace
cycles
struct