SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
ARC
implementation
Protocols
strong
2. Property attribute that synthesizes accessors that are not thread safe
properties
floating-point
nonatomic
chars
3. When creating a class header file you begin with the _____ keyword and close with the @end keyword
remote object
init
printf( )
@interface
4. _____ allow you to add new methods to existing classes
%
Categories
Edit>Refactor>Convert to Objective-C ARC
readwrite
5. 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.
distributed objects
object
remote object
reference counting
6. An architecture that facilitates communication between objects in different address spaces.
adopt
event
nil
distributed objects
7. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
link time
asterisk (*)
inheritance hierarchy
runtime
8. In object-oriented programming a procedure that can be executed by an object.
Pointers
method
distributed objects
event
9. Square bracket syntax for calling a method
receiver
[receiver message];
Categories
event
10. 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.
designated
chars
message expression
inheritance hierarchy
11. 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
inheritance
superclass
printf( )
structures
12. A class is said to do this when it declares that it implements all the methods in the protocol.
adopt
struct
init
square brackets
13. Objective-C is a _____ of the C language
superset
value
attributes
Unsigned
14. This symbol denotes a method as being a class method
cycles
init
delegates
+
15. Instance variables are optional in iOS if ________ are used
printf( )
class
properties
assign
16. 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.
polymorphism
Interface Builder
Product>Profile>Leaks>Profile
namespace
17. 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.
nil
link time
NSObject
ampersand (&)
18. Xcode sequence to examine an app for memory leaks or retain cycles
procedures
Product>Profile>Leaks>Profile
method
remote message
19. Property attribute that causes the setter to store a strong reference to the assigned value
pointers
Interface Builder
strong
anonymous object
20. The first index in an array is valued at ____
zero
%
dynamic typing
adopt
21. 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.
pointer
encapsulation
method
chars
22. Finding the method implementation to invoke in response to the message
dispatch table
dynamic binding
subclass
double
23. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
@interface
procedures
@implementation
polymorphism
24. 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).
doubles
value
pointers
implementation
25. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
dereference (dereferencing)
init
@interface
26. ______ operators take a single operand
implementation
-
Unitary
nil
27. 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.
class
instance
chars
Binary
28. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
@implementation
deprecated
procedures
designated
29. In a format string the place holder for an object is ______
struct
%@
attributes
interface
30. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
Product>Profile>Leaks>Profile
nil
class object
class method
31. C-style strings are stored in an array of _____
class
delegates
chars
C operators
32. In a home building analogy a ____ is the blueprint and the object is the house
value
class
Signed
instance
33. 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.
instance method
AppKit
fields
dangling pointer
34. There are ____ fundamental building blocks in Objective-C
Enumerations
double
9
assign
35. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
adopt
Binary
procedural programming language
Smalltalk
36. 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.
ARC
dangling pointer
weak
Interface Builder
37. This symbol denotes a method as being an instance method
message expression
heap
-
subclass
38. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
weak
square brackets
formal protocol
39. Property attribute that synthesizes both a getter and setter for the property
readwrite
factory object
Interface Builder
struct
40. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
class
+
id
41. The process of setting or reading the value at an address pointed to by a pointer
precedence
dereference (dereferencing)
dynamic binding
nil
42. A ____ ____ is a situation where you free memory and then accidentally continue to use it
structures
dangling pointer
NSObject
procedures
43. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
reference counting
distributed objects
polymorphism
C operators
44. A set of method definitions that is segregated from the rest of the class definition.
long long
remote object
inheritance
category
45. 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.
class
dangling pointer
superclass
id
46. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
framework
assignment
cycles
Unsigned
47. Objective-C methods are called using ____ _____
remote message
Smalltalk
square brackets
comma-separated
48. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
static typing
Categories
strong
long long
49. a+b; is an example of using a _____ operator
double
nil
binary
zero
50. An object id with a value of 0.
method
conform
dispatch table
nil