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 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.
pointers
delegates
reference counting
superclass
2. 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.
instance variable
message expression
static typing
init
3. Square bracket syntax for calling a method
Unsigned
selector
[receiver message];
Enumerations
4. 3 Common Float data types: float - _____ - CGFloat
Smalltalk
double
memory leak
instance variable
5. 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
+
designated initializer
Binary
6. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
category
message
square brackets
Enumerations
7. ____ provide a concise & elegant method for defining a discrete set of values
NSString
Enumerations
inheritance hierarchy
message expression
8. The root class in Objective-C
message expression
NSObject
class
developer intent
9. Property attribute that synthesizes accessors that are not thread safe
nonatomic
Pointers
%@
class method
10. A class is said to do this when it declares that it implements all the methods in the protocol.
object
inheritance
adopt
message expression
11. All objects are created on the _____
heap
class method
selector
init
12. In a home building analogy a ____ is the blueprint and the object is the house
class
selector
AppKit
memory leak
13. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
message expression
class
Protocols
Edit>Refactor>Convert to Objective-C ARC
14. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
attributes
ampersand (&)
dispatch table
runtime
15. An architecture that facilitates communication between objects in different address spaces.
dereference (dereferencing)
%
distributed objects
+
16. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
dynamic binding
inheritance hierarchy
interface
designated
17. Any method that can be used by an instance of a class rather than by the class object.
static typing
dereference (dereferencing)
instance method
struct
18. When creating a class header file you begin with the _____ keyword and close with the @end keyword
dangling pointer
@interface
cycles
binary
19. 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
method
-
designated initializer
superclass
20. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
protocol
factory object
C operators
Interface Builder
21. Initializer method traditionally begin with the _____ prefix
init
compile time
abstract class
nil
22. 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.
synchronous message
remote message
abstract class
Categories
23. 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.
formal protocol
NSString
instance method
nonatomic
24. Symbol used to denote a placeholder in a format string
readwrite
%
class object
delegate
25. _____ operators take 2 operands
conform
selector
Binary
dynamic typing
26. There are ____ fundamental building blocks in Objective-C
fields
%
-
9
27. a++; is an example of using a _____ operator
adopt
nonatomic
unitary
dispatch table
28. Property attribute that causes the setter to store a strong reference to the assigned value
Signed
asterisk (*)
strong
Encapsulation
29. _____ allow indirect access and modification of a variable's value.
abstract superclass
Pointers
dereference (dereferencing)
dynamic binding
30. This symbol denotes a method as being an instance method
delegates
NSObject
-
abstract class
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.
comma-separated
pointer
dynamic typing
dynamic allocation
32. 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
Signed
zero
asynchronous message
structures
33. Property attribute where the setter stores the assigned value but does not perform any memory management.
deprecated
assignment
assign
attributes
34. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
Signed
procedural programming language
struct
comma-separated
35. In object-oriented programming the object that is sent a message.
receiver
cannot
delegate
Unitary
36. 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.
@implementation
runtime
runtime
object
37. Instance variables are optional in iOS if ________ are used
instance variable
Smalltalk
properties
dangling pointer
38. A set of method definitions that is segregated from the rest of the class definition.
category
readonly
instance
chars
39. 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.
static typing
formal protocol
asynchronous message
pointer
40. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
cannot
memory leak
nil
static typing
41. The most flexible C data type: ______
asterisk (*)
dispatch table
subclass
struct
42. Any class that's one step below another class in the inheritance hierarchy.
Binary
subclass
procedural programming language
assign
43. A compiler feature that provides automated memory management
Pointers
static typing
instance
ARC
44. The first index in an array is valued at ____
copy
instance variable
asynchronous message
zero
45. Another name for a class that's defined solely so that other classes can inherit from it.
cannot
event
printf( )
abstract superclass
46. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
asterisk (*)
pointer
precedence
link time
47. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
struct
assign
nil
48. In object-oriented programming a procedure that can be executed by an object.
method
Cocoa
anonymous object
ampersand (&)
49. In a format string the place holder for an object is ______
object
%@
asterisk (*)
class method
50. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
conform
inheritance hierarchy
developer intent
precedence