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 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).
procedural programming language
protocol
polymorphism
implementation
2. 3 Common Float data types: float - _____ - CGFloat
subclass
double
delegate
dynamic binding
3. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
static typing
@implementation
Cocoa
outlet
4. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
Edit>Refactor>Convert to Objective-C ARC
abstract class
procedures
5. Objective-C methods are called using ____ _____
square brackets
doubles
zero
factory
6. The root class in Objective-C
delegates
cannot
NSObject
runtime
7. In a format string the place holder for an object is ______
Enumerations
%@
synchronous message
dereference (dereferencing)
8. Property attribute that causes the setter to store a strong reference to the assigned value
strong
inheritance hierarchy
dynamic typing
Encapsulation
9. Property attribute that synthesizes only a getter for the property
dynamic allocation
@interface
class object
readonly
10. ARC is susceptible to retain _____
cycles
pointers
asynchronous message
instance method
11. 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.
Protocols
doubles
adopt
reference counting
12. The most flexible C data type: ______
Encapsulation
struct
ampersand (&)
framework
13. In the Objective-C language the declaration of a group of methods not associated with any particular class.
factory
protocol
Protocols
init
14. ______ operators take a single operand
Unitary
binary
+
subclass
15. ______ data types are always zero or greate
Unsigned
instance method
attributes
NSString
16. A compiler feature that provides automated memory management
ARC
encapsulation
outlet
%@
17. 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.
procedural programming language
Unitary
instance
selector
18. Placing a ____ before a normal variable name gives it's address
remote object
ampersand (&)
protocol
Categories
19. Objective-C objects should use strong or weak ______
attributes
double
unitary
Unitary
20. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
binary
ampersand (&)
anonymous object
21. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
-
message
value
event
22. A set of method definitions that is segregated from the rest of the class definition.
category
Binary
-
designated initializer
23. 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.
link time
Signed
subclass
init
24. Instance variables are optional in iOS if ________ are used
long long
properties
class object
Edit>Refactor>Convert to Objective-C ARC
25. A protocol declared as a category usually as a category of the NSObject class.
inheritance
%
memory leak
informal protocol
26. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
nil
delegate
floating-point
27. 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).
message expression
Edit>Refactor>Convert to Objective-C ARC
comma-separated
%
28. This symbol denotes a method as being an instance method
id
-
runtime
message expression
29. A ____ ____ is a situation where you free memory and then accidentally continue to use it
assign
memory leak
precedence
dangling pointer
30. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
[receiver message];
message expression
Pointers
31. A method that can operate on class objects rather than instances of the class.
reference counting
class method
memory leak
value
32. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
Pointers
link time
Interface Builder
weak
33. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
developer intent
square brackets
dereference (dereferencing)
dispatch table
34. Same as class object. (second way to say it.)
procedures
readonly
factory object
comma-separated
35. Finding the method implementation to invoke in response to the message
init
double
Smalltalk
dynamic binding
36. Xcode sequence to convert non-ARC apps to ARC
designated initializer
Edit>Refactor>Convert to Objective-C ARC
null
id
37. 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.
Pointers
runtime
inheritance
@implementation
38. ____ provide a concise & elegant method for defining a discrete set of values
binary
pointers
Enumerations
polymorphism
39. Discovering the class of an object at runtime rather than at compile time.
memory leak
instance method
init
dynamic typing
40. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
delegates
inheritance
[receiver message];
procedures
41. C-style strings are stored in an array of _____
chars
cycles
long long
link time
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.
nonatomic
polymorphism
formal protocol
instance variable
43. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
subclass
dynamic typing
message
superclass
44. A variable that points to the memory address of another value
namespace
NSObject
pointer
Cocoa
45. All objects are created on the _____
heap
formal protocol
init
%
46. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
factory
value
instance
receiver
47. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
mutex
null
event
precedence
48. 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
abstract superclass
Unitary
structures
framework
49. Square bracket syntax for calling a method
Unsigned
nil
[receiver message];
class method
50. Objective-C is a _____ of the C language
superset
dispatch table
init
unitary