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 language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
AppKit
dynamic binding
procedural programming language
compile time
2. Objective-C is a _____ of the C language
abstract class
Signed
factory
superset
3. ____ provide a concise & elegant method for defining a discrete set of values
adopt
procedural programming language
struct
Enumerations
4. Any class that's one step below another class in the inheritance hierarchy.
dynamic binding
instance
properties
subclass
5. a++; is an example of using a _____ operator
unitary
polymorphism
fields
inheritance
6. Objective-C binds methods and arguments at _____ instead of compile time
abstract superclass
runtime
Categories
cycles
7. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
%@
inheritance
instance
Enumerations
8. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
-
properties
reference counting
compile time
9. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
NSString
copy
event
Interface Builder
10. Property attribute that synthesizes accessors that are not thread safe
heap
category
Categories
nonatomic
11. 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
double
init
receiver
12. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
dynamic binding
NSString
remote message
Enumerations
13. A memory-management technique in which each entity that claims ownership of an object increments the object's reference count and later decrements it; allows one instance of an object to be safely shared among several other objects.
ARC
link time
reference counting
floating-point
14. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
@implementation
+
class method
ARC
15. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
assign
dispatch table
asterisk (*)
NSObject
16. In object-oriented programming a procedure that can be executed by an object.
Smalltalk
method
polymorphism
category
17. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
class method
assign
framework
@interface
18. Property attribute that synthesizes both a getter and setter for the property
readwrite
Cocoa
binary
long long
19. Objective-C methods are called using ____ _____
fields
9
delegate
square brackets
20. Same as class object. (first way to say it.)
receiver
framework
factory
readwrite
21. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
pointer
remote object
Product>Profile>Leaks>Profile
instance variable
22. In a format string the place holder for an object is ______
readwrite
structures
%@
Protocols
23. 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.
runtime
protocol
+
value
24. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
printf( )
Protocols
@interface
abstract class
25. An object of unknown class. Interface is published through protocol declaration.
anonymous object
static typing
procedural programming language
instance method
26. A method that can operate on class objects rather than instances of the class.
copy
init
memory leak
class method
27. The most flexible C data type: ______
@interface
subclass
struct
dynamic binding
28. Initializer method traditionally begin with the _____ prefix
init
adopt
square brackets
runtime
29. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
+
instance
category
30. Property attribute that causes the setter to store a strong reference to the assigned value
strong
floating-point
copy
category
31. This symbol denotes a method as being an instance method
cycles
weak
-
procedural programming language
32. Square bracket syntax for calling a method
[receiver message];
designated initializer
implementation
event
33. Symbol used to denote a placeholder in a format string
long long
%
asynchronous message
double
34. 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
informal protocol
Unitary
formal protocol
35. 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.
Signed
dynamic allocation
nil
unitary
36. A ____ _____ is where you forget to free up memory
memory leak
instance method
copy
dynamic binding
37. A ____ ____ is a situation where you free memory and then accidentally continue to use it
designated
instance
null
dangling pointer
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.
Unsigned
AppKit
attributes
subclass
39. Property attribute that causes the setter to store a copy of the assigned value
copy
null
Binary
assign
40. _____ operators take 2 operands
dynamic allocation
Binary
anonymous object
NSString
41. In Objective-C floats are more commonly used than ______
doubles
[receiver message];
class method
superset
42. The first index in an array is valued at ____
delegate
attributes
zero
remote object
43. 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.
link time
Pointers
long long
outlet
44. a+b; is an example of using a _____ operator
binary
AppKit
floating-point
precedence
45. The _____ function can be used to print a message to the console
instance
event
printf( )
runtime
46. _____ allow you to add new methods to existing classes
struct
outlet
9
Categories
47. _____ 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'.
precedence
%
weak
Encapsulation
48. In object-oriented programming the object that is sent a message.
receiver
AppKit
class
%
49. 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.
remote message
instance
adopt
NSObject
50. An object in another application - one that's a potential receiver for a remote message.
implementation
anonymous object
category
remote object