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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
remote message
anonymous object
@interface
2. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
nil
+
cannot
asterisk (*)
3. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
Signed
event
@implementation
4. 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.
cannot
assign
class method
instance variable
5. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
remote message
Pointers
factory object
dispatch table
6. An object in another application - one that's a potential receiver for a remote message.
comma-separated
remote object
precedence
outlet
7. Three main categories of more complicated data structures:_______ - arrays and structs
Enumerations
pointer
pointers
@interface
8. In a format string the place holder for an object is ______
dynamic binding
%@
Signed
conform
9. _____ 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'.
9
superset
Encapsulation
superclass
10. _____ allow indirect access and modification of a variable's value.
Pointers
superset
developer intent
procedural programming language
11. An object that acts on behalf of another object.
NSObject
strong
delegate
inheritance
12. C-style strings always end with a ____ character
delegates
printf( )
null
dispatch table
13. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
dynamic binding
comma-separated
Smalltalk
Product>Profile>Leaks>Profile
14. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
chars
Smalltalk
subclass
assignment
15. 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.
encapsulation
method
nonatomic
id
16. 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.
mutex
printf( )
double
reference counting
17. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
namespace
Product>Profile>Leaks>Profile
event
reference counting
18. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
ampersand (&)
Categories
compile time
method
19. In the Objective-C language the declaration of a group of methods not associated with any particular class.
dynamic binding
cannot
static typing
protocol
20. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
ampersand (&)
factory object
delegates
message
21. a++; is an example of using a _____ operator
unitary
Pointers
id
message
22. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
Pointers
dereference (dereferencing)
runtime
23. There are ____ fundamental building blocks in Objective-C
mutex
class method
9
class
24. ____ provide a concise & elegant method for defining a discrete set of values
zero
Enumerations
Smalltalk
Edit>Refactor>Convert to Objective-C ARC
25. Xcode sequence to convert non-ARC apps to ARC
abstract superclass
class
Edit>Refactor>Convert to Objective-C ARC
@implementation
26. 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.
distributed objects
inheritance hierarchy
nil
factory object
27. ______ data types are always zero or greate
id
cycles
9
Unsigned
28. Data types are divided into two main categories: integer and ______
procedures
floating-point
attributes
[receiver message];
29. A variable that points to the memory address of another value
pointer
anonymous object
category
conform
30. Initializer method traditionally begin with the _____ prefix
init
NSObject
strong
namespace
31. Finding the method implementation to invoke in response to the message
Interface Builder
class object
object
dynamic binding
32. A compiler feature that provides automated memory management
ARC
abstract superclass
framework
receiver
33. 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.
attributes
object
chars
developer intent
34. 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
+
pointer
designated initializer
unitary
35. 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.
NSObject
reference counting
floating-point
AppKit
36. A struct may contain multiple ____ consisting of different data types
@interface
class object
delegate
fields
37. 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.
Enumerations
class object
chars
Signed
38. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
nil
polymorphism
instance variable
attributes
39. In Objective-C floats are more commonly used than ______
message
double
strong
doubles
40. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
assignment
static typing
instance
41. 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
asynchronous message
superset
structures
Signed
42. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
message expression
precedence
outlet
zero
43. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
nonatomic
interface
distributed objects
cycles
44. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
delegates
runtime
assign
45. 3 Common Float data types: float - _____ - CGFloat
printf( )
delegates
double
outlet
46. To destroy an object set the variable that points to it to _____
message
nil
informal protocol
chars
47. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
object
cycles
method
48. All objects are created on the _____
init
heap
comma-separated
Product>Profile>Leaks>Profile
49. _____ operators take 2 operands
Binary
@interface
[receiver message];
runtime
50. An architecture that facilitates communication between objects in different address spaces.
distributed objects
inheritance hierarchy
Cocoa
attributes