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
precedence
fields
assignment
class
2. An architecture that facilitates communication between objects in different address spaces.
synchronous message
procedures
value
distributed objects
3. Any class that's one step below another class in the inheritance hierarchy.
subclass
method
protocol
Categories
4. A struct may contain multiple ____ consisting of different data types
Protocols
distributed objects
%
fields
5. 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
dangling pointer
memory leak
designated initializer
message
6. _____ operators take 2 operands
Encapsulation
Enumerations
Protocols
Binary
7. a++; is an example of using a _____ operator
category
copy
unitary
delegate
8. Objective-C binds methods and arguments at _____ instead of compile time
instance
runtime
nil
interface
9. Xcode sequence to examine an app for memory leaks or retain cycles
object
implementation
@interface
Product>Profile>Leaks>Profile
10. 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.
delegates
instance variable
outlet
framework
11. _____ allow indirect access and modification of a variable's value.
deprecated
Pointers
printf( )
+
12. C-style strings are stored in an array of _____
chars
formal protocol
message
Enumerations
13. a+b; is an example of using a _____ operator
Interface Builder
binary
polymorphism
readwrite
14. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
C operators
instance method
distributed objects
15. 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.
class
runtime
formal protocol
assign
16. Symbol used to denote a placeholder in a format string
asterisk (*)
%
message
factory
17. ____ provide a concise & elegant method for defining a discrete set of values
receiver
Enumerations
structures
link time
18. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
reference counting
nonatomic
dispatch table
fields
19. In object-oriented programming the object that is sent a message.
+
receiver
instance
conform
20. A set of method definitions that is segregated from the rest of the class definition.
ampersand (&)
method
weak
category
21. Property attribute that synthesizes accessors that are not thread safe
nonatomic
runtime
Edit>Refactor>Convert to Objective-C ARC
Interface Builder
22. The most flexible C data type: ______
developer intent
class
id
struct
23. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dynamic binding
procedures
abstract class
dangling pointer
24. 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.
instance method
id
event
Categories
25. A protocol declared as a category usually as a category of the NSObject class.
factory
dynamic allocation
weak
informal protocol
26. To destroy an object set the variable that points to it to _____
category
nil
formal protocol
Unitary
27. 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.
conform
printf( )
outlet
delegate
28. 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.
pointer
inheritance hierarchy
structures
abstract superclass
29. 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.
cycles
implementation
link time
instance
30. A compiler feature that provides automated memory management
nil
ARC
-
floating-point
31. An object that acts on behalf of another object.
delegate
id
AppKit
init
32. _____ 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'.
comma-separated
compile time
Encapsulation
instance method
33. In object-oriented programming a procedure that can be executed by an object.
event
method
remote object
link time
34. Property attribute that causes the setter to store a copy of the assigned value
polymorphism
copy
Smalltalk
Unsigned
35. 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.
instance method
floating-point
factory object
dynamic allocation
36. ______ data types are always zero or greate
@implementation
fields
Unsigned
Enumerations
37. The root class in Objective-C
NSObject
superclass
floating-point
@implementation
38. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
message expression
%
delegates
39. When creating a class header file you begin with the _____ keyword and close with the @end keyword
formal protocol
ampersand (&)
assignment
@interface
40. Objective-C methods are called using ____ _____
inheritance
instance
square brackets
runtime
41. Property attribute where the setter stores the assigned value but does not perform any memory management.
value
asynchronous message
assign
selector
42. Xcode sequence to convert non-ARC apps to ARC
binary
double
Edit>Refactor>Convert to Objective-C ARC
nil
43. 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.
implementation
anonymous object
link time
Interface Builder
44. ______ operators take a single operand
dispatch table
Unitary
Signed
%
45. Objective-C objects should use strong or weak ______
instance
Unitary
attributes
procedural programming language
46. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
cannot
@implementation
precedence
47. 3 Common Float data types: float - _____ - CGFloat
class
pointer
id
double
48. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
long long
binary
outlet
49. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
object
receiver
id
50. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
chars
category
factory