SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
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. Symbol used to denote a placeholder in a format string
%
interface
NSObject
long long
2. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
superclass
precedence
remote object
message
3. Same as class object. (first way to say it.)
factory
event
implementation
developer intent
4. 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.
instance
unitary
distributed objects
encapsulation
5. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
Unsigned
nil
remote object
6. A variable that points to the memory address of another value
formal protocol
pointer
Product>Profile>Leaks>Profile
link time
7. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
framework
procedural programming language
message
NSString
8. In object-oriented programming a procedure that can be executed by an object.
interface
object
method
class
9. Placing a ____ before a normal variable name gives it's address
doubles
ampersand (&)
init
-
10. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
dynamic allocation
delegates
pointers
instance
11. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
compile time
ampersand (&)
procedural programming language
nonatomic
12. 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.
factory
message expression
structures
namespace
13. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
reference counting
cannot
attributes
9
14. 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.
precedence
Interface Builder
Cocoa
remote message
15. ______ data types are always zero or greate
memory leak
abstract superclass
Unsigned
polymorphism
16. 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
dynamic typing
compile time
Signed
17. 3 Common Float data types: float - _____ - CGFloat
double
receiver
Smalltalk
category
18. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
runtime
chars
comma-separated
19. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
subclass
interface
value
Enumerations
20. _____ allow indirect access and modification of a variable's value.
Pointers
factory
protocol
nil
21. To destroy an object set the variable that points to it to _____
namespace
nil
instance method
subclass
22. A class is said to do this when it declares that it implements all the methods in the protocol.
class
[receiver message];
adopt
floating-point
23. Xcode sequence to convert non-ARC apps to ARC
message expression
method
Edit>Refactor>Convert to Objective-C ARC
Binary
24. _____ allow you to add new methods to existing classes
Categories
attributes
conform
unitary
25. All objects are created on the _____
strong
framework
Product>Profile>Leaks>Profile
heap
26. Another name for a class that's defined solely so that other classes can inherit from it.
runtime
factory
procedural programming language
abstract superclass
27. 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).
nonatomic
implementation
inheritance
comma-separated
28. Square bracket syntax for calling a method
[receiver message];
encapsulation
reference counting
zero
29. The most flexible C data type: ______
-
struct
inheritance
Protocols
30. 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).
message expression
asynchronous message
Encapsulation
instance
31. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
instance variable
Protocols
outlet
anonymous object
32. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
dynamic typing
designated
instance
superclass
33. A method that can operate on class objects rather than instances of the class.
dynamic binding
synchronous message
superset
class method
34. Data types are divided into two main categories: integer and ______
formal protocol
floating-point
factory
struct
35. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
conform
doubles
abstract class
36. Initializer method traditionally begin with the _____ prefix
init
ARC
instance
chars
37. 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.
abstract class
heap
init
Product>Profile>Leaks>Profile
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.
NSObject
AppKit
abstract superclass
dynamic typing
39. 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.
message expression
@interface
square brackets
outlet
40. Property attribute that synthesizes only a getter for the property
properties
strong
framework
readonly
41. Property attribute that synthesizes both a getter and setter for the property
ARC
zero
readwrite
init
42. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
%@
C operators
instance method
designated initializer
43. _____ 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'.
Encapsulation
AppKit
runtime
static typing
44. 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.
asynchronous message
anonymous object
assign
inheritance hierarchy
45. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
distributed objects
fields
deprecated
dispatch table
46. Objective-C's protocols are really about communicating _____ _______
developer intent
encapsulation
synchronous message
weak
47. In a format string the place holder for an object is ______
delegate
binary
%@
cycles
48. 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.
%@
struct
inheritance hierarchy
Pointers
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.
delegates
printf( )
selector
developer intent
50. Objective-C binds methods and arguments at _____ instead of compile time
compile time
runtime
procedural programming language
comma-separated
Tiny Skills: 250+ Skill Guides in 1 Book
13 Skills Types | 550 Pages | Only $9.95 | PDF / EPub, Kindle Ready
Top Scores
Anon hero
- 100%
Link to This Test
Related Subjects
Soft Skills
Business Skills