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. Data types are divided into two main categories: integer and ______
class
synchronous message
factory
floating-point
2. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
superclass
abstract superclass
remote message
3. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
category
receiver
readonly
deprecated
4. This symbol denotes a method as being a class method
Categories
floating-point
instance
+
5. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
category
assign
%
message
6. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
readwrite
class method
Protocols
runtime
7. Property attribute that synthesizes both a getter and setter for the property
attributes
Smalltalk
Signed
readwrite
8. The first index in an array is valued at ____
attributes
framework
zero
receiver
9. To destroy an object set the variable that points to it to _____
namespace
nil
Categories
9
10. Same as class object. (second way to say it.)
protocol
designated
factory object
init
11. 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
message expression
pointer
dynamic allocation
synchronous message
12. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
inheritance
event
C operators
pointer
13. The most flexible C data type: ______
class
square brackets
Binary
struct
14. Finding the method implementation to invoke in response to the message
floating-point
developer intent
remote message
dynamic binding
15. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
asterisk (*)
cannot
init
Product>Profile>Leaks>Profile
16. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
dynamic typing
inheritance hierarchy
polymorphism
designated initializer
17. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
method
zero
remote object
18. Same as class object. (first way to say it.)
factory
runtime
comma-separated
dynamic allocation
19. An object in another application - one that's a potential receiver for a remote message.
-
dynamic typing
polymorphism
remote object
20. Objective-C is a _____ of the C language
precedence
fields
superset
assignment
21. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
Categories
precedence
struct
22. This symbol denotes a method as being an instance method
selector
-
ampersand (&)
anonymous object
23. Another name for a class that's defined solely so that other classes can inherit from it.
double
Signed
+
abstract superclass
24. ______ operators take a single operand
encapsulation
polymorphism
Unitary
designated
25. Objective-C's protocols are really about communicating _____ _______
developer intent
conform
AppKit
asterisk (*)
26. 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.
deprecated
runtime
instance
receiver
27. 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).
superclass
adopt
message expression
outlet
28. There are ____ fundamental building blocks in Objective-C
remote message
dynamic allocation
9
zero
29. A set of method definitions that is segregated from the rest of the class definition.
9
Encapsulation
Edit>Refactor>Convert to Objective-C ARC
category
30. Discovering the class of an object at runtime rather than at compile time.
object
AppKit
unitary
dynamic typing
31. All objects are created on the _____
printf( )
init
heap
event
32. 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.
Interface Builder
-
delegates
class object
33. An object that acts on behalf of another object.
encapsulation
delegate
dynamic allocation
Unsigned
34. A struct may contain multiple ____ consisting of different data types
null
fields
copy
init
35. Any method that can be used by an instance of a class rather than by the class object.
+
id
Binary
instance method
36. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
9
procedures
unitary
zero
37. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
superset
compile time
pointers
Protocols
38. In a format string the place holder for an object is ______
%@
long long
anonymous object
formal protocol
39. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
nonatomic
assignment
pointers
40. 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.
receiver
runtime
superclass
instance
41. Instance variables are optional in iOS if ________ are used
remote object
asterisk (*)
assignment
properties
42. ______ data types are always zero or greate
superset
implementation
Signed
Unsigned
43. In a home building analogy a ____ is the blueprint and the object is the house
message
procedural programming language
class
namespace
44. 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.
delegates
developer intent
informal protocol
link time
45. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
readonly
delegate
reference counting
weak
46. ____ provide a concise & elegant method for defining a discrete set of values
init
Enumerations
long long
subclass
47. An object of unknown class. Interface is published through protocol declaration.
Categories
Encapsulation
anonymous object
synchronous message
48. A protocol declared as a category usually as a category of the NSObject class.
strong
class
Unsigned
informal protocol
49. 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.
Interface Builder
C operators
instance variable
%@
50. Objective-C methods are called using ____ _____
square brackets
@implementation
class
asterisk (*)