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 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.
attributes
runtime
NSObject
Interface Builder
2. Another name for a class that's defined solely so that other classes can inherit from it.
long long
designated initializer
Pointers
abstract superclass
3. Three main categories of more complicated data structures:_______ - arrays and structs
heap
precedence
pointers
AppKit
4. ARC is susceptible to retain _____
inheritance
cycles
[receiver message];
developer intent
5. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
protocol
informal protocol
namespace
interface
6. 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.
Pointers
polymorphism
designated initializer
dynamic allocation
7. 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
+
NSString
[receiver message];
assign
8. a+b; is an example of using a _____ operator
interface
binary
struct
remote object
9. 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.
abstract superclass
instance variable
AppKit
distributed objects
10. 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.
[receiver message];
category
comma-separated
outlet
11. A method that can operate on class objects rather than instances of the class.
nonatomic
class method
asynchronous message
outlet
12. 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
designated initializer
structures
cycles
13. All objects are created on the _____
message expression
framework
heap
event
14. Data types are divided into two main categories: integer and ______
Interface Builder
readonly
object
floating-point
15. In a home building analogy a ____ is the blueprint and the object is the house
designated initializer
nonatomic
asynchronous message
class
16. Any method that can be used by an instance of a class rather than by the class object.
NSString
weak
instance method
inheritance hierarchy
17. Property attribute that synthesizes accessors that are not thread safe
compile time
assign
nonatomic
dynamic binding
18. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
readwrite
asynchronous message
abstract superclass
19. In object-oriented programming a procedure that can be executed by an object.
method
outlet
+
zero
20. A variable that points to the memory address of another value
pointer
inheritance hierarchy
static typing
Smalltalk
21. 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
delegate
polymorphism
assign
22. ______ data types are always zero or greate
Unsigned
strong
inheritance
implementation
23. Any class that's one step below another class in the inheritance hierarchy.
subclass
Edit>Refactor>Convert to Objective-C ARC
method
double
24. Objective-C's protocols are really about communicating _____ _______
object
developer intent
Protocols
readwrite
25. A compiler feature that provides automated memory management
Unsigned
double
designated
ARC
26. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
dereference (dereferencing)
assignment
properties
mutex
27. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
dereference (dereferencing)
remote object
instance method
28. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
instance
Pointers
value
framework
29. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
superclass
reference counting
superset
NSString
30. An object id with a value of 0.
instance
nil
assign
factory object
31. _____ allow you to add new methods to existing classes
Categories
zero
inheritance
formal protocol
32. 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
implementation
heap
structures
anonymous object
33. 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
long long
cycles
strong
34. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
%@
asterisk (*)
runtime
inheritance hierarchy
35. A protocol declared as a category usually as a category of the NSObject class.
attributes
comma-separated
factory object
informal protocol
36. 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.
class object
event
formal protocol
zero
37. A class is said to do this when it declares that it implements all the methods in the protocol.
fields
instance variable
init
adopt
38. Symbol used to denote a placeholder in a format string
nil
%
implementation
polymorphism
39. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
instance
abstract class
factory
runtime
40. An object of unknown class. Interface is published through protocol declaration.
value
anonymous object
readwrite
comma-separated
41. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
delegates
assignment
conform
42. The most flexible C data type: ______
framework
delegates
pointer
struct
43. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
properties
dangling pointer
null
deprecated
44. A set of method definitions that is segregated from the rest of the class definition.
readonly
null
category
subclass
45. A struct may contain multiple ____ consisting of different data types
selector
binary
fields
doubles
46. C-style strings are stored in an array of _____
chars
NSString
dispatch table
-
47. _____ data types can be both positive and negative
class method
Signed
doubles
9
48. Placing a ____ before a normal variable name gives it's address
ampersand (&)
procedural programming language
receiver
Categories
49. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
readonly
static typing
AppKit
remote object
50. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
protocol
Smalltalk
instance variable
readonly