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. _____ allow indirect access and modification of a variable's value.
chars
informal protocol
instance variable
Pointers
2. A ____ _____ is where you forget to free up memory
dangling pointer
memory leak
designated
protocol
3. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
link time
Cocoa
event
informal protocol
4. An object id with a value of 0.
subclass
square brackets
nil
Binary
5. ______ operators take a single operand
cycles
Unitary
interface
value
6. A set of method definitions that is segregated from the rest of the class definition.
category
procedural programming language
instance
message
7. 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
Edit>Refactor>Convert to Objective-C ARC
Signed
conform
formal protocol
8. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
remote object
double
Protocols
designated initializer
9. 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
zero
framework
structures
formal protocol
10. The _____ function can be used to print a message to the console
precedence
delegates
printf( )
Edit>Refactor>Convert to Objective-C ARC
11. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assign
assignment
anonymous object
class object
12. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
anonymous object
procedural programming language
copy
13. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
null
deprecated
framework
doubles
14. A message sent from one application to an object in another application.
remote message
comma-separated
floating-point
Binary
15. Property attribute that synthesizes both a getter and setter for the property
readwrite
receiver
interface
dynamic typing
16. Xcode sequence to examine an app for memory leaks or retain cycles
binary
properties
inheritance
Product>Profile>Leaks>Profile
17. 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.
procedural programming language
value
reference counting
superset
18. Objective-C is a _____ of the C language
superset
mutex
abstract superclass
[receiver message];
19. 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).
Edit>Refactor>Convert to Objective-C ARC
9
implementation
adopt
20. 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.
Edit>Refactor>Convert to Objective-C ARC
informal protocol
instance
outlet
21. In object-oriented programming the object that is sent a message.
static typing
receiver
value
dispatch table
22. Discovering the class of an object at runtime rather than at compile time.
Unsigned
dynamic binding
dynamic typing
adopt
23. In a home building analogy a ____ is the blueprint and the object is the house
class
fields
heap
chars
24. 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.
Edit>Refactor>Convert to Objective-C ARC
nil
assignment
namespace
25. An object in another application - one that's a potential receiver for a remote message.
developer intent
receiver
remote object
long long
26. A class is said to do this when it declares that it implements all the methods in the protocol.
procedural programming language
instance
event
adopt
27. 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.
interface
protocol
AppKit
asterisk (*)
28. The root class in Objective-C
NSObject
Edit>Refactor>Convert to Objective-C ARC
procedures
fields
29. Objective-C's protocols are really about communicating _____ _______
instance method
developer intent
informal protocol
Edit>Refactor>Convert to Objective-C ARC
30. Objective-C binds methods and arguments at _____ instead of compile time
delegates
runtime
protocol
developer intent
31. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
Interface Builder
copy
cannot
+
32. This symbol denotes a method as being a class method
assign
Categories
inheritance hierarchy
+
33. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
comma-separated
abstract superclass
encapsulation
compile time
34. 3 Common Float data types: float - _____ - CGFloat
Enumerations
runtime
ARC
double
35. 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.
Interface Builder
null
designated initializer
superset
36. Placing a ____ before a normal variable name gives it's address
printf( )
AppKit
category
ampersand (&)
37. Any class that's one step below another class in the inheritance hierarchy.
inheritance
subclass
memory leak
Signed
38. A struct may contain multiple ____ consisting of different data types
readwrite
interface
nil
fields
39. A compiler feature that provides automated memory management
synchronous message
ARC
Smalltalk
@interface
40. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
anonymous object
cycles
precedence
superclass
41. A method that can operate on class objects rather than instances of the class.
comma-separated
precedence
interface
class method
42. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
NSObject
event
Unsigned
struct
43. Same as class object. (second way to say it.)
runtime
factory object
message
id
44. In object-oriented programming a procedure that can be executed by an object.
long long
comma-separated
method
designated initializer
45. In object-oriented programming an expression that sends a message to an object. In the Objective-C language they are enclosed within square brackets and consist of a receiver followed by a message (method selector and parameters).
Protocols
long long
assign
message expression
46. Property attribute where the setter stores the assigned value but does not perform any memory management.
weak
attributes
dereference (dereferencing)
assign
47. _____ data types can be both positive and negative
outlet
Signed
class method
dynamic typing
48. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
pointers
designated
%
value
49. An object of unknown class. Interface is published through protocol declaration.
nil
anonymous object
printf( )
readonly
50. 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.
deprecated
subclass
printf( )
link time