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 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
polymorphism
struct
assignment
pointer
2. A compiler feature that provides automated memory management
instance variable
ARC
compile time
cycles
3. 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.
inheritance
asynchronous message
%@
formal protocol
4. The process of setting or reading the value at an address pointed to by a pointer
floating-point
procedures
@interface
dereference (dereferencing)
5. 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.
dynamic allocation
weak
assignment
category
6. Any class that's one step below another class in the inheritance hierarchy.
receiver
subclass
Edit>Refactor>Convert to Objective-C ARC
object
7. Property attribute that synthesizes accessors that are not thread safe
method
nonatomic
cycles
class method
8. _____ operators take 2 operands
abstract class
null
synchronous message
Binary
9. When creating a class header file you begin with the _____ keyword and close with the @end keyword
procedures
@interface
abstract class
square brackets
10. 3 Common Float data types: float - _____ - CGFloat
instance
superset
double
inheritance hierarchy
11. Objective-C's protocols are really about communicating _____ _______
dynamic typing
class
class object
developer intent
12. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Protocols
class object
designated
static typing
13. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
cannot
inheritance hierarchy
value
14. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
link time
assign
mutex
memory leak
15. 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.
unitary
link time
polymorphism
adopt
16. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
floating-point
class
Signed
C operators
17. Symbol used to denote a placeholder in a format string
informal protocol
%
abstract superclass
precedence
18. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
nil
superset
@implementation
cycles
19. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
link time
receiver
polymorphism
Protocols
20. ____ provide a concise & elegant method for defining a discrete set of values
dangling pointer
designated initializer
fields
Enumerations
21. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
[receiver message];
square brackets
procedural programming language
readonly
22. a++; is an example of using a _____ operator
weak
unitary
-
floating-point
23. Property attribute that causes the setter to store a strong reference to the assigned value
strong
factory object
mutex
-
24. In a home building analogy a ____ is the blueprint and the object is the house
class
implementation
Protocols
%
25. Property attribute that synthesizes both a getter and setter for the property
Unitary
readwrite
dynamic allocation
pointer
26. A ____ _____ is where you forget to free up memory
encapsulation
memory leak
nil
properties
27. _____ 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'.
delegates
Encapsulation
NSObject
square brackets
28. Property attribute that synthesizes only a getter for the property
printf( )
Encapsulation
square brackets
readonly
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.
readonly
synchronous message
class
reference counting
30. _____ data types can be both positive and negative
designated
Signed
value
class method
31. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
structures
dynamic typing
Smalltalk
comma-separated
32. ______ data types are always zero or greate
remote object
Unsigned
copy
Encapsulation
33. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
instance variable
value
nonatomic
static typing
34. Objective-C is a _____ of the C language
object
weak
readonly
superset
35. _____ allow you to add new methods to existing classes
floating-point
Categories
Protocols
procedural programming language
36. A struct may contain multiple ____ consisting of different data types
fields
memory leak
object
readwrite
37. In a format string the place holder for an object is ______
object
9
%@
dynamic binding
38. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
class method
long long
null
doubles
39. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
AppKit
Signed
adopt
inheritance
40. ______ operators take a single operand
instance
message
Unitary
Protocols
41. 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.
id
remote object
Interface Builder
instance method
42. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
abstract class
class object
weak
informal protocol
43. This symbol denotes a method as being an instance method
distributed objects
message expression
[receiver message];
-
44. The most flexible C data type: ______
Smalltalk
struct
procedures
dynamic binding
45. Instance variables are optional in iOS if ________ are used
protocol
designated
properties
memory leak
46. C-style strings are stored in an array of _____
Categories
chars
framework
nil
47. Initializer method traditionally begin with the _____ prefix
init
Enumerations
instance method
struct
48. Any method that can be used by an instance of a class rather than by the class object.
instance
NSObject
instance method
abstract class
49. 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
conform
C operators
procedural programming language
distributed objects
50. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
category
asterisk (*)
strong
ampersand (&)