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. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
pointer
id
Unitary
delegates
2. 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.
encapsulation
runtime
reference counting
pointers
3. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
dangling pointer
%@
floating-point
mutex
4. 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
struct
dynamic allocation
developer intent
5. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
class object
inheritance
compile time
dynamic typing
6. This symbol denotes a method as being a class method
instance
dynamic typing
init
+
7. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
precedence
Interface Builder
designated
8. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
class
deprecated
pointers
link time
9. Property attribute that synthesizes only a getter for the property
category
procedures
readonly
formal protocol
10. C-style strings always end with a ____ character
null
Pointers
remote object
properties
11. 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
doubles
heap
structures
Protocols
12. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
category
nil
Protocols
Unsigned
13. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
deprecated
protocol
compile time
floating-point
14. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
distributed objects
asynchronous message
runtime
15. 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.
Binary
class object
Encapsulation
runtime
16. Objective-C binds methods and arguments at _____ instead of compile time
remote object
procedures
runtime
long long
17. Instance variables are optional in iOS if ________ are used
Pointers
Product>Profile>Leaks>Profile
procedural programming language
properties
18. A variable that points to the memory address of another value
delegates
pointer
null
distributed objects
19. ____ provide a concise & elegant method for defining a discrete set of values
properties
designated
Enumerations
encapsulation
20. Same as class object. (first way to say it.)
Product>Profile>Leaks>Profile
@interface
factory
protocol
21. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
class method
%@
dangling pointer
22. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
Encapsulation
Categories
abstract superclass
23. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
factory object
C operators
assignment
printf( )
24. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
NSString
Encapsulation
selector
interface
25. 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
binary
AppKit
encapsulation
26. _____ allow indirect access and modification of a variable's value.
asterisk (*)
Pointers
printf( )
[receiver message];
27. This symbol denotes a method as being an instance method
-
inheritance
dereference (dereferencing)
anonymous object
28. In object-oriented programming the object that is sent a message.
receiver
Protocols
Categories
class object
29. ______ data types are always zero or greate
strong
dangling pointer
Unsigned
link time
30. 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.
%
encapsulation
Interface Builder
delegate
31. 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
assign
value
reference counting
32. The process of setting or reading the value at an address pointed to by a pointer
ampersand (&)
dereference (dereferencing)
AppKit
struct
33. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
dispatch table
procedures
%
inheritance
34. Any method that can be used by an instance of a class rather than by the class object.
class method
-
instance method
unitary
35. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
memory leak
Cocoa
synchronous message
Signed
36. _____ allow you to add new methods to existing classes
Categories
floating-point
compile time
square brackets
37. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
dynamic allocation
assignment
cycles
38. Any class that's one step below another class in the inheritance hierarchy.
subclass
%@
dispatch table
dynamic typing
39. 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).
cannot
implementation
Pointers
framework
40. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
floating-point
event
namespace
%@
41. In a home building analogy a ____ is the blueprint and the object is the house
distributed objects
class
double
dynamic binding
42. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
namespace
remote message
designated initializer
Encapsulation
43. The _____ function can be used to print a message to the console
ampersand (&)
printf( )
subclass
instance
44. A set of method definitions that is segregated from the rest of the class definition.
synchronous message
category
attributes
adopt
45. The root class in Objective-C
object
polymorphism
link time
NSObject
46. Finding the method implementation to invoke in response to the message
Unitary
dynamic binding
link time
superset
47. A method that can operate on class objects rather than instances of the class.
Pointers
value
attributes
class method
48. In Objective-C floats are more commonly used than ______
doubles
attributes
static typing
-
49. Data types are divided into two main categories: integer and ______
precedence
dynamic allocation
floating-point
Protocols
50. ______ operators take a single operand
init
class
Unitary
remote object