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. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
dereference (dereferencing)
@interface
Binary
mutex
2. A set of method definitions that is segregated from the rest of the class definition.
category
properties
method
subclass
3. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
Unitary
nonatomic
message
C operators
4. This symbol denotes a method as being an instance method
-
anonymous object
null
abstract superclass
5. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
informal protocol
static typing
Protocols
6. This symbol denotes a method as being a class method
NSString
@interface
inheritance
+
7. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
deprecated
superclass
synchronous message
precedence
8. 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
Categories
@implementation
assign
9. Initializer method traditionally begin with the _____ prefix
runtime
null
reference counting
init
10. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
runtime
value
binary
anonymous object
11. ____ provide a concise & elegant method for defining a discrete set of values
fields
Pointers
Enumerations
compile time
12. Objective-C is a _____ of the C language
superset
9
floating-point
double
13. In the Objective-C language the declaration of a group of methods not associated with any particular class.
receiver
asterisk (*)
delegates
protocol
14. An object of unknown class. Interface is published through protocol declaration.
anonymous object
Signed
dynamic typing
runtime
15. ARC is susceptible to retain _____
9
formal protocol
dereference (dereferencing)
cycles
16. 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.
init
encapsulation
properties
@implementation
17. 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.
runtime
AppKit
assign
anonymous object
18. In Objective-C floats are more commonly used than ______
nonatomic
superset
AppKit
doubles
19. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
copy
pointer
framework
procedures
20. 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.
init
structures
reference counting
cannot
21. Discovering the class of an object at runtime rather than at compile time.
id
developer intent
interface
dynamic typing
22. 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.
namespace
AppKit
long long
instance
23. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
interface
pointer
Interface Builder
24. 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
assignment
null
superclass
25. 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
distributed objects
heap
structures
26. The first index in an array is valued at ____
dynamic typing
delegate
adopt
zero
27. 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.
class object
procedures
abstract class
structures
28. An architecture that facilitates communication between objects in different address spaces.
+
binary
floating-point
distributed objects
29. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
abstract superclass
event
ARC
asterisk (*)
30. 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.
class
properties
dynamic allocation
nonatomic
31. There are ____ fundamental building blocks in Objective-C
event
9
dispatch table
inheritance hierarchy
32. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
adopt
doubles
cannot
33. A ____ _____ is where you forget to free up memory
precedence
Categories
runtime
memory leak
34. An object that acts on behalf of another object.
delegate
fields
category
properties
35. Symbol used to denote a placeholder in a format string
object
%
+
fields
36. Instance variables are optional in iOS if ________ are used
abstract superclass
receiver
properties
abstract class
37. Xcode sequence to convert non-ARC apps to ARC
assignment
Interface Builder
inheritance hierarchy
Edit>Refactor>Convert to Objective-C ARC
38. C-style strings always end with a ____ character
null
fields
framework
+
39. Objective-C's protocols are really about communicating _____ _______
precedence
developer intent
message
Product>Profile>Leaks>Profile
40. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
procedural programming language
static typing
factory
zero
41. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
instance
designated
unitary
formal protocol
42. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
Cocoa
value
delegates
strong
43. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
procedures
delegates
nonatomic
Protocols
44. 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
factory
Enumerations
instance
45. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
subclass
dispatch table
Smalltalk
Binary
46. A variable that points to the memory address of another value
pointer
attributes
assignment
link time
47. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
class
Smalltalk
memory leak
superset
48. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
remote object
static typing
binary
Unsigned
49. 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.
superset
object
developer intent
selector
50. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
superclass
doubles
ampersand (&)