SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. C-style strings always end with a ____ character
strong
zero
null
Unitary
2. Any class that's one step below another class in the inheritance hierarchy.
dynamic typing
subclass
instance variable
delegates
3. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
instance variable
floating-point
Cocoa
Pointers
4. Same as class object. (second way to say it.)
instance variable
factory object
reference counting
asynchronous message
5. C-style strings are stored in an array of _____
chars
@interface
mutex
developer intent
6. This symbol denotes a method as being a class method
procedural programming language
runtime
+
instance variable
7. Initializer method traditionally begin with the _____ prefix
dangling pointer
attributes
Protocols
init
8. A method that can operate on class objects rather than instances of the class.
class method
%@
protocol
receiver
9. _____ operators take 2 operands
@implementation
Binary
chars
static typing
10. Objective-C binds methods and arguments at _____ instead of compile time
dynamic binding
instance variable
runtime
remote object
11. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
cannot
Cocoa
designated
category
12. A set of method definitions that is segregated from the rest of the class definition.
dispatch table
instance variable
category
structures
13. Instance variables are optional in iOS if ________ are used
dynamic typing
receiver
properties
cycles
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.
assignment
inheritance hierarchy
Interface Builder
instance method
15. To destroy an object set the variable that points to it to _____
heap
receiver
nil
runtime
16. Data types are divided into two main categories: integer and ______
square brackets
implementation
double
floating-point
17. 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.
ARC
mutex
designated initializer
instance
18. 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
C operators
memory leak
compile time
19. 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
remote object
mutex
framework
NSString
20. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
remote object
zero
nonatomic
21. Property attribute that synthesizes only a getter for the property
readonly
asynchronous message
assignment
class
22. 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
Cocoa
precedence
remote object
structures
23. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Cocoa
floating-point
compile time
static typing
24. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
delegates
Signed
link time
25. A protocol declared as a category usually as a category of the NSObject class.
@interface
implementation
informal protocol
double
26. 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.
class object
Protocols
comma-separated
encapsulation
27. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
static typing
selector
long long
procedures
28. Objective-C is a _____ of the C language
distributed objects
dynamic binding
superset
selector
29. In object-oriented programming the object that is sent a message.
doubles
strong
receiver
assign
30. The root class in Objective-C
NSObject
-
cannot
asterisk (*)
31. Discovering the class of an object at runtime rather than at compile time.
doubles
dynamic typing
chars
AppKit
32. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
Enumerations
runtime
comma-separated
assign
33. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
event
implementation
pointers
attributes
34. In a home building analogy a ____ is the blueprint and the object is the house
anonymous object
class
dangling pointer
dispatch table
35. Objective-C objects should use strong or weak ______
conform
attributes
value
abstract class
36. a+b; is an example of using a _____ operator
binary
null
inheritance
delegate
37. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
adopt
instance variable
square brackets
dispatch table
38. Any method that can be used by an instance of a class rather than by the class object.
instance method
printf( )
precedence
asterisk (*)
39. A class is said to do this when it declares that it implements all the methods in the protocol.
binary
NSObject
adopt
value
40. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
instance variable
id
nil
pointers
41. ______ data types are always zero or greate
readonly
subclass
floating-point
Unsigned
42. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
anonymous object
@interface
precedence
43. Property attribute that synthesizes accessors that are not thread safe
weak
nonatomic
Enumerations
method
44. 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.
formal protocol
memory leak
runtime
instance
45. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
pointer
square brackets
compile time
precedence
46. 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
long long
properties
reference counting
47. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
Signed
interface
instance
48. This symbol denotes a method as being an instance method
developer intent
Unsigned
runtime
-
49. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
attributes
formal protocol
designated initializer
mutex
50. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
procedural programming language
deprecated
inheritance hierarchy
C operators