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. _____ data types can be both positive and negative
NSString
receiver
null
Signed
2. Three main categories of more complicated data structures:_______ - arrays and structs
double
pointers
dereference (dereferencing)
%
3. 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.
selector
readonly
Interface Builder
Encapsulation
4. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
cycles
ampersand (&)
Protocols
5. A ____ _____ is where you forget to free up memory
readonly
printf( )
memory leak
pointer
6. 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.
designated
conform
instance
instance method
7. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
message expression
Smalltalk
attributes
ARC
8. _____ 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'.
Edit>Refactor>Convert to Objective-C ARC
framework
Encapsulation
instance
9. A compiler feature that provides automated memory management
remote message
ARC
implementation
receiver
10. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
Protocols
object
asterisk (*)
11. In object-oriented programming the object that is sent a message.
fields
inheritance
-
receiver
12. In Objective-C floats are more commonly used than ______
informal protocol
doubles
floating-point
dynamic allocation
13. 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.
Encapsulation
class object
polymorphism
assignment
14. 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.
Unitary
cycles
selector
static typing
15. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
fields
procedural programming language
superclass
remote object
16. Objective-C objects should use strong or weak ______
binary
attributes
dynamic binding
strong
17. 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.
link time
mutex
@implementation
null
18. Finding the method implementation to invoke in response to the message
nil
dynamic binding
Enumerations
chars
19. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
Unitary
namespace
@interface
20. 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.
double
formal protocol
copy
nonatomic
21. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
developer intent
designated
instance
class
22. Any method that can be used by an instance of a class rather than by the class object.
class method
instance method
runtime
reference counting
23. The process of setting or reading the value at an address pointed to by a pointer
C operators
framework
dereference (dereferencing)
long long
24. Objective-C is a _____ of the C language
Cocoa
Edit>Refactor>Convert to Objective-C ARC
superset
copy
25. Square bracket syntax for calling a method
dynamic typing
[receiver message];
precedence
class
26. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
mutex
static typing
attributes
remote message
27. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
encapsulation
chars
inheritance
28. The _____ function can be used to print a message to the console
Smalltalk
printf( )
zero
null
29. This symbol denotes a method as being an instance method
-
procedures
delegates
ARC
30. Another name for a class that's defined solely so that other classes can inherit from it.
remote message
value
@interface
abstract superclass
31. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
pointers
formal protocol
C operators
delegates
32. A message sent from one application to an object in another application.
remote message
Cocoa
inheritance hierarchy
conform
33. ____ provide a concise & elegant method for defining a discrete set of values
dispatch table
zero
@implementation
Enumerations
34. This symbol denotes a method as being a class method
Encapsulation
heap
pointers
+
35. 3 Common Float data types: float - _____ - CGFloat
null
@implementation
Unsigned
double
36. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
instance method
subclass
instance variable
comma-separated
37. The root class in Objective-C
NSObject
Product>Profile>Leaks>Profile
Cocoa
null
38. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
copy
class method
receiver
C operators
39. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
designated initializer
procedural programming language
polymorphism
inheritance
40. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
Unsigned
abstract superclass
dynamic allocation
41. _____ operators take 2 operands
adopt
message expression
Binary
asynchronous message
42. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
static typing
zero
init
NSString
43. Data types are divided into two main categories: integer and ______
conform
runtime
anonymous object
floating-point
44. Objective-C's protocols are really about communicating _____ _______
developer intent
floating-point
asterisk (*)
doubles
45. _____ allow you to add new methods to existing classes
NSString
category
NSObject
Categories
46. In a home building analogy a ____ is the blueprint and the object is the house
readwrite
class
instance method
anonymous object
47. ______ operators take a single operand
Unitary
Enumerations
anonymous object
selector
48. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
factory object
interface
Binary
assignment
49. 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
synchronous message
class object
nonatomic
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
outlet
conform
assignment
dereference (dereferencing)