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. Square bracket syntax for calling a method
properties
dynamic binding
Interface Builder
[receiver message];
2. 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
delegate
asterisk (*)
@implementation
3. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
procedures
compile time
Unitary
namespace
4. This symbol denotes a method as being a class method
memory leak
NSObject
strong
+
5. The most flexible C data type: ______
struct
readwrite
square brackets
dynamic binding
6. a++; is an example of using a _____ operator
unitary
Binary
namespace
message expression
7. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
[receiver message];
C operators
procedural programming language
namespace
8. An object in another application - one that's a potential receiver for a remote message.
remote object
dynamic allocation
message
AppKit
9. Data types are divided into two main categories: integer and ______
copy
AppKit
floating-point
class method
10. A method that can operate on class objects rather than instances of the class.
floating-point
properties
synchronous message
class method
11. 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.
encapsulation
struct
null
instance variable
12. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
Unsigned
designated
instance
static typing
13. Finding the method implementation to invoke in response to the message
dynamic binding
anonymous object
printf( )
binary
14. Objective-C is a _____ of the C language
nil
inheritance hierarchy
ampersand (&)
superset
15. _____ data types can be both positive and negative
formal protocol
value
heap
Signed
16. Any class that's one step below another class in the inheritance hierarchy.
Product>Profile>Leaks>Profile
informal protocol
selector
subclass
17. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
dangling pointer
AppKit
dynamic typing
18. To destroy an object set the variable that points to it to _____
Encapsulation
remote object
nil
9
19. _____ operators take 2 operands
ampersand (&)
inheritance
Binary
instance method
20. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
compile time
weak
Protocols
reference counting
21. 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.
NSObject
@interface
runtime
floating-point
22. 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.
link time
precedence
pointers
protocol
23. 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
encapsulation
conform
namespace
Protocols
24. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
implementation
pointers
Unsigned
binary
25. Initializer method traditionally begin with the _____ prefix
Categories
cannot
long long
init
26. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
inheritance hierarchy
class method
procedural programming language
27. 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.
class object
link time
fields
Signed
28. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
class
structures
id
message
29. In object-oriented programming the object that is sent a message.
runtime
NSString
link time
receiver
30. A protocol declared as a category usually as a category of the NSObject class.
asynchronous message
Categories
class
informal protocol
31. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
superset
Unitary
procedures
attributes
32. This symbol denotes a method as being an instance method
polymorphism
-
memory leak
remote object
33. 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
synchronous message
superset
delegate
nil
34. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
formal protocol
asterisk (*)
receiver
delegate
35. 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
designated initializer
Categories
asynchronous message
NSString
36. In a format string the place holder for an object is ______
strong
heap
%@
deprecated
37. 3 Common Float data types: float - _____ - CGFloat
nil
receiver
double
AppKit
38. Xcode sequence to examine an app for memory leaks or retain cycles
Cocoa
printf( )
cycles
Product>Profile>Leaks>Profile
39. ______ data types are always zero or greate
Unsigned
@implementation
abstract superclass
ampersand (&)
40. Property attribute where the setter stores the assigned value but does not perform any memory management.
object
static typing
assign
synchronous message
41. A message sent from one application to an object in another application.
Binary
remote message
reference counting
struct
42. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
distributed objects
asynchronous message
event
Unitary
43. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
dynamic allocation
static typing
subclass
weak
44. An object id with a value of 0.
abstract class
pointers
instance method
nil
45. There are ____ fundamental building blocks in Objective-C
NSString
unitary
9
assignment
46. 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
dereference (dereferencing)
NSString
strong
47. The first index in an array is valued at ____
+
class
AppKit
zero
48. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
Product>Profile>Leaks>Profile
instance
struct
asynchronous message
49. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
fields
value
protocol
properties
50. Property attribute that synthesizes only a getter for the property
class
readonly
remote message
Categories