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. Xcode sequence to examine an app for memory leaks or retain cycles
anonymous object
readonly
Product>Profile>Leaks>Profile
conform
2. The root class in Objective-C
delegates
NSObject
method
cannot
3. _____ data types can be both positive and negative
designated
Signed
Edit>Refactor>Convert to Objective-C ARC
strong
4. Initializer method traditionally begin with the _____ prefix
init
nil
class
factory
5. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
protocol
weak
delegate
namespace
6. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
C operators
delegates
interface
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.
id
long long
Signed
memory leak
8. An architecture that facilitates communication between objects in different address spaces.
delegate
id
distributed objects
instance method
9. An object id with a value of 0.
binary
nil
dynamic allocation
%
10. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
double
asterisk (*)
dynamic allocation
11. An object in another application - one that's a potential receiver for a remote message.
remote object
instance variable
subclass
Binary
12. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
reference counting
asterisk (*)
event
13. 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
unitary
structures
AppKit
null
14. 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 Builder
init
dereference (dereferencing)
NSString
15. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
precedence
ARC
Cocoa
properties
16. Property attribute where the setter stores the assigned value but does not perform any memory management.
class
heap
instance method
assign
17. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
double
instance method
outlet
18. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
dynamic binding
dangling pointer
deprecated
object
19. This symbol denotes a method as being an instance method
-
inheritance
structures
asynchronous message
20. The most flexible C data type: ______
procedural programming language
struct
designated
pointer
21. The _____ function can be used to print a message to the console
Encapsulation
attributes
printf( )
fields
22. 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
9
copy
conform
nil
23. Symbol used to denote a placeholder in a format string
dynamic allocation
%
printf( )
double
24. Data types are divided into two main categories: integer and ______
unitary
implementation
floating-point
@interface
25. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
abstract class
anonymous object
developer intent
26. 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
selector
synchronous message
procedural programming language
category
27. Finding the method implementation to invoke in response to the message
square brackets
dispatch table
Categories
dynamic binding
28. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
Unsigned
delegates
class method
binary
29. A set of method definitions that is segregated from the rest of the class definition.
superset
Unsigned
delegate
category
30. Discovering the class of an object at runtime rather than at compile time.
copy
9
instance
dynamic typing
31. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
copy
instance
polymorphism
chars
32. 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
namespace
Edit>Refactor>Convert to Objective-C ARC
dispatch table
33. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
9
copy
Smalltalk
cannot
34. 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.
object
runtime
dynamic allocation
receiver
35. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
NSString
event
strong
36. An object that acts on behalf of another object.
framework
struct
adopt
delegate
37. 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
class
dynamic allocation
Cocoa
38. A class is said to do this when it declares that it implements all the methods in the protocol.
asterisk (*)
assignment
nil
adopt
39. In object-oriented programming a procedure that can be executed by an object.
value
square brackets
Protocols
method
40. A struct may contain multiple ____ consisting of different data types
asterisk (*)
class method
message expression
fields
41. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
C operators
static typing
factory object
ARC
42. In a format string the place holder for an object is ______
Protocols
%@
@implementation
class
43. A compiler feature that provides automated memory management
%
selector
ARC
delegate
44. 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.
doubles
formal protocol
dynamic allocation
reference counting
45. 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.
readonly
instance
ampersand (&)
Smalltalk
46. When creating a class header file you begin with the _____ keyword and close with the @end keyword
procedural programming language
@interface
class object
init
47. C-style strings are stored in an array of _____
Binary
fields
chars
doubles
48. In Objective-C floats are more commonly used than ______
[receiver message];
adopt
doubles
Protocols
49. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
assignment
selector
class method
designated
50. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Interface Builder
encapsulation
memory leak
value