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 process of setting or reading the value at an address pointed to by a pointer
+
Pointers
nil
dereference (dereferencing)
2. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
runtime
value
Signed
unitary
3. Objective-C objects should use strong or weak ______
binary
Edit>Refactor>Convert to Objective-C ARC
attributes
message
4. Another name for a class that's defined solely so that other classes can inherit from it.
adopt
@interface
abstract superclass
factory object
5. 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.
object
id
struct
selector
6. Three main categories of more complicated data structures:_______ - arrays and structs
copy
binary
method
pointers
7. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
instance
Smalltalk
C operators
subclass
8. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
procedures
binary
nil
compile time
9. Property attribute where the setter stores the assigned value but does not perform any memory management.
%@
runtime
abstract superclass
assign
10. 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
superset
implementation
reference counting
11. Discovering the class of an object at runtime rather than at compile time.
Interface Builder
dynamic typing
pointer
%
12. 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).
outlet
runtime
message expression
9
13. 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
instance
factory
class method
14. _____ allow indirect access and modification of a variable's value.
Signed
properties
nil
Pointers
15. In the Objective-C language the declaration of a group of methods not associated with any particular class.
dynamic typing
pointer
dereference (dereferencing)
protocol
16. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
nil
Smalltalk
delegate
17. 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
polymorphism
chars
namespace
18. An object that acts on behalf of another object.
delegate
id
object
precedence
19. Objective-C binds methods and arguments at _____ instead of compile time
abstract class
compile time
runtime
event
20. Placing a ____ before a normal variable name gives it's address
synchronous message
ampersand (&)
delegates
runtime
21. a+b; is an example of using a _____ operator
static typing
link time
binary
reference counting
22. A set of method definitions that is segregated from the rest of the class definition.
comma-separated
superclass
remote message
category
23. 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.
dangling pointer
instance variable
precedence
Binary
24. To destroy an object set the variable that points to it to _____
instance
nil
abstract superclass
mutex
25. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
adopt
reference counting
remote object
procedures
26. 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
cycles
designated initializer
mutex
runtime
27. The _____ function can be used to print a message to the console
outlet
class
printf( )
reference counting
28. 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.
C operators
outlet
square brackets
factory object
29. An architecture that facilitates communication between objects in different address spaces.
Edit>Refactor>Convert to Objective-C ARC
distributed objects
[receiver message];
@implementation
30. ARC is susceptible to retain _____
@interface
assign
cycles
double
31. 3 Common Float data types: float - _____ - CGFloat
printf( )
encapsulation
copy
double
32. _____ allow you to add new methods to existing classes
factory object
Categories
cannot
asynchronous message
33. Finding the method implementation to invoke in response to the message
%
dynamic typing
dynamic binding
event
34. A variable that points to the memory address of another value
Binary
null
double
pointer
35. Initializer method traditionally begin with the _____ prefix
attributes
printf( )
init
readonly
36. The most flexible C data type: ______
struct
doubles
procedures
anonymous object
37. An object id with a value of 0.
nil
long long
printf( )
value
38. In object-oriented programming the object that is sent a message.
superclass
receiver
pointer
dispatch table
39. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
remote object
zero
copy
40. Property attribute that causes the setter to store a copy of the assigned value
copy
conform
memory leak
floating-point
41. Square bracket syntax for calling a method
static typing
delegates
[receiver message];
readonly
42. 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
null
assign
structures
message
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.
message
procedures
remote message
interface
44. When creating a class header file you begin with the _____ keyword and close with the @end keyword
precedence
factory
attributes
@interface
45. a++; is an example of using a _____ operator
C operators
unitary
nil
polymorphism
46. C-style strings are stored in an array of _____
chars
designated initializer
method
class object
47. 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.
superset
remote message
Product>Profile>Leaks>Profile
link time
48. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
instance
encapsulation
attributes
49. 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.
deprecated
@implementation
distributed objects
dynamic allocation
50. Same as class object. (first way to say it.)
runtime
designated initializer
factory
event