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. 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).
Edit>Refactor>Convert to Objective-C ARC
message expression
%
superclass
2. An object id with a value of 0.
cannot
polymorphism
nil
interface
3. Any method that can be used by an instance of a class rather than by the class object.
abstract class
instance method
assign
dispatch table
4. The process of setting or reading the value at an address pointed to by a pointer
readonly
dereference (dereferencing)
ARC
dynamic binding
5. 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.
event
delegates
instance
[receiver message];
6. 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.
instance variable
strong
remote object
compile time
7. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
abstract superclass
instance method
zero
dispatch table
8. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
attributes
remote message
outlet
delegates
9. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
structures
encapsulation
message
assignment
10. In object-oriented programming the object that is sent a message.
memory leak
receiver
AppKit
ARC
11. Property attribute where the setter stores the assigned value but does not perform any memory management.
event
assign
remote object
[receiver message];
12. 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
copy
properties
framework
13. Objective-C binds methods and arguments at _____ instead of compile time
runtime
structures
Smalltalk
ampersand (&)
14. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
id
abstract superclass
Encapsulation
class
15. 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.
Enumerations
weak
formal protocol
Smalltalk
16. Objective-C objects should use strong or weak ______
C operators
memory leak
abstract class
attributes
17. This symbol denotes a method as being an instance method
developer intent
dereference (dereferencing)
strong
-
18. 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
dynamic binding
category
NSString
framework
19. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
dereference (dereferencing)
chars
weak
20. 3 Common Float data types: float - _____ - CGFloat
floating-point
implementation
double
message
21. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
message expression
abstract superclass
formal protocol
precedence
22. The first index in an array is valued at ____
zero
id
memory leak
superclass
23. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
interface
polymorphism
Encapsulation
event
24. An architecture that facilitates communication between objects in different address spaces.
value
NSObject
Encapsulation
distributed objects
25. 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
message
assignment
Unsigned
26. 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.
Pointers
Product>Profile>Leaks>Profile
AppKit
dereference (dereferencing)
27. An object in another application - one that's a potential receiver for a remote message.
remote message
Signed
remote object
deprecated
28. A message sent from one application to an object in another application.
implementation
readwrite
remote message
9
29. ______ data types are always zero or greate
mutex
Interface Builder
nonatomic
Unsigned
30. 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
printf( )
message expression
precedence
31. C-style strings always end with a ____ character
nil
Categories
null
Unitary
32. Objective-C's protocols are really about communicating _____ _______
developer intent
readwrite
reference counting
instance variable
33. 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.
interface
pointer
Interface Builder
encapsulation
34. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
remote object
superclass
Protocols
35. Instance variables are optional in iOS if ________ are used
properties
remote message
subclass
Encapsulation
36. 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
Cocoa
struct
Interface Builder
structures
37. Symbol used to denote a placeholder in a format string
encapsulation
%
designated initializer
-
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
nil
AppKit
synchronous message
printf( )
39. Same as class object. (first way to say it.)
struct
factory
Interface Builder
instance method
40. A method that can operate on class objects rather than instances of the class.
class method
dynamic typing
designated
abstract class
41. 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.
readwrite
runtime
printf( )
id
42. In Objective-C floats are more commonly used than ______
implementation
doubles
outlet
AppKit
43. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
message
procedural programming language
Enumerations
Binary
44. Property attribute that synthesizes accessors that are not thread safe
nonatomic
cannot
mutex
class
45. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
object
nil
Smalltalk
developer intent
46. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
precedence
pointers
class object
weak
47. A set of method definitions that is segregated from the rest of the class definition.
category
assignment
Smalltalk
reference counting
48. 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
compile time
ARC
NSObject
49. An object of unknown class. Interface is published through protocol declaration.
anonymous object
procedural programming language
doubles
floating-point
50. Data types are divided into two main categories: integer and ______
remote object
dynamic allocation
remote message
floating-point