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 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.
delegates
memory leak
abstract class
strong
2. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
mutex
compile time
inheritance hierarchy
3. A ____ _____ is where you forget to free up memory
Signed
memory leak
init
cycles
4. In a format string the place holder for an object is ______
asterisk (*)
%@
selector
pointers
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.
value
interface
instance
method
6. 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.
dynamic allocation
outlet
Interface Builder
Pointers
7. An object that acts on behalf of another object.
conform
delegate
dynamic allocation
receiver
8. 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.
NSString
anonymous object
namespace
strong
9. 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.
subclass
pointer
link time
[receiver message];
10. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
conform
class object
doubles
11. Data types are divided into two main categories: integer and ______
readonly
dangling pointer
floating-point
designated initializer
12. An architecture that facilitates communication between objects in different address spaces.
message expression
distributed objects
abstract superclass
ampersand (&)
13. 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.
object
%@
method
Encapsulation
14. This symbol denotes a method as being an instance method
runtime
delegates
Interface Builder
-
15. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
message expression
@implementation
copy
class
16. 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
readonly
implementation
designated initializer
delegates
17. A class is said to do this when it declares that it implements all the methods in the protocol.
zero
adopt
object
runtime
18. Objective-C's protocols are really about communicating _____ _______
developer intent
init
dereference (dereferencing)
Unitary
19. Placing a ____ before a normal variable name gives it's address
%
developer intent
ampersand (&)
dereference (dereferencing)
20. A method that can operate on class objects rather than instances of the class.
static typing
zero
class method
polymorphism
21. 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.
readonly
instance variable
object
Unsigned
22. A set of method definitions that is segregated from the rest of the class definition.
Categories
compile time
category
inheritance
23. To destroy an object set the variable that points to it to _____
nil
message
Protocols
framework
24. Objective-C binds methods and arguments at _____ instead of compile time
runtime
doubles
selector
class
25. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
remote message
inheritance
binary
method
26. A message sent from one application to an object in another application.
remote message
dynamic typing
Binary
memory leak
27. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
superclass
@implementation
cannot
procedures
28. 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.
Unitary
floating-point
cannot
formal protocol
29. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
Unsigned
Pointers
chars
30. An object of unknown class. Interface is published through protocol declaration.
ampersand (&)
Protocols
anonymous object
Cocoa
31. A struct may contain multiple ____ consisting of different data types
Protocols
[receiver message];
fields
category
32. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
printf( )
doubles
framework
copy
33. ______ data types are always zero or greate
class
Unsigned
dynamic typing
cycles
34. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
category
long long
Encapsulation
35. 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.
9
class method
class object
value
36. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
designated initializer
category
C operators
runtime
37. The first index in an array is valued at ____
pointer
zero
protocol
Encapsulation
38. A compiler feature that provides automated memory management
ampersand (&)
message
class
ARC
39. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
memory leak
delegates
Categories
Cocoa
40. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
Enumerations
Protocols
null
dispatch table
41. Xcode sequence to convert non-ARC apps to ARC
nil
NSString
Edit>Refactor>Convert to Objective-C ARC
pointer
42. 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.
9
selector
abstract superclass
properties
43. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
abstract class
Categories
mutex
class object
44. 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.
Cocoa
runtime
procedural programming language
dangling pointer
45. ARC is susceptible to retain _____
event
object
cycles
superclass
46. 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.
pointers
comma-separated
reference counting
adopt
47. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Interface Builder
strong
chars
event
48. a+b; is an example of using a _____ operator
precedence
developer intent
ARC
binary
49. This symbol denotes a method as being a class method
instance
+
9
subclass
50. In a home building analogy a ____ is the blueprint and the object is the house
class
cannot
Protocols
chars