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. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
namespace
inheritance
category
assign
2. Property attribute that synthesizes accessors that are not thread safe
struct
Smalltalk
heap
nonatomic
3. There are ____ fundamental building blocks in Objective-C
nil
9
message
encapsulation
4. Any class that's one step below another class in the inheritance hierarchy.
doubles
Unsigned
subclass
pointers
5. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
method
inheritance hierarchy
init
6. Initializer method traditionally begin with the _____ prefix
+
init
readonly
Unitary
7. The first index in an array is valued at ____
method
fields
zero
instance
8. 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.
reference counting
synchronous message
asynchronous message
Smalltalk
9. In object-oriented programming the object that is sent a message.
Interface Builder
ARC
receiver
abstract superclass
10. 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
+
id
double
11. 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.
implementation
@implementation
interface
Interface Builder
12. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
C operators
framework
inheritance
dynamic typing
13. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
subclass
class method
static typing
14. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
structures
object
delegates
synchronous message
15. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
asynchronous message
floating-point
Interface Builder
16. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
framework
comma-separated
ARC
long long
17. A compiler feature that provides automated memory management
strong
dispatch table
ARC
runtime
18. Xcode sequence to convert non-ARC apps to ARC
method
Edit>Refactor>Convert to Objective-C ARC
Categories
remote message
19. Objective-C's protocols are really about communicating _____ _______
developer intent
assignment
method
pointer
20. 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.
@interface
class
selector
inheritance hierarchy
21. An object id with a value of 0.
subclass
reference counting
nil
class object
22. Property attribute that causes the setter to store a copy of the assigned value
copy
+
anonymous object
conform
23. Xcode sequence to examine an app for memory leaks or retain cycles
factory object
Product>Profile>Leaks>Profile
dangling pointer
struct
24. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
inheritance hierarchy
remote object
delegates
procedural programming language
25. _____ allow you to add new methods to existing classes
selector
dynamic typing
deprecated
Categories
26. In a home building analogy a ____ is the blueprint and the object is the house
Edit>Refactor>Convert to Objective-C ARC
superset
class
procedural programming language
27. 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.
inheritance
nil
class object
dispatch table
28. Property attribute that causes the setter to store a strong reference to the assigned value
ARC
message expression
strong
NSObject
29. _____ 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
binary
instance
asterisk (*)
30. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
Edit>Refactor>Convert to Objective-C ARC
@implementation
NSObject
value
31. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
abstract superclass
implementation
C operators
nil
32. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
structures
superclass
instance
class
33. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
structures
informal protocol
precedence
instance
34. 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.
id
subclass
fields
copy
35. A ____ _____ is where you forget to free up memory
memory leak
null
Pointers
structures
36. a++; is an example of using a _____ operator
unitary
runtime
superset
double
37. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
memory leak
Cocoa
cannot
NSObject
38. 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.
nil
interface
receiver
namespace
39. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
attributes
remote message
informal protocol
40. In the Objective-C language the declaration of a group of methods not associated with any particular class.
printf( )
protocol
inheritance
distributed objects
41. Symbol used to denote a placeholder in a format string
Categories
Signed
%
cycles
42. ARC is susceptible to retain _____
cycles
heap
Product>Profile>Leaks>Profile
%@
43. 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.
interface
encapsulation
memory leak
synchronous message
44. A variable that points to the memory address of another value
Edit>Refactor>Convert to Objective-C ARC
interface
pointer
deprecated
45. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
object
C operators
framework
46. The name of a method when it's used in a source-code message to an object or the unique identifier that replaces the name when the source code is compiled.
factory object
selector
struct
strong
47. 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
dispatch table
@implementation
assign
structures
48. ______ data types are always zero or greate
Unsigned
struct
[receiver message];
%
49. 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
asynchronous message
runtime
link time
50. ______ operators take a single operand
namespace
runtime
asterisk (*)
Unitary