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. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
Interface Builder
binary
printf( )
2. 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
delegates
Edit>Refactor>Convert to Objective-C ARC
ARC
conform
3. ______ operators take a single operand
Unitary
Binary
dynamic typing
static typing
4. Same as class object. (second way to say it.)
factory object
id
-
ARC
5. Objective-C's protocols are really about communicating _____ _______
9
instance
developer intent
superset
6. In object-oriented programming the object that is sent a message.
pointers
receiver
procedural programming language
id
7. Finding the method implementation to invoke in response to the message
inheritance hierarchy
designated
dynamic allocation
dynamic binding
8. This symbol denotes a method as being an instance method
-
factory
comma-separated
formal protocol
9. 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.
abstract class
+
formal protocol
dispatch table
10. An object in another application - one that's a potential receiver for a remote message.
remote object
object
ARC
Pointers
11. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
ARC
implementation
memory leak
Protocols
12. A ____ _____ is where you forget to free up memory
memory leak
%
polymorphism
delegate
13. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
structures
designated
procedural programming language
adopt
14. 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.
method
inheritance hierarchy
delegate
binary
15. There are ____ fundamental building blocks in Objective-C
compile time
9
synchronous message
class method
16. a+b; is an example of using a _____ operator
encapsulation
message expression
binary
asynchronous message
17. Property attribute that causes the setter to store a strong reference to the assigned value
factory
strong
readwrite
ARC
18. 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.
[receiver message];
interface
class object
chars
19. 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.
weak
instance
dynamic allocation
precedence
20. 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.
runtime
double
instance variable
@interface
21. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
cannot
framework
inheritance
9
22. ______ data types are always zero or greate
Unsigned
attributes
cannot
Cocoa
23. _____ allow you to add new methods to existing classes
dispatch table
double
interface
Categories
24. 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.
AppKit
conform
link time
Encapsulation
25. _____ allow indirect access and modification of a variable's value.
Pointers
Protocols
Product>Profile>Leaks>Profile
abstract superclass
26. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
struct
dynamic allocation
floating-point
compile time
27. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
dispatch table
dynamic allocation
selector
designated
28. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
long long
implementation
dynamic binding
superset
29. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
Cocoa
zero
class method
instance
30. 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
designated initializer
ampersand (&)
memory leak
runtime
31. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
event
framework
dynamic binding
instance method
32. Objective-C objects should use strong or weak ______
attributes
floating-point
NSString
square brackets
33. 3 Common Float data types: float - _____ - CGFloat
double
static typing
+
floating-point
34. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
ampersand (&)
long long
instance variable
procedures
35. A class is said to do this when it declares that it implements all the methods in the protocol.
encapsulation
adopt
designated
@interface
36. A message sent from one application to an object in another application.
protocol
chars
class
remote message
37. Instance variables are optional in iOS if ________ are used
Cocoa
%
NSObject
properties
38. 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
properties
delegate
factory object
39. Property attribute that synthesizes both a getter and setter for the property
Pointers
readwrite
designated
inheritance hierarchy
40. Data types are divided into two main categories: integer and ______
floating-point
C operators
9
Cocoa
41. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
mutex
designated
Signed
42. Any method that can be used by an instance of a class rather than by the class object.
class
Product>Profile>Leaks>Profile
precedence
instance method
43. A class that's defined solely so that other classes can inherit from it. Programs don't use instances of this; they use only instances of its subclasses.
namespace
abstract class
implementation
heap
44. An architecture that facilitates communication between objects in different address spaces.
distributed objects
formal protocol
ARC
factory object
45. Property attribute where the setter stores the assigned value but does not perform any memory management.
class
static typing
mutex
assign
46. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
readonly
namespace
copy
printf( )
47. The process of setting or reading the value at an address pointed to by a pointer
procedural programming language
struct
dereference (dereferencing)
implementation
48. Placing a ____ before a normal variable name gives it's address
ampersand (&)
memory leak
structures
attributes
49. In object-oriented programming a procedure that can be executed by an object.
method
Signed
selector
factory
50. A set of method definitions that is segregated from the rest of the class definition.
precedence
category
namespace
nil