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 tool that lets you graphically specify your application's user interface. It sets up the corresponding objects for you and makes it easy for you to establish connections between these objects and your own code where needed.
long long
adopt
Interface Builder
informal protocol
2. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
procedural programming language
assign
namespace
interface
3. Discovering the class of an object at runtime rather than at compile time.
asynchronous message
Interface Builder
long long
dynamic typing
4. 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.
assign
AppKit
abstract class
id
5. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
mutex
runtime
polymorphism
method
6. 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.
factory object
runtime
class
reference counting
7. Same as class object. (second way to say it.)
memory leak
factory object
anonymous object
nonatomic
8. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
runtime
Cocoa
dispatch table
reference counting
9. 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
value
procedural programming language
+
10. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
procedural programming language
Protocols
dynamic binding
nil
11. 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
mutex
value
[receiver message];
12. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
precedence
inheritance
conform
method
13. An object id with a value of 0.
chars
C operators
nil
asynchronous message
14. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
dereference (dereferencing)
comma-separated
Edit>Refactor>Convert to Objective-C ARC
mutex
15. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
NSString
delegates
comma-separated
abstract superclass
16. Finding the method implementation to invoke in response to the message
readwrite
object
dynamic binding
delegates
17. A ____ _____ is where you forget to free up memory
class object
memory leak
id
copy
18. Objective-C binds methods and arguments at _____ instead of compile time
heap
runtime
floating-point
readonly
19. Another name for a class that's defined solely so that other classes can inherit from it.
floating-point
encapsulation
remote object
abstract superclass
20. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
weak
cannot
inheritance
polymorphism
21. Objective-C is a _____ of the C language
runtime
superset
Signed
Product>Profile>Leaks>Profile
22. 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.
object
+
subclass
comma-separated
23. 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
class
Edit>Refactor>Convert to Objective-C ARC
properties
synchronous message
24. Objective-C's protocols are really about communicating _____ _______
developer intent
object
dangling pointer
instance method
25. A set of method definitions that is segregated from the rest of the class definition.
deprecated
floating-point
category
-
26. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
category
compile time
instance variable
long long
27. Objective-C objects should use strong or weak ______
attributes
NSObject
properties
unitary
28. a+b; is an example of using a _____ operator
remote message
struct
Smalltalk
binary
29. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
designated
init
procedures
event
30. A remote message that returns immediately without waiting for the application that receives the message to respond. The sending application and the receiving application act independently and are therefore not in sync.
Smalltalk
AppKit
asynchronous message
NSObject
31. All objects are created on the _____
procedural programming language
heap
distributed objects
class method
32. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
@interface
compile time
polymorphism
33. A class is said to do this to a protocol if it (or a superclass) implements the methods declared in the protocol. An instance does this to a protocol if its class does. Thus an instance that does this to a protocol can perform any of the instance met
conform
adopt
designated
developer intent
34. C-style strings are stored in an array of _____
floating-point
polymorphism
chars
reference counting
35. Property attribute where the setter stores the assigned value but does not perform any memory management.
factory
assign
selector
readwrite
36. The root class in Objective-C
NSObject
cannot
Unitary
message expression
37. Three main categories of more complicated data structures:_______ - arrays and structs
abstract class
inheritance hierarchy
structures
pointers
38. A struct may contain multiple ____ consisting of different data types
dispatch table
delegate
mutex
fields
39. 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
cycles
outlet
40. _____ data types can be both positive and negative
interface
%
id
Signed
41. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
dangling pointer
dynamic binding
@implementation
designated initializer
42. An object in another application - one that's a potential receiver for a remote message.
nonatomic
protocol
nil
remote object
43. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
superset
cycles
init
44. _____ allow you to add new methods to existing classes
AppKit
9
Categories
distributed objects
45. Objective-C methods are called using ____ _____
square brackets
framework
double
class object
46. 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.
-
conform
selector
implementation
47. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
double
designated initializer
Smalltalk
asterisk (*)
48. C-style strings always end with a ____ character
dispatch table
null
ARC
message
49. A variable that points to the memory address of another value
framework
class method
pointer
dynamic allocation
50. Placing a ____ before a normal variable name gives it's address
Protocols
%
runtime
ampersand (&)