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 struct may contain multiple ____ consisting of different data types
outlet
fields
Interface Builder
@interface
2. 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.
Encapsulation
Smalltalk
AppKit
double
3. In a format string the place holder for an object is ______
procedural programming language
square brackets
value
%@
4. A class is said to do this when it declares that it implements all the methods in the protocol.
structures
adopt
instance
class
5. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Product>Profile>Leaks>Profile
readwrite
event
Binary
6. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
printf( )
cannot
polymorphism
7. 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
id
designated initializer
fields
@interface
8. An object that acts on behalf of another object.
delegate
attributes
chars
message
9. Same as class object. (second way to say it.)
factory object
%
Smalltalk
doubles
10. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
inheritance hierarchy
reference counting
selector
id
11. 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
runtime
binary
attributes
conform
12. A message sent from one application to an object in another application.
null
nil
remote message
runtime
13. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
heap
dispatch table
dynamic typing
developer intent
14. Finding the method implementation to invoke in response to the message
Protocols
binary
dynamic binding
Unsigned
15. 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.
zero
designated initializer
class object
object
16. In Objective-C floats are more commonly used than ______
printf( )
factory
doubles
implementation
17. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
structures
binary
deprecated
inheritance
18. Placing a ____ before a normal variable name gives it's address
deprecated
implementation
id
ampersand (&)
19. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
fields
weak
procedures
designated initializer
20. All objects are created on the _____
instance method
dynamic allocation
heap
structures
21. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
dangling pointer
init
attributes
22. Instance variables are optional in iOS if ________ are used
properties
class object
9
Enumerations
23. 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
properties
AppKit
null
synchronous message
24. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
AppKit
designated
instance variable
compile time
25. a+b; is an example of using a _____ operator
interface
struct
null
binary
26. 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.
cannot
double
assign
instance variable
27. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
mutex
NSObject
superclass
polymorphism
28. C-style strings are stored in an array of _____
square brackets
%@
chars
null
29. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
@implementation
Edit>Refactor>Convert to Objective-C ARC
instance
Cocoa
30. In object-oriented programming a procedure that can be executed by an object.
dynamic binding
copy
instance variable
method
31. A set of method definitions that is segregated from the rest of the class definition.
encapsulation
message
zero
category
32. Property attribute that synthesizes accessors that are not thread safe
nonatomic
heap
class
abstract superclass
33. An object of unknown class. Interface is published through protocol declaration.
anonymous object
readwrite
comma-separated
9
34. Same as class object. (first way to say it.)
Cocoa
asynchronous message
factory
dynamic allocation
35. An architecture that facilitates communication between objects in different address spaces.
polymorphism
distributed objects
ARC
inheritance
36. A ____ _____ is where you forget to free up memory
heap
class
class
memory leak
37. Property attribute that causes the setter to store a copy of the assigned value
copy
Unsigned
dereference (dereferencing)
Categories
38. An object id with a value of 0.
class object
runtime
ARC
nil
39. Another name for a class that's defined solely so that other classes can inherit from it.
class
designated
abstract superclass
double
40. 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.
precedence
encapsulation
[receiver message];
dynamic binding
41. ____ provide a concise & elegant method for defining a discrete set of values
remote object
asynchronous message
Enumerations
dynamic typing
42. Objective-C methods are called using ____ _____
object
cannot
deprecated
square brackets
43. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
developer intent
distributed objects
compile time
44. To destroy an object set the variable that points to it to _____
nil
class method
precedence
copy
45. Data types are divided into two main categories: integer and ______
weak
class
floating-point
value
46. Objective-C's protocols are really about communicating _____ _______
designated
readwrite
developer intent
Smalltalk
47. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
-
formal protocol
Interface Builder
deprecated
48. Objective-C is a _____ of the C language
double
superset
Protocols
anonymous object
49. Xcode sequence to convert non-ARC apps to ARC
fields
Edit>Refactor>Convert to Objective-C ARC
nil
protocol
50. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
memory leak
readwrite
Enumerations
precedence