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. The _____ function can be used to print a message to the console
designated initializer
printf( )
runtime
synchronous message
2. In a home building analogy a ____ is the blueprint and the object is the house
deprecated
message
anonymous object
class
3. A variable that points to the memory address of another value
Unitary
heap
protocol
pointer
4. 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.
Signed
polymorphism
runtime
null
5. Xcode sequence to convert non-ARC apps to ARC
instance method
class
class object
Edit>Refactor>Convert to Objective-C ARC
6. 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.
static typing
link time
class object
cycles
7. 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
assign
conform
category
square brackets
8. a+b; is an example of using a _____ operator
synchronous message
binary
abstract superclass
properties
9. Objective-C is a _____ of the C language
%
%@
superset
developer intent
10. To destroy an object set the variable that points to it to _____
message expression
ARC
nil
link time
11. Property attribute that synthesizes both a getter and setter for the property
double
readwrite
polymorphism
informal protocol
12. Symbol used to denote a placeholder in a format string
%
protocol
abstract superclass
Unsigned
13. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
square brackets
mutex
zero
doubles
14. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
method
Binary
nil
15. A ____ ____ is a situation where you free memory and then accidentally continue to use it
weak
receiver
dangling pointer
square brackets
16. 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
reference counting
Smalltalk
doubles
17. A class is said to do this when it declares that it implements all the methods in the protocol.
weak
adopt
Cocoa
heap
18. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
Protocols
developer intent
structures
19. In Objective-C floats are more commonly used than ______
Enumerations
doubles
dynamic typing
procedures
20. 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
cycles
Pointers
dynamic allocation
synchronous message
21. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
remote object
asynchronous message
cannot
Interface Builder
22. A ____ _____ is where you forget to free up memory
@interface
memory leak
factory object
cannot
23. In the Objective-C language the declaration of a group of methods not associated with any particular class.
procedures
superclass
protocol
polymorphism
24. A compiler feature that provides automated memory management
ARC
protocol
readonly
asynchronous message
25. C-style strings are stored in an array of _____
Categories
namespace
chars
init
26. 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.
abstract class
asterisk (*)
designated initializer
cycles
27. 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.
interface
+
factory object
encapsulation
28. Instance variables are optional in iOS if ________ are used
properties
init
binary
printf( )
29. 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
compile time
delegates
Unsigned
designated initializer
30. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
instance method
message
class
dispatch table
31. C-style strings always end with a ____ character
heap
null
precedence
copy
32. Data types are divided into two main categories: integer and ______
class
floating-point
subclass
dynamic typing
33. Same as class object. (first way to say it.)
[receiver message];
runtime
designated
factory
34. 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
long long
Categories
dangling pointer
35. 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.
remote object
abstract class
instance
implementation
36. 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
zero
AppKit
binary
37. Objective-C methods are called using ____ _____
C operators
binary
weak
square brackets
38. An object that acts on behalf of another object.
object
value
fields
delegate
39. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
fields
class
comma-separated
40. 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.
[receiver message];
class
object
attributes
41. A set of method definitions that is segregated from the rest of the class definition.
category
id
structures
designated initializer
42. A protocol declared as a category usually as a category of the NSObject class.
delegate
informal protocol
C operators
assignment
43. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
distributed objects
C operators
message expression
weak
44. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
9
link time
cannot
mutex
45. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
designated initializer
outlet
class
AppKit
46. In a format string the place holder for an object is ______
cycles
class method
%@
Interface Builder
47. All objects are created on the _____
pointers
dispatch table
dynamic allocation
heap
48. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
developer intent
@implementation
Cocoa
instance
49. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
delegates
Edit>Refactor>Convert to Objective-C ARC
message
conform
50. ______ operators take a single operand
doubles
Enumerations
dangling pointer
Unitary