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. 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.
dynamic allocation
delegates
ARC
Encapsulation
2. In the Objective-C language the declaration of a group of methods not associated with any particular class.
AppKit
Edit>Refactor>Convert to Objective-C ARC
protocol
printf( )
3. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
mutex
doubles
binary
inheritance hierarchy
4. Same as class object. (first way to say it.)
factory
implementation
class
ARC
5. Square bracket syntax for calling a method
distributed objects
delegate
@implementation
[receiver message];
6. 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.
abstract superclass
nil
dispatch table
AppKit
7. The first index in an array is valued at ____
implementation
interface
zero
remote object
8. Instance variables are optional in iOS if ________ are used
properties
null
static typing
AppKit
9. In a format string the place holder for an object is ______
memory leak
instance
%@
Interface Builder
10. ______ data types are always zero or greate
Cocoa
Unsigned
Categories
deprecated
11. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Enumerations
designated
Smalltalk
readwrite
12. a+b; is an example of using a _____ operator
binary
unitary
init
ampersand (&)
13. When creating a class header file you begin with the _____ keyword and close with the @end keyword
remote message
@interface
assignment
asynchronous message
14. Same as class object. (second way to say it.)
factory object
+
mutex
init
15. Objective-C objects should use strong or weak ______
attributes
init
structures
%@
16. All objects are created on the _____
weak
heap
namespace
developer intent
17. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
static typing
strong
double
Protocols
18. ______ operators take a single operand
framework
Unitary
double
struct
19. C-style strings always end with a ____ character
binary
null
class
init
20. Property attribute that causes the setter to store a copy of the assigned value
ampersand (&)
static typing
copy
synchronous message
21. A ____ _____ is where you forget to free up memory
memory leak
adopt
class
assign
22. _____ operators take 2 operands
weak
interface
procedures
Binary
23. A protocol declared as a category usually as a category of the NSObject class.
doubles
nonatomic
nil
informal protocol
24. ARC is susceptible to retain _____
cycles
asterisk (*)
instance method
assignment
25. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
@interface
implementation
structures
26. Xcode sequence to examine an app for memory leaks or retain cycles
floating-point
Product>Profile>Leaks>Profile
fields
[receiver message];
27. A set of method definitions that is segregated from the rest of the class definition.
+
fields
category
compile time
28. 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.
encapsulation
developer intent
asynchronous message
inheritance hierarchy
29. Any variable that's part of the internal data structure of an instance; declared in a class definition and become part of all objects that are members of or inherit from the class.
instance variable
abstract superclass
structures
properties
30. Symbol used to denote a placeholder in a format string
superset
id
value
%
31. An object of unknown class. Interface is published through protocol declaration.
event
inheritance
ampersand (&)
anonymous object
32. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
Signed
id
doubles
message
33. _____ data types can be both positive and negative
subclass
event
Signed
mutex
34. 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
formal protocol
precedence
struct
35. 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.
encapsulation
cannot
Unsigned
selector
36. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
+
ampersand (&)
@implementation
delegates
37. The process of setting or reading the value at an address pointed to by a pointer
method
link time
dereference (dereferencing)
binary
38. This symbol denotes a method as being a class method
inheritance
factory object
-
+
39. a++; is an example of using a _____ operator
unitary
[receiver message];
floating-point
namespace
40. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
Pointers
delegate
event
41. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
factory object
@implementation
event
%
42. _____ allow indirect access and modification of a variable's value.
Pointers
assignment
synchronous message
readwrite
43. A protocol that's declared with the @protocol directive. Classes can adopt these - objects can respond at runtime when asked if they conform to them and instances can be typed by those that they conform to.
formal protocol
abstract class
factory object
NSString
44. The _____ function can be used to print a message to the console
printf( )
runtime
memory leak
factory object
45. 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
dispatch table
procedural programming language
outlet
46. Three main categories of more complicated data structures:_______ - arrays and structs
asterisk (*)
factory
[receiver message];
pointers
47. A compiler feature that provides automated memory management
%
ARC
procedural programming language
struct
48. An object that acts on behalf of another object.
delegate
fields
class object
abstract class
49. Placing a ____ before a normal variable name gives it's address
Unsigned
delegate
static typing
ampersand (&)
50. Property attribute that causes the setter to store a strong reference to the assigned value
strong
comma-separated
adopt
zero