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 a procedure that can be executed by an object.
Binary
double
method
nil
2. ARC is susceptible to retain _____
cycles
framework
event
nonatomic
3. When creating a class header file you begin with the _____ keyword and close with the @end keyword
dynamic typing
Protocols
@interface
Signed
4. 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.
interface
Pointers
instance variable
instance
5. Same as class object. (second way to say it.)
factory object
Pointers
procedural programming language
memory leak
6. Xcode sequence to examine an app for memory leaks or retain cycles
assignment
Product>Profile>Leaks>Profile
NSString
inheritance
7. Same as class object. (first way to say it.)
factory
receiver
framework
asynchronous message
8. All objects are created on the _____
heap
reference counting
Signed
instance variable
9. 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.
Encapsulation
inheritance hierarchy
superclass
anonymous object
10. 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.
selector
runtime
cannot
+
11. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
superclass
dispatch table
interface
weak
12. 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.
properties
class method
long long
class object
13. 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.
procedures
object
instance variable
ARC
14. In object-oriented programming the object that is sent a message.
factory
receiver
@interface
superset
15. 3 Common Float data types: float - _____ - CGFloat
binary
formal protocol
nil
double
16. 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
structures
nil
Protocols
interface
17. _____ operators take 2 operands
message expression
method
Binary
floating-point
18. Property attribute that synthesizes both a getter and setter for the property
cycles
structures
readwrite
assign
19. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
init
nil
Encapsulation
20. 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.
method
instance method
namespace
binary
21. 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.
@interface
null
method
dynamic allocation
22. Objective-C methods are called using ____ _____
procedures
square brackets
readonly
method
23. a++; is an example of using a _____ operator
deprecated
unitary
NSObject
class
24. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Cocoa
strong
framework
cycles
25. _____ 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'.
Product>Profile>Leaks>Profile
subclass
Encapsulation
[receiver message];
26. A message sent from one application to an object in another application.
memory leak
distributed objects
class
remote message
27. C-style strings always end with a ____ character
binary
method
null
runtime
28. Property attribute that synthesizes only a getter for the property
protocol
struct
NSObject
readonly
29. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
encapsulation
long long
Binary
30. C-style strings are stored in an array of _____
delegate
chars
Smalltalk
polymorphism
31. In a home building analogy a ____ is the blueprint and the object is the house
ampersand (&)
class
procedures
instance
32. In Objective-C floats are more commonly used than ______
Binary
procedures
outlet
doubles
33. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
inheritance hierarchy
dynamic allocation
dispatch table
34. Instance variables are optional in iOS if ________ are used
%
synchronous message
Protocols
properties
35. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
Interface Builder
Signed
dynamic allocation
36. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
double
formal protocol
receiver
37. The most flexible C data type: ______
struct
binary
adopt
attributes
38. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
delegate
assignment
ARC
factory object
39. 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.
weak
remote message
id
Signed
40. The process of setting or reading the value at an address pointed to by a pointer
inheritance
event
dereference (dereferencing)
message
41. Objective-C is a _____ of the C language
readonly
asterisk (*)
superset
%@
42. 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.
distributed objects
abstract class
protocol
weak
43. Any class that's one step below another class in the inheritance hierarchy.
binary
subclass
dangling pointer
pointers
44. Symbol used to denote a placeholder in a format string
adopt
Smalltalk
%
pointer
45. A variable that points to the memory address of another value
pointer
Edit>Refactor>Convert to Objective-C ARC
@interface
Pointers
46. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
superclass
method
namespace
47. a+b; is an example of using a _____ operator
binary
cycles
assignment
asterisk (*)
48. Placing a ____ before a normal variable name gives it's address
ampersand (&)
dynamic binding
interface
Cocoa
49. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
heap
binary
namespace
50. This symbol denotes a method as being a class method
+
instance
Pointers
value