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. To destroy an object set the variable that points to it to _____
encapsulation
nil
interface
procedural programming language
2. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
ampersand (&)
pointers
dynamic binding
designated
3. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
cannot
doubles
delegate
4. ______ operators take a single operand
Enumerations
floating-point
Unitary
cycles
5. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
null
framework
static typing
delegates
6. Objective-C methods are called using ____ _____
static typing
floating-point
Encapsulation
square brackets
7. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
@interface
dispatch table
Cocoa
instance
8. 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.
Interface Builder
pointers
dynamic allocation
category
9. 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.
+
instance variable
dangling pointer
subclass
10. 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.
runtime
Product>Profile>Leaks>Profile
unitary
ARC
11. Finding the method implementation to invoke in response to the message
dynamic binding
zero
dynamic allocation
Binary
12. Objective-C is a _____ of the C language
runtime
message
null
superset
13. Property attribute where the setter stores the assigned value but does not perform any memory management.
anonymous object
assign
Smalltalk
deprecated
14. ARC is susceptible to retain _____
Smalltalk
interface
readonly
cycles
15. In a home building analogy a ____ is the blueprint and the object is the house
class
cycles
Smalltalk
ARC
16. 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.
class
inheritance hierarchy
%@
superclass
17. The first index in an array is valued at ____
delegate
runtime
zero
assignment
18. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
class
nil
value
distributed objects
19. 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).
implementation
conform
object
distributed objects
20. 3 Common Float data types: float - _____ - CGFloat
chars
factory
double
+
21. An architecture that facilitates communication between objects in different address spaces.
cycles
static typing
id
distributed objects
22. 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.
anonymous object
pointer
selector
class method
23. The root class in Objective-C
long long
NSObject
message
memory leak
24. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
delegates
Signed
Smalltalk
value
25. _____ allow indirect access and modification of a variable's value.
synchronous message
Pointers
protocol
copy
26. There are ____ fundamental building blocks in Objective-C
9
copy
%@
developer intent
27. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
runtime
Protocols
class
long long
28. Another name for a class that's defined solely so that other classes can inherit from it.
delegate
class object
dereference (dereferencing)
abstract superclass
29. _____ data types can be both positive and negative
NSString
long long
floating-point
Signed
30. Data types are divided into two main categories: integer and ______
floating-point
NSString
factory object
copy
31. Same as class object. (first way to say it.)
abstract class
fields
nil
factory
32. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
cycles
event
compile time
superclass
33. _____ 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'.
asynchronous message
dynamic allocation
Encapsulation
ampersand (&)
34. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
null
floating-point
compile time
35. 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.
Edit>Refactor>Convert to Objective-C ARC
outlet
abstract class
inheritance
36. 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.
ampersand (&)
floating-point
namespace
ARC
37. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
pointer
C operators
category
link time
38. The most flexible C data type: ______
Pointers
Unsigned
superset
struct
39. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
outlet
subclass
dispatch table
40. Objective-C's protocols are really about communicating _____ _______
properties
developer intent
floating-point
designated
41. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
inheritance
binary
attributes
42. 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.
protocol
selector
object
deprecated
43. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
instance
strong
procedural programming language
-
44. A method that can operate on class objects rather than instances of the class.
nil
class method
delegates
Cocoa
45. C-style strings always end with a ____ character
adopt
null
square brackets
class
46. 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.
floating-point
instance
conform
link time
47. A protocol declared as a category usually as a category of the NSObject class.
readwrite
chars
abstract class
informal protocol
48. C-style strings are stored in an array of _____
structures
chars
dereference (dereferencing)
formal protocol
49. A compiler feature that provides automated memory management
inheritance
dynamic binding
@implementation
ARC
50. 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
pointer
abstract class
delegate
conform