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. Placing a ____ before a normal variable name gives it's address
subclass
Pointers
adopt
ampersand (&)
2. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
Binary
dispatch table
chars
3. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
designated
compile time
superclass
subclass
4. ______ data types are always zero or greate
floating-point
runtime
printf( )
Unsigned
5. _____ operators take 2 operands
protocol
Encapsulation
Binary
cannot
6. 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
designated
reference counting
synchronous message
7. Xcode sequence to convert non-ARC apps to ARC
deprecated
ARC
pointers
Edit>Refactor>Convert to Objective-C ARC
8. ____ provide a concise & elegant method for defining a discrete set of values
protocol
Enumerations
Categories
properties
9. a++; is an example of using a _____ operator
attributes
unitary
printf( )
dynamic binding
10. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
compile time
framework
inheritance
implementation
11. 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.
mutex
runtime
instance
+
12. Objective-C's protocols are really about communicating _____ _______
C operators
developer intent
class
unitary
13. Same as class object. (first way to say it.)
receiver
factory object
factory
method
14. Square bracket syntax for calling a method
[receiver message];
zero
runtime
dynamic allocation
15. 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.
Smalltalk
class
namespace
Signed
16. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
asynchronous message
informal protocol
memory leak
instance variable
17. Objective-C binds methods and arguments at _____ instead of compile time
runtime
object
Edit>Refactor>Convert to Objective-C ARC
protocol
18. The most flexible C data type: ______
heap
struct
anonymous object
object
19. In a home building analogy a ____ is the blueprint and the object is the house
delegate
class
Binary
inheritance
20. A variable that points to the memory address of another value
assign
assignment
pointer
init
21. 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
dereference (dereferencing)
dispatch table
delegate
22. a+b; is an example of using a _____ operator
class
nil
dangling pointer
binary
23. In the Objective-C language the declaration of a group of methods not associated with any particular class.
adopt
protocol
dereference (dereferencing)
attributes
24. 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
instance
%@
conform
properties
25. _____ allow indirect access and modification of a variable's value.
cannot
doubles
Pointers
readwrite
26. Another name for a class that's defined solely so that other classes can inherit from it.
subclass
link time
abstract superclass
abstract class
27. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
instance variable
assignment
id
Smalltalk
28. Three main categories of more complicated data structures:_______ - arrays and structs
9
pointers
outlet
floating-point
29. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
encapsulation
procedures
attributes
assignment
30. To destroy an object set the variable that points to it to _____
nil
value
Pointers
instance method
31. Objective-C methods are called using ____ _____
id
init
class
square brackets
32. 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
cycles
Pointers
NSObject
33. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
adopt
C operators
instance method
floating-point
34. _____ 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'.
namespace
Encapsulation
static typing
Edit>Refactor>Convert to Objective-C ARC
35. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
id
dispatch table
factory
interface
36. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
square brackets
procedures
weak
Protocols
37. This symbol denotes a method as being an instance method
-
factory object
pointer
AppKit
38. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
message
Smalltalk
deprecated
formal protocol
39. In Objective-C floats are more commonly used than ______
doubles
receiver
asynchronous message
9
40. 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.
instance variable
Signed
-
zero
41. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
procedures
anonymous object
message
42. 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.
AppKit
@implementation
deprecated
Product>Profile>Leaks>Profile
43. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
dangling pointer
subclass
compile time
doubles
44. 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.
encapsulation
NSString
nonatomic
assignment
45. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
9
Enumerations
procedural programming language
selector
46. C-style strings are stored in an array of _____
chars
unitary
conform
null
47. When creating a class header file you begin with the _____ keyword and close with the @end keyword
synchronous message
@interface
receiver
struct
48. 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.
conform
Interface Builder
category
mutex
49. 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.
id
formal protocol
%@
deprecated
50. Initializer method traditionally begin with the _____ prefix
ARC
init
nonatomic
asterisk (*)