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 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
delegate
dispatch table
designated initializer
conform
2. A message sent from one application to an object in another application.
chars
@interface
remote message
designated
3. Objective-C objects should use strong or weak ______
attributes
method
instance method
-
4. _____ 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
zero
Smalltalk
Edit>Refactor>Convert to Objective-C ARC
5. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
deprecated
weak
ampersand (&)
event
6. All objects are created on the _____
cannot
heap
delegates
null
7. 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
nil
structures
receiver
implementation
8. An object in another application - one that's a potential receiver for a remote message.
[receiver message];
id
dynamic typing
remote object
9. Initializer method traditionally begin with the _____ prefix
remote message
inheritance
dereference (dereferencing)
init
10. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
encapsulation
Protocols
subclass
dangling pointer
11. There are ____ fundamental building blocks in Objective-C
superset
procedures
9
@interface
12. 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).
weak
link time
implementation
structures
13. A variable that points to the memory address of another value
pointer
structures
Binary
chars
14. 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).
compile time
abstract superclass
assignment
message expression
15. The most flexible C data type: ______
struct
category
factory object
%
16. 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
instance
framework
abstract superclass
17. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
fields
[receiver message];
superset
18. 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
Unitary
fields
instance variable
19. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
class method
%
@interface
20. 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.
id
assignment
runtime
9
21. ____ provide a concise & elegant method for defining a discrete set of values
Unitary
delegate
Enumerations
properties
22. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
inheritance
class method
precedence
anonymous object
23. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
Unsigned
assignment
memory leak
Product>Profile>Leaks>Profile
24. 3 Common Float data types: float - _____ - CGFloat
Protocols
double
factory object
Unitary
25. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance hierarchy
zero
inheritance
precedence
26. The root class in Objective-C
instance method
NSObject
Unsigned
dangling pointer
27. In the Objective-C language the declaration of a group of methods not associated with any particular class.
Cocoa
namespace
distributed objects
protocol
28. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
Unsigned
weak
@implementation
developer intent
29. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
inheritance hierarchy
properties
NSString
30. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
informal protocol
heap
zero
31. C-style strings always end with a ____ character
null
doubles
protocol
instance
32. 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.
conform
Unitary
instance
class object
33. Same as class object. (second way to say it.)
factory object
protocol
fields
designated initializer
34. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
Categories
formal protocol
long long
strong
35. a+b; is an example of using a _____ operator
abstract class
dynamic allocation
binary
C operators
36. The _____ function can be used to print a message to the console
printf( )
nil
C operators
compile time
37. Objective-C binds methods and arguments at _____ instead of compile time
designated initializer
dispatch table
delegate
runtime
38. Any class that's one step below another class in the inheritance hierarchy.
asterisk (*)
assign
dangling pointer
subclass
39. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
dangling pointer
NSString
copy
40. _____ data types can be both positive and negative
readonly
Signed
ARC
deprecated
41. A compiler feature that provides automated memory management
ARC
factory
strong
instance
42. 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.
designated
static typing
formal protocol
mutex
43. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
Signed
value
Interface Builder
44. In a format string the place holder for an object is ______
%@
9
framework
ampersand (&)
45. A protocol declared as a category usually as a category of the NSObject class.
readwrite
procedures
Pointers
informal protocol
46. 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
value
method
formal protocol
47. 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.
[receiver message];
Interface Builder
framework
category
48. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
class method
Unitary
namespace
49. Property attribute that causes the setter to store a copy of the assigned value
copy
interface
structures
zero
50. 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.
binary
instance variable
assignment
implementation