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. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
Protocols
@interface
dangling pointer
2. Objective-C's protocols are really about communicating _____ _______
nil
asterisk (*)
delegates
developer intent
3. 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.
outlet
inheritance
class object
@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.
class object
dynamic binding
instance variable
instance
5. A variable that points to the memory address of another value
static typing
pointer
receiver
C operators
6. In object-oriented programming a procedure that can be executed by an object.
method
distributed objects
double
NSString
7. An object that acts on behalf of another object.
NSObject
[receiver message];
AppKit
delegate
8. 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.
delegates
value
runtime
assignment
9. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
factory
%
class
10. Objective-C methods are called using ____ _____
instance variable
square brackets
struct
subclass
11. The first index in an array is valued at ____
C operators
nonatomic
zero
copy
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).
+
designated
message expression
Binary
13. A ____ ____ is a situation where you free memory and then accidentally continue to use it
ampersand (&)
inheritance hierarchy
dangling pointer
remote object
14. Initializer method traditionally begin with the _____ prefix
nonatomic
Interface Builder
Encapsulation
init
15. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
category
interface
designated initializer
chars
16. 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
structures
remote message
@implementation
Interface Builder
17. _____ allow indirect access and modification of a variable's value.
dynamic typing
deprecated
Pointers
init
18. A struct may contain multiple ____ consisting of different data types
9
printf( )
fields
readonly
19. An object id with a value of 0.
printf( )
namespace
nil
anonymous object
20. Property attribute that causes the setter to store a copy of the assigned value
copy
struct
synchronous message
readwrite
21. A programming technique that hides the implementation of an operation from its users behind an abstract interface; allows the implementation to be updated or changed without impacting the users of the interface.
Interface Builder
Categories
dynamic allocation
encapsulation
22. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
assignment
Product>Profile>Leaks>Profile
%
23. C-style strings always end with a ____ character
protocol
asterisk (*)
null
properties
24. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
procedures
nil
Signed
25. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
Encapsulation
deprecated
compile time
remote object
26. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
remote object
protocol
designated initializer
27. Property attribute that synthesizes only a getter for the property
cycles
ampersand (&)
nil
readonly
28. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
[receiver message];
Signed
weak
encapsulation
29. a++; is an example of using a _____ operator
dangling pointer
dynamic binding
anonymous object
unitary
30. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
binary
printf( )
long long
event
31. 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.
[receiver message];
dynamic allocation
readonly
class method
32. Square bracket syntax for calling a method
procedural programming language
-
instance
[receiver message];
33. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
precedence
event
instance
static typing
34. In a home building analogy a ____ is the blueprint and the object is the house
dereference (dereferencing)
nil
class
conform
35. 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.
nil
ARC
inheritance
reference counting
36. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
anonymous object
polymorphism
class method
inheritance
37. 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
floating-point
%
static typing
38. A set of method definitions that is segregated from the rest of the class definition.
remote message
[receiver message];
category
floating-point
39. ARC is susceptible to retain _____
cycles
factory
conform
null
40. Property attribute where the setter stores the assigned value but does not perform any memory management.
Smalltalk
assign
cycles
printf( )
41. 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
fields
asterisk (*)
procedures
conform
42. 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
inheritance hierarchy
binary
polymorphism
43. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
framework
static typing
zero
superclass
44. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
receiver
chars
floating-point
45. 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
class object
designated initializer
interface
delegate
46. Three main categories of more complicated data structures:_______ - arrays and structs
AppKit
conform
structures
pointers
47. The most flexible C data type: ______
struct
dangling pointer
method
strong
48. 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.
NSString
pointer
printf( )
formal protocol
49. Any method that can be used by an instance of a class rather than by the class object.
instance method
factory
class object
Smalltalk
50. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
abstract class
designated initializer
inheritance