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. 3 Common Float data types: float - _____ - CGFloat
dispatch table
doubles
NSObject
double
2. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
cycles
Edit>Refactor>Convert to Objective-C ARC
dynamic typing
static typing
3. _____ data types can be both positive and negative
reference counting
Signed
dereference (dereferencing)
Cocoa
4. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
class
null
@implementation
encapsulation
5. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
dynamic binding
procedures
fields
dynamic allocation
6. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
Signed
ARC
superset
7. A class is said to do this when it declares that it implements all the methods in the protocol.
factory
%@
adopt
Interface Builder
8. Objective-C objects should use strong or weak ______
receiver
dynamic binding
Enumerations
attributes
9. ______ data types are always zero or greate
%@
Unsigned
strong
link time
10. C-style strings are stored in an array of _____
chars
selector
abstract class
floating-point
11. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
null
Encapsulation
dispatch table
class
12. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
adopt
class
square brackets
event
13. Property attribute that causes the setter to store a strong reference to the assigned value
asynchronous message
runtime
+
strong
14. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
init
procedural programming language
link time
NSObject
15. A variable that points to the memory address of another value
init
cannot
pointer
readonly
16. Xcode sequence to examine an app for memory leaks or retain cycles
memory leak
id
procedures
Product>Profile>Leaks>Profile
17. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
pointer
subclass
Cocoa
delegate
18. A Cocoa framework that implements an application's user interface; provides a basic program structure for applications that draw on the screen and respond to events.
%@
AppKit
binary
asynchronous message
19. 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
reference counting
structures
pointers
remote message
20. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
properties
instance
abstract class
21. _____ allow you to add new methods to existing classes
Categories
dynamic binding
null
Encapsulation
22. Any class that's one step below another class in the inheritance hierarchy.
static typing
subclass
dereference (dereferencing)
outlet
23. 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.
anonymous object
unitary
id
strong
24. Objective-C binds methods and arguments at _____ instead of compile time
NSString
memory leak
runtime
fields
25. C-style strings always end with a ____ character
floating-point
null
compile time
category
26. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
abstract class
assignment
cannot
factory
27. 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.
doubles
Smalltalk
formal protocol
fields
28. a++; is an example of using a _____ operator
class object
unitary
heap
Interface Builder
29. 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
method
synchronous message
cycles
nonatomic
30. 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
null
pointer
compile time
31. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
distributed objects
runtime
procedural programming language
32. In a format string the place holder for an object is ______
superset
%@
message
memory leak
33. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
superclass
receiver
value
class
34. ARC is susceptible to retain _____
message expression
cycles
assign
%
35. A method that can operate on class objects rather than instances of the class.
class method
message expression
anonymous object
factory object
36. Square bracket syntax for calling a method
Edit>Refactor>Convert to Objective-C ARC
[receiver message];
framework
implementation
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
Unsigned
value
synchronous message
38. Objective-C's protocols are really about communicating _____ _______
implementation
C operators
developer intent
NSObject
39. The most flexible C data type: ______
-
struct
nil
adopt
40. There are ____ fundamental building blocks in Objective-C
object
9
Signed
cycles
41. Property attribute that synthesizes only a getter for the property
static typing
outlet
readonly
AppKit
42. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
cycles
9
@implementation
43. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
anonymous object
designated
delegates
dynamic allocation
44. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
ARC
receiver
square brackets
45. 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
selector
remote message
[receiver message];
46. An object in another application - one that's a potential receiver for a remote message.
Cocoa
dangling pointer
comma-separated
remote object
47. In Objective-C floats are more commonly used than ______
designated
unitary
developer intent
doubles
48. 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.
unitary
Protocols
ampersand (&)
abstract class
49. Objective-C is a _____ of the C language
superset
asynchronous message
Encapsulation
class method
50. 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.
class object
readonly
nil
procedural programming language