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. Instance variables are optional in iOS if ________ are used
conform
properties
abstract class
double
2. 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
abstract class
null
designated
3. Same as class object. (first way to say it.)
nonatomic
factory
remote object
assignment
4. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
interface
%
mutex
5. The first index in an array is valued at ____
zero
class
Cocoa
long long
6. Property attribute that synthesizes both a getter and setter for the property
method
zero
readwrite
synchronous message
7. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
-
attributes
class
message expression
8. 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.
weak
C operators
superset
instance variable
9. 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).
instance method
message expression
delegates
doubles
10. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
superclass
encapsulation
dereference (dereferencing)
11. 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.
null
id
distributed objects
dynamic allocation
12. Data types are divided into two main categories: integer and ______
Binary
attributes
dangling pointer
floating-point
13. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
struct
long long
weak
chars
14. Discovering the class of an object at runtime rather than at compile time.
category
C operators
dynamic typing
NSString
15. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
polymorphism
strong
instance method
precedence
16. This symbol denotes a method as being a class method
readwrite
+
asterisk (*)
cycles
17. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
receiver
ampersand (&)
assign
18. In the Objective-C language the declaration of a group of methods not associated with any particular class.
cannot
remote message
protocol
class method
19. _____ 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'.
Encapsulation
asynchronous message
dereference (dereferencing)
fields
20. Property attribute that causes the setter to store a strong reference to the assigned value
Protocols
strong
+
Unsigned
21. Objective-C methods are called using ____ _____
+
dynamic binding
square brackets
properties
22. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
message
distributed objects
informal protocol
framework
23. A set of method definitions that is segregated from the rest of the class definition.
instance
abstract class
category
@interface
24. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
framework
asterisk (*)
inheritance
%@
25. _____ operators take 2 operands
static typing
Binary
NSObject
Enumerations
26. a+b; is an example of using a _____ operator
dynamic allocation
Pointers
binary
object
27. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
superset
message
receiver
properties
28. _____ allow indirect access and modification of a variable's value.
ampersand (&)
category
event
Pointers
29. C-style strings always end with a ____ character
class method
null
NSObject
static typing
30. Square bracket syntax for calling a method
formal protocol
[receiver message];
pointer
link time
31. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
attributes
comma-separated
subclass
nonatomic
32. A ____ _____ is where you forget to free up memory
memory leak
asynchronous message
Protocols
double
33. An object id with a value of 0.
nil
heap
outlet
Encapsulation
34. All objects are created on the _____
formal protocol
heap
%
double
35. 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.
procedural programming language
formal protocol
memory leak
synchronous message
36. This symbol denotes a method as being an instance method
-
chars
copy
%@
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
double
remote message
Unitary
38. A variable that points to the memory address of another value
instance
message
pointer
method
39. 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.
Interface Builder
nonatomic
instance method
namespace
40. In Objective-C floats are more commonly used than ______
class method
doubles
compile time
polymorphism
41. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
remote object
%
dangling pointer
42. 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
outlet
+
43. The process of setting or reading the value at an address pointed to by a pointer
%@
object
encapsulation
dereference (dereferencing)
44. A protocol declared as a category usually as a category of the NSObject class.
procedures
informal protocol
Unsigned
Pointers
45. Any method that can be used by an instance of a class rather than by the class object.
dispatch table
developer intent
id
instance method
46. A class is said to do this when it declares that it implements all the methods in the protocol.
properties
factory
instance
adopt
47. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
value
runtime
Smalltalk
adopt
48. Symbol used to denote a placeholder in a format string
instance
method
%
precedence
49. An object in another application - one that's a potential receiver for a remote message.
remote object
procedural programming language
link time
remote message
50. _____ data types can be both positive and negative
message expression
memory leak
Signed
null