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. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
class method
Smalltalk
message expression
2. The process of setting or reading the value at an address pointed to by a pointer
superset
conform
dereference (dereferencing)
interface
3. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
message
C operators
Unsigned
4. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
ampersand (&)
Unsigned
mutex
5. A struct may contain multiple ____ consisting of different data types
fields
value
implementation
mutex
6. Data types are divided into two main categories: integer and ______
superset
informal protocol
floating-point
copy
7. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
memory leak
+
inheritance
deprecated
8. 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.
heap
nil
Protocols
abstract class
9. Instance variables are optional in iOS if ________ are used
abstract superclass
unitary
properties
instance
10. ____ provide a concise & elegant method for defining a discrete set of values
runtime
Enumerations
protocol
instance
11. 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.
Edit>Refactor>Convert to Objective-C ARC
memory leak
namespace
asynchronous message
12. In Objective-C floats are more commonly used than ______
null
instance variable
receiver
doubles
13. 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
Binary
delegate
properties
14. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
precedence
conform
message expression
designated
15. An architecture that facilitates communication between objects in different address spaces.
[receiver message];
dynamic allocation
distributed objects
inheritance
16. Same as class object. (second way to say it.)
class method
Smalltalk
factory object
assignment
17. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
class object
abstract superclass
dispatch table
18. 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
Signed
readonly
%@
19. The first index in an array is valued at ____
mutex
designated initializer
zero
square brackets
20. In object-oriented programming a procedure that can be executed by an object.
method
class
Unsigned
instance
21. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
selector
asynchronous message
nil
22. Xcode sequence to examine an app for memory leaks or retain cycles
deprecated
Product>Profile>Leaks>Profile
assignment
NSString
23. An object of unknown class. Interface is published through protocol declaration.
C operators
designated
anonymous object
interface
24. Another name for a class that's defined solely so that other classes can inherit from it.
@interface
abstract superclass
@implementation
attributes
25. Finding the method implementation to invoke in response to the message
dynamic binding
delegate
asterisk (*)
C operators
26. Property attribute that synthesizes accessors that are not thread safe
abstract superclass
printf( )
nonatomic
assignment
27. 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.
Smalltalk
Interface Builder
synchronous message
instance
28. ______ data types are always zero or greate
Unsigned
+
adopt
@implementation
29. 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
method
attributes
remote object
30. a+b; is an example of using a _____ operator
strong
class object
binary
asynchronous message
31. ARC is susceptible to retain _____
cycles
factory object
formal protocol
polymorphism
32. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
outlet
encapsulation
interface
+
33. 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.
AppKit
link time
protocol
implementation
34. A method that can operate on class objects rather than instances of the class.
inheritance hierarchy
category
value
class method
35. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
nonatomic
class
designated initializer
abstract superclass
36. Objective-C's protocols are really about communicating _____ _______
namespace
developer intent
assign
+
37. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
dereference (dereferencing)
dangling pointer
nil
38. An object that acts on behalf of another object.
delegate
+
chars
asynchronous message
39. In a format string the place holder for an object is ______
%@
event
Enumerations
protocol
40. 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.
fields
dynamic allocation
Interface Builder
+
41. 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.
%
unitary
reference counting
readwrite
42. 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.
procedural programming language
Protocols
instance variable
Categories
43. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
instance
message
Smalltalk
doubles
44. Any class that's one step below another class in the inheritance hierarchy.
developer intent
struct
superclass
subclass
45. This symbol denotes a method as being an instance method
-
Pointers
outlet
struct
46. Objective-C binds methods and arguments at _____ instead of compile time
dynamic allocation
formal protocol
runtime
chars
47. A set of method definitions that is segregated from the rest of the class definition.
category
[receiver message];
nil
namespace
48. 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.
id
compile time
deprecated
message
49. In a home building analogy a ____ is the blueprint and the object is the house
runtime
framework
class
Unsigned
50. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
method
init
polymorphism
procedural programming language