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 class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
mutex
superclass
binary
unitary
2. C-style strings always end with a ____ character
inheritance hierarchy
null
binary
Pointers
3. A class is said to do this when it declares that it implements all the methods in the protocol.
Categories
protocol
adopt
dynamic allocation
4. 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
copy
factory object
polymorphism
5. Placing a ____ before a normal variable name gives it's address
ampersand (&)
id
structures
outlet
6. ______ data types are always zero or greate
category
dispatch table
Unsigned
heap
7. _____ data types can be both positive and negative
mutex
selector
encapsulation
Signed
8. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
chars
designated
ampersand (&)
object
9. An architecture that facilitates communication between objects in different address spaces.
dynamic typing
Unsigned
remote object
distributed objects
10. Finding the method implementation to invoke in response to the message
dynamic binding
[receiver message];
Interface Builder
heap
11. There are ____ fundamental building blocks in Objective-C
properties
heap
9
instance variable
12. Same as class object. (first way to say it.)
message
factory
informal protocol
Unitary
13. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
null
designated
double
Signed
14. A ____ _____ is where you forget to free up memory
Smalltalk
assignment
memory leak
doubles
15. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
Cocoa
weak
informal protocol
[receiver message];
16. Property attribute where the setter stores the assigned value but does not perform any memory management.
object
procedures
C operators
assign
17. 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
synchronous message
pointer
ampersand (&)
copy
18. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
@interface
superset
runtime
Protocols
19. 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).
printf( )
static typing
assign
implementation
20. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
fields
readwrite
inheritance hierarchy
21. A struct may contain multiple ____ consisting of different data types
fields
Signed
inheritance hierarchy
superclass
22. 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
binary
conform
class object
dispatch table
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
structures
AppKit
assignment
instance
24. 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.
cannot
id
ampersand (&)
procedural programming language
25. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
instance method
Encapsulation
-
long long
26. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Signed
properties
method
cannot
27. 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.
runtime
assign
informal protocol
reference counting
28. A method that can operate on class objects rather than instances of the class.
%@
precedence
Protocols
class method
29. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
runtime
delegates
NSObject
30. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
delegate
developer intent
interface
abstract superclass
31. The first index in an array is valued at ____
zero
%@
protocol
procedural programming language
32. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
Smalltalk
double
dispatch table
33. An object in another application - one that's a potential receiver for a remote message.
receiver
compile time
remote object
ARC
34. 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
nonatomic
strong
Unitary
35. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
informal protocol
copy
asterisk (*)
designated initializer
36. 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.
informal protocol
class object
dereference (dereferencing)
struct
37. 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.
selector
readwrite
asterisk (*)
instance variable
38. Any class that's one step below another class in the inheritance hierarchy.
9
pointers
subclass
mutex
39. A message sent from one application to an object in another application.
ARC
developer intent
informal protocol
remote message
40. Objective-C's protocols are really about communicating _____ _______
procedures
chars
polymorphism
developer intent
41. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
binary
message
C operators
instance
42. Objective-C methods are called using ____ _____
class object
square brackets
synchronous message
pointers
43. Symbol used to denote a placeholder in a format string
pointers
%
interface
strong
44. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
superclass
polymorphism
@implementation
Interface Builder
45. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
readonly
anonymous object
mutex
static typing
46. In a home building analogy a ____ is the blueprint and the object is the house
9
attributes
ampersand (&)
class
47. 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.
message
doubles
unitary
instance variable
48. 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.
attributes
asynchronous message
instance variable
doubles
49. C-style strings are stored in an array of _____
chars
nil
pointer
instance method
50. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
distributed objects
selector
copy
assignment