SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. Square bracket syntax for calling a method
inheritance
[receiver message];
designated
cycles
2. A struct may contain multiple ____ consisting of different data types
floating-point
dangling pointer
precedence
fields
3. A method that can operate on class objects rather than instances of the class.
class method
Smalltalk
%
interface
4. Placing a ____ before a normal variable name gives it's address
unitary
ampersand (&)
asterisk (*)
superset
5. When creating a class header file you begin with the _____ keyword and close with the @end keyword
mutex
dispatch table
null
@interface
6. Objective-C binds methods and arguments at _____ instead of compile time
pointers
interface
runtime
anonymous object
7. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
encapsulation
assignment
dereference (dereferencing)
cycles
8. In the Objective-C language the declaration of a group of methods not associated with any particular class.
fields
binary
NSObject
protocol
9. Any method that can be used by an instance of a class rather than by the class object.
object
runtime
instance method
Interface Builder
10. The root class in Objective-C
value
Interface Builder
nil
NSObject
11. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
Binary
nil
instance
12. Property attribute that synthesizes only a getter for the property
ampersand (&)
readonly
instance variable
zero
13. Property attribute that synthesizes both a getter and setter for the property
developer intent
Encapsulation
readwrite
factory
14. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
static typing
Protocols
nil
15. In Objective-C floats are more commonly used than ______
doubles
method
nil
instance variable
16. 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.
static typing
+
ARC
object
17. The process of setting or reading the value at an address pointed to by a pointer
%@
properties
dereference (dereferencing)
square brackets
18. A ____ ____ is a situation where you free memory and then accidentally continue to use it
designated initializer
dangling pointer
class
namespace
19. A variable that points to the memory address of another value
polymorphism
double
pointer
dynamic binding
20. Property attribute that synthesizes accessors that are not thread safe
Edit>Refactor>Convert to Objective-C ARC
nonatomic
factory object
floating-point
21. 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.
class object
fields
+
outlet
22. Objective-C is a _____ of the C language
heap
superset
null
class method
23. This symbol denotes a method as being a class method
Encapsulation
+
synchronous message
static typing
24. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
comma-separated
procedures
deprecated
init
25. 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).
message
anonymous object
double
implementation
26. 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.
message
ampersand (&)
dereference (dereferencing)
namespace
27. Initializer method traditionally begin with the _____ prefix
class object
formal protocol
copy
init
28. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Cocoa
event
message
double
29. 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.
dynamic typing
selector
adopt
heap
30. Property attribute that causes the setter to store a copy of the assigned value
[receiver message];
printf( )
copy
strong
31. _____ operators take 2 operands
double
comma-separated
assignment
Binary
32. 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
compile time
heap
precedence
33. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
formal protocol
designated initializer
link time
struct
34. In a home building analogy a ____ is the blueprint and the object is the house
framework
procedures
zero
class
35. In a format string the place holder for an object is ______
id
Binary
strong
%@
36. A set of method definitions that is segregated from the rest of the class definition.
pointer
category
-
designated
37. 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
designated initializer
NSString
structures
square brackets
38. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
copy
message
pointers
Signed
39. a+b; is an example of using a _____ operator
instance variable
%@
binary
adopt
40. Symbol used to denote a placeholder in a format string
inheritance hierarchy
formal protocol
properties
%
41. To destroy an object set the variable that points to it to _____
selector
Enumerations
procedures
nil
42. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
method
delegates
mutex
43. 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.
designated
instance
assignment
mutex
44. Same as class object. (second way to say it.)
%@
factory object
delegate
asynchronous message
45. 3 Common Float data types: float - _____ - CGFloat
developer intent
asterisk (*)
double
inheritance
46. 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.
precedence
assign
instance variable
Pointers
47. _____ data types can be both positive and negative
Signed
asterisk (*)
protocol
null
48. _____ allow you to add new methods to existing classes
doubles
fields
Unsigned
Categories
49. 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.
Unsigned
dangling pointer
id
implementation
50. Same as class object. (first way to say it.)
runtime
Unitary
factory
dispatch table