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. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
class
readwrite
remote message
2. 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.
+
procedural programming language
%
link time
3. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
-
method
interface
id
4. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
delegates
[receiver message];
square brackets
5. Objective-C methods are called using ____ _____
cannot
square brackets
%
inheritance hierarchy
6. 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.
anonymous object
selector
@implementation
inheritance hierarchy
7. 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.
selector
inheritance hierarchy
namespace
runtime
8. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
nil
delegates
binary
message expression
9. Objective-C binds methods and arguments at _____ instead of compile time
pointers
designated
inheritance hierarchy
runtime
10. A ____ ____ is a situation where you free memory and then accidentally continue to use it
remote object
link time
dangling pointer
Unitary
11. Property attribute where the setter stores the assigned value but does not perform any memory management.
deprecated
category
assign
developer intent
12. ______ operators take a single operand
Unitary
abstract superclass
heap
informal protocol
13. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
abstract superclass
cycles
formal protocol
14. An object of unknown class. Interface is published through protocol declaration.
readwrite
mutex
anonymous object
cycles
15. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
double
static typing
value
comma-separated
16. Same as class object. (first way to say it.)
square brackets
factory
assign
Edit>Refactor>Convert to Objective-C ARC
17. A message sent from one application to an object in another application.
Interface Builder
superset
remote message
binary
18. Any class that's one step below another class in the inheritance hierarchy.
Smalltalk
reference counting
attributes
subclass
19. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
reference counting
instance variable
class
20. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
dynamic binding
subclass
delegates
comma-separated
21. An object in another application - one that's a potential receiver for a remote message.
cannot
printf( )
remote object
readonly
22. A struct may contain multiple ____ consisting of different data types
superclass
Enumerations
class
fields
23. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
formal protocol
unitary
null
framework
24. 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.
Protocols
dynamic allocation
doubles
NSObject
25. This symbol denotes a method as being a class method
link time
strong
doubles
+
26. 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.
deprecated
doubles
Edit>Refactor>Convert to Objective-C ARC
reference counting
27. This symbol denotes a method as being an instance method
readwrite
asterisk (*)
cannot
-
28. Any method that can be used by an instance of a class rather than by the class object.
procedural programming language
%@
synchronous message
instance method
29. 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.
ampersand (&)
formal protocol
readwrite
floating-point
30. _____ operators take 2 operands
deprecated
formal protocol
instance
Binary
31. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
inheritance hierarchy
class
procedures
compile time
32. A variable that points to the memory address of another value
dynamic allocation
struct
pointer
cycles
33. 3 Common Float data types: float - _____ - CGFloat
double
deprecated
init
anonymous object
34. The first index in an array is valued at ____
interface
dereference (dereferencing)
zero
asynchronous message
35. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
adopt
AppKit
heap
Smalltalk
36. Symbol used to denote a placeholder in a format string
readwrite
event
%
@implementation
37. Xcode sequence to convert non-ARC apps to ARC
protocol
Edit>Refactor>Convert to Objective-C ARC
link time
category
38. 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
interface
procedures
synchronous message
developer intent
39. _____ allow you to add new methods to existing classes
adopt
reference counting
Categories
dynamic typing
40. 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
structures
implementation
superclass
41. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
Encapsulation
precedence
selector
Signed
42. Property attribute that causes the setter to store a copy of the assigned value
Unsigned
procedural programming language
abstract class
copy
43. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
remote object
Smalltalk
designated
@interface
44. In the Objective-C language the declaration of a group of methods not associated with any particular class.
null
delegates
protocol
@interface
45. _____ 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'.
asynchronous message
@implementation
inheritance
Encapsulation
46. Same as class object. (second way to say it.)
superclass
message
attributes
factory object
47. A method that can operate on class objects rather than instances of the class.
C operators
dereference (dereferencing)
subclass
class method
48. The most flexible C data type: ______
Unsigned
struct
adopt
anonymous object
49. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
delegates
heap
pointer
superclass
50. A compiler feature that provides automated memory management
C operators
ARC
runtime
pointer