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. A ____ ____ is a situation where you free memory and then accidentally continue to use it
Binary
ARC
dangling pointer
9
2. Objective-C methods are called using ____ _____
square brackets
binary
weak
method
3. There are ____ fundamental building blocks in Objective-C
remote message
9
encapsulation
informal protocol
4. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
instance method
remote message
compile time
dispatch table
5. 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
class
message expression
readwrite
6. Another name for a class that's defined solely so that other classes can inherit from it.
polymorphism
abstract superclass
event
assign
7. The process of setting or reading the value at an address pointed to by a pointer
superclass
runtime
dereference (dereferencing)
dynamic binding
8. Three main categories of more complicated data structures:_______ - arrays and structs
framework
reference counting
Binary
pointers
9. In a home building analogy a ____ is the blueprint and the object is the house
class
copy
binary
instance variable
10. The first index in an array is valued at ____
Protocols
remote message
outlet
zero
11. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
Pointers
interface
message expression
12. In Objective-C floats are more commonly used than ______
Cocoa
doubles
assignment
Pointers
13. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
Enumerations
event
protocol
selector
14. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
subclass
mutex
Interface Builder
attributes
15. Objective-C is a _____ of the C language
long long
superset
dispatch table
superclass
16. a++; is an example of using a _____ operator
category
@interface
strong
unitary
17. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
properties
Categories
instance
[receiver message];
18. 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
[receiver message];
designated initializer
binary
19. Same as class object. (second way to say it.)
cycles
conform
class
factory object
20. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
delegates
factory object
dynamic allocation
Cocoa
21. A class is said to do this when it declares that it implements all the methods in the protocol.
-
dynamic typing
adopt
message expression
22. Objective-C's protocols are really about communicating _____ _______
developer intent
properties
Categories
remote object
23. ______ data types are always zero or greate
Unsigned
abstract class
ARC
delegates
24. _____ allow you to add new methods to existing classes
assign
Edit>Refactor>Convert to Objective-C ARC
copy
Categories
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.
instance method
dangling pointer
superclass
object
26. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
Protocols
precedence
Interface Builder
distributed objects
27. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
square brackets
Protocols
asterisk (*)
designated
28. _____ data types can be both positive and negative
nil
NSObject
Signed
memory leak
29. To destroy an object set the variable that points to it to _____
nil
class
dynamic binding
static typing
30. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
square brackets
readwrite
message expression
polymorphism
31. 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.
instance variable
id
formal protocol
remote message
32. Any class that's one step below another class in the inheritance hierarchy.
formal protocol
assign
subclass
ampersand (&)
33. Same as class object. (first way to say it.)
Binary
object
structures
factory
34. 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
framework
class
value
35. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
factory object
instance
message expression
interface
36. 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.
runtime
weak
inheritance hierarchy
namespace
37. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
-
link time
compile time
id
38. 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.
Protocols
AppKit
Pointers
link time
39. A method that can operate on class objects rather than instances of the class.
Binary
id
runtime
class method
40. 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.
strong
abstract class
compile time
protocol
41. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
memory leak
synchronous message
null
procedural programming language
42. Property attribute that causes the setter to store a strong reference to the assigned value
instance
cannot
implementation
strong
43. 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.
procedural programming language
interface
namespace
abstract class
44. 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.
designated initializer
class
encapsulation
deprecated
45. 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
selector
polymorphism
unitary
46. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
nil
-
C operators
instance variable
47. A message sent from one application to an object in another application.
remote message
inheritance
strong
class method
48. C-style strings always end with a ____ character
instance
properties
object
null
49. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
framework
interface
dereference (dereferencing)
50. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
implementation
receiver
structures
static typing