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. The root class in Objective-C
Categories
id
NSObject
asterisk (*)
2. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
event
Cocoa
method
+
3. The process of setting or reading the value at an address pointed to by a pointer
binary
selector
+
dereference (dereferencing)
4. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
attributes
anonymous object
protocol
5. Property attribute that synthesizes only a getter for the property
assign
namespace
readonly
class method
6. 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
attributes
memory leak
adopt
7. 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.
procedures
event
pointer
id
8. Instance variables are optional in iOS if ________ are used
instance variable
properties
Unitary
link time
9. In a format string the place holder for an object is ______
%@
instance
outlet
designated
10. _____ data types can be both positive and negative
class
binary
dynamic typing
Signed
11. 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.
inheritance
class object
asynchronous message
class
12. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
distributed objects
assignment
square brackets
dynamic binding
13. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
selector
procedures
init
Enumerations
14. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
assignment
delegates
instance
asynchronous message
15. 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.
developer intent
outlet
Signed
square brackets
16. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
class object
static typing
readonly
17. _____ 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'.
abstract class
weak
Encapsulation
adopt
18. A ____ _____ is where you forget to free up memory
Interface Builder
memory leak
nil
dereference (dereferencing)
19. This symbol denotes a method as being a class method
nil
+
null
class object
20. Three main categories of more complicated data structures:_______ - arrays and structs
selector
implementation
pointers
designated initializer
21. A message sent from one application to an object in another application.
encapsulation
precedence
adopt
remote message
22. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
deprecated
Product>Profile>Leaks>Profile
designated
assignment
23. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
id
copy
Smalltalk
mutex
24. Objective-C objects should use strong or weak ______
zero
attributes
long long
structures
25. In object-oriented programming a procedure that can be executed by an object.
method
%@
Unitary
abstract class
26. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
procedures
inheritance
delegates
framework
27. Placing a ____ before a normal variable name gives it's address
dispatch table
asterisk (*)
class object
ampersand (&)
28. In the Objective-C language the declaration of a group of methods not associated with any particular class.
runtime
9
attributes
protocol
29. 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
zero
dynamic allocation
instance variable
30. There are ____ fundamental building blocks in Objective-C
assignment
Enumerations
encapsulation
9
31. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
weak
static typing
procedural programming language
fields
32. Property attribute that synthesizes accessors that are not thread safe
formal protocol
superset
nonatomic
runtime
33. 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.
comma-separated
value
reference counting
strong
34. Objective-C's protocols are really about communicating _____ _______
instance
developer intent
abstract superclass
asterisk (*)
35. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
message
AppKit
distributed objects
interface
36. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
Enumerations
weak
class method
Edit>Refactor>Convert to Objective-C ARC
37. 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.
runtime
zero
designated initializer
Smalltalk
38. An architecture that facilitates communication between objects in different address spaces.
abstract superclass
dangling pointer
distributed objects
null
39. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
superclass
mutex
dynamic allocation
interface
40. 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
encapsulation
superclass
synchronous message
class
41. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
implementation
polymorphism
anonymous object
factory object
42. Symbol used to denote a placeholder in a format string
long long
protocol
square brackets
%
43. C-style strings always end with a ____ character
informal protocol
anonymous object
null
Pointers
44. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
NSString
readonly
runtime
cycles
45. Objective-C binds methods and arguments at _____ instead of compile time
printf( )
runtime
dynamic typing
assign
46. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
Unitary
procedural programming language
deprecated
47. a+b; is an example of using a _____ operator
event
pointer
binary
doubles
48. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
AppKit
ARC
remote object
Pointers
49. Data types are divided into two main categories: integer and ______
adopt
factory
floating-point
ARC
50. 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.
asynchronous message
formal protocol
null
cannot