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. There are ____ fundamental building blocks in Objective-C
memory leak
dynamic typing
9
weak
2. 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.
link time
category
event
remote object
3. A class is said to do this when it declares that it implements all the methods in the protocol.
class
ampersand (&)
interface
adopt
4. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
method
Edit>Refactor>Convert to Objective-C ARC
Interface Builder
weak
5. Any method that can be used by an instance of a class rather than by the class object.
polymorphism
informal protocol
double
instance method
6. An architecture that facilitates communication between objects in different address spaces.
zero
instance
procedural programming language
distributed objects
7. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
designated
compile time
chars
nil
8. Property attribute where the setter stores the assigned value but does not perform any memory management.
formal protocol
Unitary
assign
asynchronous message
9. In object-oriented programming a procedure that can be executed by an object.
doubles
method
receiver
printf( )
10. An object in another application - one that's a potential receiver for a remote message.
remote object
double
instance
init
11. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
heap
developer intent
comma-separated
remote message
12. Objective-C binds methods and arguments at _____ instead of compile time
runtime
event
Pointers
class
13. Symbol used to denote a placeholder in a format string
message
%
ARC
factory object
14. Placing a ____ before a normal variable name gives it's address
framework
fields
abstract class
ampersand (&)
15. An object id with a value of 0.
floating-point
nil
informal protocol
C operators
16. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
assign
dynamic binding
Product>Profile>Leaks>Profile
17. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
comma-separated
Binary
readwrite
Smalltalk
18. _____ operators take 2 operands
Binary
selector
procedures
precedence
19. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
event
dispatch table
C operators
%
20. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
message
receiver
polymorphism
21. _____ allow indirect access and modification of a variable's value.
pointer
value
heap
Pointers
22. In a format string the place holder for an object is ______
long long
Unsigned
%@
remote object
23. 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
ARC
init
compile time
24. Square bracket syntax for calling a method
subclass
[receiver message];
superclass
nil
25. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
memory leak
asynchronous message
@implementation
assignment
26. 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.
ARC
namespace
abstract class
Pointers
27. Property attribute that causes the setter to store a copy of the assigned value
encapsulation
C operators
copy
floating-point
28. 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
polymorphism
compile time
method
29. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
mutex
event
readwrite
attributes
30. a+b; is an example of using a _____ operator
binary
chars
doubles
dynamic typing
31. ____ provide a concise & elegant method for defining a discrete set of values
%@
deprecated
synchronous message
Enumerations
32. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
pointer
class method
chars
33. An object of unknown class. Interface is published through protocol declaration.
anonymous object
Signed
Smalltalk
double
34. 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.
AppKit
developer intent
polymorphism
pointers
35. To destroy an object set the variable that points to it to _____
formal protocol
Protocols
subclass
nil
36. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
memory leak
procedural programming language
unitary
procedures
37. Data types are divided into two main categories: integer and ______
dereference (dereferencing)
floating-point
dynamic allocation
+
38. 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).
dynamic allocation
reference counting
ARC
message expression
39. This symbol denotes a method as being an instance method
conform
pointer
-
delegates
40. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
Categories
precedence
unitary
readonly
41. a++; is an example of using a _____ operator
precedence
unitary
instance variable
%
42. A ____ _____ is where you forget to free up memory
Signed
init
memory leak
instance variable
43. This symbol denotes a method as being a class method
inheritance hierarchy
+
class object
fields
44. 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
struct
conform
class
comma-separated
45. Same as class object. (second way to say it.)
Unsigned
factory object
long long
framework
46. In object-oriented programming the object that is sent a message.
@implementation
instance
receiver
message expression
47. Any class that's one step below another class in the inheritance hierarchy.
method
Signed
selector
subclass
48. A struct may contain multiple ____ consisting of different data types
floating-point
fields
Smalltalk
@implementation
49. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
method
mutex
inheritance
developer intent
50. 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.
reference counting
floating-point
category
delegate