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. Objective-C methods are called using ____ _____
square brackets
dereference (dereferencing)
object
dynamic binding
2. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
square brackets
delegate
runtime
3. 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.
structures
dispatch table
heap
id
4. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Signed
Edit>Refactor>Convert to Objective-C ARC
asterisk (*)
superclass
5. 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.
encapsulation
assignment
abstract class
Unsigned
6. There are ____ fundamental building blocks in Objective-C
9
zero
AppKit
double
7. A ____ ____ is a situation where you free memory and then accidentally continue to use it
Unsigned
readwrite
dangling pointer
assignment
8. 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).
readonly
floating-point
message expression
pointer
9. A message sent from one application to an object in another application.
+
instance method
object
remote message
10. Objective-C's protocols are really about communicating _____ _______
nonatomic
Pointers
developer intent
namespace
11. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
message expression
attributes
value
deprecated
12. Data types are divided into two main categories: integer and ______
class
floating-point
factory
dynamic binding
13. Objective-C binds methods and arguments at _____ instead of compile time
runtime
-
comma-separated
chars
14. a+b; is an example of using a _____ operator
Interface Builder
struct
outlet
binary
15. In Objective-C floats are more commonly used than ______
doubles
readonly
id
cycles
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.
structures
asynchronous message
long long
pointer
17. The process of setting or reading the value at an address pointed to by a pointer
double
formal protocol
abstract class
dereference (dereferencing)
18. Another name for a class that's defined solely so that other classes can inherit from it.
class
remote object
cannot
abstract superclass
19. Three main categories of more complicated data structures:_______ - arrays and structs
Unitary
pointers
message expression
link time
20. ______ data types are always zero or greate
Unsigned
Enumerations
NSObject
dispatch table
21. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
Edit>Refactor>Convert to Objective-C ARC
nonatomic
[receiver message];
22. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
init
Protocols
dangling pointer
23. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
instance method
class object
delegates
Smalltalk
24. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
Smalltalk
zero
reference counting
deprecated
25. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
struct
encapsulation
event
dynamic binding
26. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
asterisk (*)
C operators
ARC
message
27. Property attribute that synthesizes both a getter and setter for the property
attributes
nil
readwrite
-
28. In the Objective-C language the declaration of a group of methods not associated with any particular class.
memory leak
informal protocol
protocol
value
29. Symbol used to denote a placeholder in a format string
dynamic typing
%
+
Edit>Refactor>Convert to Objective-C ARC
30. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
nil
delegates
compile time
abstract class
31. A struct may contain multiple ____ consisting of different data types
conform
Unsigned
class object
fields
32. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
cannot
@implementation
ampersand (&)
long long
33. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
structures
inheritance hierarchy
polymorphism
category
34. To destroy an object set the variable that points to it to _____
nil
class
strong
pointers
35. Property attribute that causes the setter to store a strong reference to the assigned value
properties
dangling pointer
strong
class object
36. ARC is susceptible to retain _____
conform
long long
cycles
[receiver message];
37. 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.
cycles
Interface Builder
structures
memory leak
38. A set of method definitions that is segregated from the rest of the class definition.
category
Enumerations
cannot
%@
39. A compiler feature that provides automated memory management
memory leak
ARC
dynamic typing
assign
40. Property attribute that synthesizes only a getter for the property
dynamic binding
runtime
readonly
abstract superclass
41. This symbol denotes a method as being an instance method
class
superset
-
+
42. ____ provide a concise & elegant method for defining a discrete set of values
inheritance hierarchy
Enumerations
Smalltalk
square brackets
43. 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.
link time
object
delegates
assignment
44. _____ allow you to add new methods to existing classes
Categories
strong
outlet
distributed objects
45. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
polymorphism
conform
C operators
46. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
polymorphism
interface
anonymous object
47. A ____ _____ is where you forget to free up memory
static typing
square brackets
readonly
memory leak
48. Instance variables are optional in iOS if ________ are used
remote object
properties
dynamic typing
Protocols
49. Finding the method implementation to invoke in response to the message
%@
NSObject
mutex
dynamic binding
50. 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
instance
id
structures
attributes