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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Protocols
+
message
nil
2. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
ampersand (&)
assignment
cannot
runtime
3. 3 Common Float data types: float - _____ - CGFloat
Smalltalk
reference counting
double
[receiver message];
4. There are ____ fundamental building blocks in Objective-C
procedures
outlet
9
Product>Profile>Leaks>Profile
5. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
heap
delegate
C operators
Binary
6. In a format string the place holder for an object is ______
value
%@
selector
factory object
7. 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.
id
memory leak
polymorphism
instance
8. Initializer method traditionally begin with the _____ prefix
nil
init
long long
readonly
9. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
message expression
Smalltalk
NSString
10. An architecture that facilitates communication between objects in different address spaces.
init
remote object
implementation
distributed objects
11. 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
strong
category
formal protocol
designated initializer
12. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
interface
Signed
synchronous message
13. Finding the method implementation to invoke in response to the message
dynamic binding
instance method
printf( )
remote message
14. Instance variables are optional in iOS if ________ are used
%
C operators
properties
ARC
15. An object that acts on behalf of another object.
inheritance
delegate
doubles
fields
16. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
copy
@implementation
polymorphism
adopt
17. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
square brackets
Smalltalk
message
factory
18. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
dangling pointer
procedures
Unitary
19. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
reference counting
readonly
null
event
20. Placing a ____ before a normal variable name gives it's address
attributes
nonatomic
ampersand (&)
message expression
21. An object of unknown class. Interface is published through protocol declaration.
anonymous object
implementation
assign
heap
22. 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.
Binary
Encapsulation
%
link time
23. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
+
Unitary
receiver
24. _____ allow you to add new methods to existing classes
floating-point
remote message
Categories
%@
25. In object-oriented programming the object that is sent a message.
static typing
runtime
receiver
cannot
26. 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.
dangling pointer
class
@implementation
id
27. A variable that points to the memory address of another value
Unsigned
pointer
copy
informal protocol
28. The _____ function can be used to print a message to the console
Pointers
@interface
printf( )
subclass
29. Same as class object. (first way to say it.)
formal protocol
Binary
adopt
factory
30. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
runtime
dangling pointer
link time
@interface
31. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
anonymous object
class method
runtime
32. 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.
@implementation
implementation
cannot
encapsulation
33. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
square brackets
framework
procedures
outlet
34. A ____ ____ is a situation where you free memory and then accidentally continue to use it
@implementation
dangling pointer
asterisk (*)
Unsigned
35. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
Cocoa
mutex
reference counting
36. A message sent from one application to an object in another application.
%
remote message
abstract superclass
pointers
37. A technique used in C-based languages where the operating system provides memory to a running application as it needs it instead of when it launches.
dynamic allocation
long long
class
conform
38. Symbol used to denote a placeholder in a format string
printf( )
namespace
developer intent
%
39. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
message expression
polymorphism
Categories
40. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
procedural programming language
comma-separated
Unitary
C operators
41. 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.
abstract class
dynamic allocation
message expression
inheritance hierarchy
42. This symbol denotes a method as being an instance method
instance
delegates
framework
-
43. ____ provide a concise & elegant method for defining a discrete set of values
Enumerations
Categories
id
receiver
44. Square bracket syntax for calling a method
double
namespace
reference counting
[receiver message];
45. a+b; is an example of using a _____ operator
binary
ampersand (&)
receiver
mutex
46. 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
fields
structures
dynamic allocation
Encapsulation
47. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
adopt
superclass
precedence
48. 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.
value
inheritance
factory
namespace
49. A method that can operate on class objects rather than instances of the class.
abstract class
class method
designated initializer
pointer
50. a++; is an example of using a _____ operator
delegate
precedence
unitary
interface