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. Placing a ____ before a normal variable name gives it's address
ampersand (&)
method
unitary
designated initializer
2. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
assignment
attributes
message expression
3. 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.
AppKit
Binary
instance
dynamic binding
4. The first index in an array is valued at ____
nonatomic
interface
Pointers
zero
5. 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.
dynamic allocation
NSString
[receiver message];
NSObject
6. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
assign
value
binary
static typing
7. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
procedural programming language
class
Signed
floating-point
8. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
procedural programming language
polymorphism
delegate
dynamic allocation
9. 3 Common Float data types: float - _____ - CGFloat
outlet
-
double
static typing
10. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
double
delegates
class
-
11. 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.
remote object
id
properties
message
12. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
Pointers
runtime
instance variable
13. a+b; is an example of using a _____ operator
memory leak
selector
Smalltalk
binary
14. A variable that points to the memory address of another value
Product>Profile>Leaks>Profile
assign
-
pointer
15. An object id with a value of 0.
properties
nil
message
class object
16. ______ operators take a single operand
dynamic binding
Unitary
mutex
inheritance hierarchy
17. 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
Smalltalk
+
designated initializer
NSObject
18. Instance variables are optional in iOS if ________ are used
designated
properties
polymorphism
Enumerations
19. To destroy an object set the variable that points to it to _____
asynchronous message
nil
copy
inheritance hierarchy
20. A tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
static typing
assignment
Interface Builder
namespace
21. C-style strings always end with a ____ character
null
superset
weak
method
22. 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.
reference counting
object
cycles
instance variable
23. Square bracket syntax for calling a method
asynchronous message
[receiver message];
chars
Unsigned
24. A struct may contain multiple ____ consisting of different data types
struct
procedural programming language
fields
pointers
25. An object of unknown class. Interface is published through protocol declaration.
informal protocol
comma-separated
anonymous object
dereference (dereferencing)
26. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Product>Profile>Leaks>Profile
abstract superclass
deprecated
cannot
27. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
fields
dispatch table
conform
message
28. Three main categories of more complicated data structures:_______ - arrays and structs
deprecated
procedural programming language
pointers
inheritance
29. Property attribute that synthesizes accessors that are not thread safe
NSObject
nonatomic
delegate
Enumerations
30. This symbol denotes a method as being an instance method
assignment
Categories
-
selector
31. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
class object
Unitary
protocol
32. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
attributes
event
inheritance hierarchy
designated initializer
33. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
cycles
selector
Signed
value
34. Same as class object. (second way to say it.)
[receiver message];
heap
class
factory object
35. 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
instance variable
C operators
cannot
36. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
remote message
reference counting
receiver
Protocols
37. a++; is an example of using a _____ operator
[receiver message];
reference counting
unitary
Smalltalk
38. Initializer method traditionally begin with the _____ prefix
Protocols
@interface
memory leak
init
39. 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.
Interface Builder
NSObject
selector
weak
40. ARC is susceptible to retain _____
cycles
AppKit
-
abstract superclass
41. An object in another application - one that's a potential receiver for a remote message.
compile time
abstract class
remote object
runtime
42. 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.
Categories
pointers
namespace
inheritance hierarchy
43. The root class in Objective-C
NSObject
id
C operators
Categories
44. _____ 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'.
superset
memory leak
Encapsulation
receiver
45. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
message expression
instance method
[receiver message];
instance
46. 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.
subclass
Interface Builder
selector
encapsulation
47. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
implementation
nil
weak
-
48. 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.
informal protocol
instance variable
[receiver message];
nil
49. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
Encapsulation
Signed
double
50. 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
conform
interface
dereference (dereferencing)
+