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 is a _____ of the C language
9
Product>Profile>Leaks>Profile
superset
-
2. a+b; is an example of using a _____ operator
unitary
inheritance
binary
distributed objects
3. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
@interface
%
readwrite
Cocoa
4. A ____ ____ is a situation where you free memory and then accidentally continue to use it
printf( )
static typing
dangling pointer
instance
5. The _____ function can be used to print a message to the console
dynamic binding
anonymous object
printf( )
abstract class
6. Xcode sequence to examine an app for memory leaks or retain cycles
abstract class
structures
Product>Profile>Leaks>Profile
instance
7. ____ provide a concise & elegant method for defining a discrete set of values
polymorphism
Enumerations
superclass
Unitary
8. The most flexible C data type: ______
class
@implementation
developer intent
struct
9. Objective-C objects should use strong or weak ______
pointers
@implementation
attributes
weak
10. A ____ _____ is where you forget to free up memory
asterisk (*)
memory leak
Signed
properties
11. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
dynamic binding
Protocols
properties
12. 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.
inheritance hierarchy
value
NSObject
dynamic binding
13. This symbol denotes a method as being a class method
class object
init
+
message
14. The root class in Objective-C
cannot
remote object
NSObject
properties
15. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
outlet
cannot
class
conform
16. A protocol declared as a category usually as a category of the NSObject class.
informal protocol
synchronous message
Pointers
Binary
17. Objective-C binds methods and arguments at _____ instead of compile time
null
runtime
C operators
AppKit
18. A message sent from one application to an object in another application.
nil
factory
remote message
anonymous object
19. This symbol denotes a method as being an instance method
designated initializer
-
value
class object
20. 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
Interface Builder
dangling pointer
synchronous message
nil
21. ______ operators take a single operand
Cocoa
runtime
Unitary
category
22. _____ operators take 2 operands
-
copy
selector
Binary
23. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
inheritance hierarchy
C operators
ampersand (&)
null
24. 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.
Pointers
encapsulation
formal protocol
interface
25. 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
encapsulation
pointers
floating-point
26. 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.
binary
assignment
object
inheritance
27. A method that can operate on class objects rather than instances of the class.
dynamic allocation
null
class method
runtime
28. ______ data types are always zero or greate
Unsigned
encapsulation
weak
@interface
29. Data types are divided into two main categories: integer and ______
NSString
synchronous message
floating-point
nil
30. All objects are created on the _____
event
factory object
heap
dynamic allocation
31. 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.
namespace
Unsigned
adopt
structures
32. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
struct
unitary
@implementation
formal protocol
33. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
Cocoa
precedence
+
superset
34. Property attribute that synthesizes only a getter for the property
Protocols
readonly
null
binary
35. Three main categories of more complicated data structures:_______ - arrays and structs
long long
pointers
pointer
nonatomic
36. In the Objective-C language the declaration of a group of methods not associated with any particular class.
distributed objects
category
conform
protocol
37. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
attributes
inheritance hierarchy
outlet
designated
38. 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.
receiver
developer intent
link time
nonatomic
39. Property attribute that causes the setter to store a copy of the assigned value
copy
abstract superclass
pointer
%@
40. In object-oriented programming the object that is sent a message.
receiver
precedence
abstract class
superclass
41. Property attribute that causes the setter to store a strong reference to the assigned value
copy
dangling pointer
strong
framework
42. a++; is an example of using a _____ operator
dynamic allocation
readwrite
unitary
abstract class
43. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
dynamic typing
outlet
polymorphism
framework
44. In object-oriented programming a procedure that can be executed by an object.
asterisk (*)
+
method
doubles
45. In a home building analogy a ____ is the blueprint and the object is the house
selector
asterisk (*)
class
synchronous message
46. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
attributes
developer intent
synchronous message
deprecated
47. An object of unknown class. Interface is published through protocol declaration.
interface
Enumerations
ARC
anonymous object
48. 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.
struct
properties
distributed objects
instance
49. 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.
9
category
abstract class
runtime
50. Objective-C methods are called using ____ _____
adopt
double
square brackets
distributed objects