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. Property attribute that synthesizes only a getter for the property
superset
NSObject
readonly
namespace
2. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
Binary
message expression
id
3. Discovering the class of an object at runtime rather than at compile time.
id
dynamic typing
link time
delegates
4. Property attribute that causes the setter to store a strong reference to the assigned value
@implementation
copy
namespace
strong
5. Property attribute that causes the setter to store a copy of the assigned value
copy
@implementation
reference counting
cannot
6. 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
dereference (dereferencing)
comma-separated
inheritance
7. 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.
anonymous object
weak
asynchronous message
remote message
8. 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.
class method
abstract class
runtime
value
9. The most flexible C data type: ______
designated
struct
remote object
static typing
10. Data types are divided into two main categories: integer and ______
floating-point
doubles
mutex
dispatch table
11. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
heap
precedence
NSObject
mutex
12. The root class in Objective-C
NSObject
value
asynchronous message
memory leak
13. Objective-C binds methods and arguments at _____ instead of compile time
dynamic allocation
polymorphism
runtime
ampersand (&)
14. Property attribute that synthesizes accessors that are not thread safe
printf( )
nonatomic
Smalltalk
readwrite
15. Symbol used to denote a placeholder in a format string
%
dispatch table
Protocols
+
16. In the Objective-C language the declaration of a group of methods not associated with any particular class.
protocol
ARC
delegate
value
17. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
cannot
procedural programming language
comma-separated
heap
18. The process of setting or reading the value at an address pointed to by a pointer
message expression
cycles
remote message
dereference (dereferencing)
19. 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.
superset
class
copy
object
20. Instance variables are optional in iOS if ________ are used
dynamic typing
Pointers
informal protocol
properties
21. This symbol denotes a method as being an instance method
copy
-
assignment
synchronous message
22. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
namespace
dispatch table
ARC
copy
23. _____ data types can be both positive and negative
implementation
class
protocol
Signed
24. The _____ function can be used to print a message to the console
square brackets
Smalltalk
printf( )
nil
25. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
square brackets
superclass
remote object
ampersand (&)
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.
%@
procedures
Edit>Refactor>Convert to Objective-C ARC
class object
27. There are ____ fundamental building blocks in Objective-C
9
-
event
dereference (dereferencing)
28. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
init
designated initializer
printf( )
29. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
9
remote message
procedures
C operators
30. Xcode sequence to convert non-ARC apps to ARC
designated
attributes
dynamic typing
Edit>Refactor>Convert to Objective-C ARC
31. In object-oriented programming the object that is sent a message.
nonatomic
receiver
-
Product>Profile>Leaks>Profile
32. All objects are created on the _____
copy
heap
zero
class method
33. 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.
superset
factory
Interface Builder
readonly
34. 3 Common Float data types: float - _____ - CGFloat
nonatomic
framework
dangling pointer
double
35. C-style strings always end with a ____ character
null
long long
dynamic binding
nil
36. ______ data types are always zero or greate
+
Unsigned
polymorphism
null
37. 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.
anonymous object
designated
instance variable
Edit>Refactor>Convert to Objective-C ARC
38. Xcode sequence to examine an app for memory leaks or retain cycles
receiver
heap
Product>Profile>Leaks>Profile
remote object
39. 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.
compile time
NSString
@interface
inheritance hierarchy
40. 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.
Binary
@implementation
dangling pointer
instance
41. In a format string the place holder for an object is ______
properties
AppKit
%@
readwrite
42. 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.
reference counting
adopt
Unsigned
namespace
43. Placing a ____ before a normal variable name gives it's address
Signed
compile time
assign
ampersand (&)
44. 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.
asterisk (*)
instance variable
runtime
nonatomic
45. A message sent from one application to an object in another application.
weak
long long
object
remote message
46. Any class that's one step below another class in the inheritance hierarchy.
floating-point
Enumerations
precedence
subclass
47. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
asynchronous message
class
class method
dispatch table
48. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
class
interface
fields
encapsulation
49. 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.
factory
Encapsulation
instance
encapsulation
50. ______ operators take a single operand
Unitary
adopt
null
instance variable