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 protocol declared as a category usually as a category of the NSObject class.
informal protocol
C operators
-
reference counting
2. Instance variables are optional in iOS if ________ are used
developer intent
assign
properties
message
3. Property attribute that causes the setter to store a copy of the assigned value
copy
link time
delegates
conform
4. 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
abstract class
properties
instance
5. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Encapsulation
ampersand (&)
superclass
static typing
6. _____ allow you to add new methods to existing classes
printf( )
structures
Categories
assign
7. In object-oriented programming the object that is sent a message.
procedural programming language
Categories
receiver
dispatch table
8. 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
superclass
Cocoa
synchronous message
9. There are ____ fundamental building blocks in Objective-C
9
+
assignment
comma-separated
10. A set of method definitions that is segregated from the rest of the class definition.
encapsulation
nil
category
superclass
11. Data types are divided into two main categories: integer and ______
double
cycles
polymorphism
floating-point
12. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
anonymous object
ampersand (&)
instance method
13. A compiler feature that provides automated memory management
abstract class
copy
ARC
9
14. Finding the method implementation to invoke in response to the message
assignment
structures
encapsulation
dynamic binding
15. 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.
static typing
null
message expression
instance variable
16. This symbol denotes a method as being a class method
+
@interface
encapsulation
Cocoa
17. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
namespace
Binary
polymorphism
Cocoa
18. Objective-C binds methods and arguments at _____ instead of compile time
ampersand (&)
link time
method
runtime
19. A struct may contain multiple ____ consisting of different data types
designated initializer
Binary
fields
Enumerations
20. Property attribute that causes the setter to store a strong reference to the assigned value
namespace
strong
procedures
framework
21. Same as class object. (second way to say it.)
value
reference counting
protocol
factory object
22. 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.
instance
readonly
assign
Pointers
23. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
long long
@interface
superset
24. Property attribute where the setter stores the assigned value but does not perform any memory management.
9
strong
value
assign
25. _____ allow indirect access and modification of a variable's value.
Pointers
Protocols
NSString
static typing
26. A message sent from one application to an object in another application.
double
procedures
binary
remote message
27. In a home building analogy a ____ is the blueprint and the object is the house
class
Smalltalk
inheritance hierarchy
factory object
28. 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.
event
class object
developer intent
receiver
29. 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
category
abstract class
interface
NSString
30. 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.
remote message
Interface Builder
instance method
compile time
31. C-style strings are stored in an array of _____
init
dangling pointer
chars
instance
32. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
nonatomic
properties
adopt
33. 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
event
precedence
designated
34. An object of unknown class. Interface is published through protocol declaration.
anonymous object
protocol
-
comma-separated
35. 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.
outlet
adopt
assignment
cycles
36. A programming unit that groups together a data structure (instance variables) and the operations (methods) that can use or affect that data; the principal building blocks of object-oriented programs.
object
Binary
polymorphism
Product>Profile>Leaks>Profile
37. Objective-C methods are called using ____ _____
square brackets
9
nil
null
38. _____ operators take 2 operands
copy
Binary
strong
asynchronous message
39. 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
null
double
distributed objects
40. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
distributed objects
printf( )
square brackets
41. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
dynamic allocation
double
factory object
dispatch table
42. An object id with a value of 0.
event
%
nil
Edit>Refactor>Convert to Objective-C ARC
43. A class is said to do this when it declares that it implements all the methods in the protocol.
anonymous object
adopt
binary
unitary
44. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
Encapsulation
[receiver message];
mutex
45. 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
Edit>Refactor>Convert to Objective-C ARC
init
abstract superclass
synchronous message
46. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
dispatch table
@interface
attributes
47. A ____ _____ is where you forget to free up memory
dynamic allocation
weak
memory leak
selector
48. The most flexible C data type: ______
class
struct
Protocols
deprecated
49. 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.
asynchronous message
inheritance hierarchy
instance
cycles
50. A variable that points to the memory address of another value
binary
C operators
pointer
anonymous object