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. 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.
long long
Interface Builder
dereference (dereferencing)
NSString
2. a+b; is an example of using a _____ operator
binary
printf( )
readonly
Unsigned
3. The process of setting or reading the value at an address pointed to by a pointer
Signed
method
dynamic binding
dereference (dereferencing)
4. Square bracket syntax for calling a method
[receiver message];
procedural programming language
dangling pointer
protocol
5. An object id with a value of 0.
instance variable
nil
deprecated
cannot
6. Property attribute where the setter stores the assigned value but does not perform any memory management.
superclass
+
assign
runtime
7. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
memory leak
interface
ampersand (&)
outlet
8. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
copy
nil
protocol
9. A variable that points to the memory address of another value
dangling pointer
Edit>Refactor>Convert to Objective-C ARC
properties
pointer
10. A struct may contain multiple ____ consisting of different data types
@implementation
fields
factory
%
11. An object of unknown class. Interface is published through protocol declaration.
double
anonymous object
protocol
message expression
12. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
printf( )
floating-point
superclass
runtime
13. Three main categories of more complicated data structures:_______ - arrays and structs
subclass
pointers
instance variable
copy
14. 3 Common Float data types: float - _____ - CGFloat
double
framework
runtime
formal protocol
15. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
instance
interface
synchronous message
remote message
16. Symbol used to denote a placeholder in a format string
framework
AppKit
superset
%
17. 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.
binary
selector
designated initializer
dangling pointer
18. In a format string the place holder for an object is ______
doubles
dynamic typing
Protocols
%@
19. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
receiver
@implementation
informal protocol
long long
20. Property attribute that synthesizes only a getter for the property
instance
procedures
readonly
class object
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.
binary
interface
runtime
static typing
22. 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).
message expression
category
nonatomic
framework
23. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
fields
@implementation
dispatch table
inheritance
24. a++; is an example of using a _____ operator
remote object
inheritance
NSObject
unitary
25. 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.
namespace
Edit>Refactor>Convert to Objective-C ARC
memory leak
link time
26. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
class object
class
mutex
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.
binary
struct
%
class object
28. Xcode sequence to examine an app for memory leaks or retain cycles
readwrite
Edit>Refactor>Convert to Objective-C ARC
Product>Profile>Leaks>Profile
Encapsulation
29. 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).
compile time
implementation
value
namespace
30. When creating a class header file you begin with the _____ keyword and close with the @end keyword
dangling pointer
abstract superclass
@interface
instance
31. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
developer intent
inheritance
Encapsulation
delegates
32. _____ 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'.
Encapsulation
remote object
@interface
dynamic allocation
33. Initializer method traditionally begin with the _____ prefix
value
init
pointer
instance method
34. Property attribute that causes the setter to store a copy of the assigned value
init
copy
Smalltalk
message expression
35. A set of method definitions that is segregated from the rest of the class definition.
class
link time
subclass
category
36. _____ operators take 2 operands
Binary
cannot
fields
receiver
37. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
message
asynchronous message
nonatomic
38. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
event
remote message
Cocoa
39. Finding the method implementation to invoke in response to the message
receiver
dynamic binding
[receiver message];
Pointers
40. Property attribute that causes the setter to store a strong reference to the assigned value
nil
strong
memory leak
%@
41. C-style strings are stored in an array of _____
Signed
dereference (dereferencing)
chars
factory object
42. A compiler feature that provides automated memory management
ARC
remote object
Categories
message
43. Instance variables are optional in iOS if ________ are used
properties
Smalltalk
protocol
reference counting
44. ______ data types are always zero or greate
floating-point
inheritance
compile time
Unsigned
45. To destroy an object set the variable that points to it to _____
init
object
dynamic typing
nil
46. 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.
distributed objects
instance
long long
encapsulation
47. Objective-C objects should use strong or weak ______
message expression
readwrite
attributes
struct
48. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
assignment
category
cycles
polymorphism
49. Any method that can be used by an instance of a class rather than by the class object.
instance method
remote message
dynamic typing
+
50. A ____ _____ is where you forget to free up memory
zero
dynamic typing
[receiver message];
memory leak