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. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
strong
dangling pointer
inheritance
chars
2. Property attribute that synthesizes only a getter for the property
%
asynchronous message
readonly
Protocols
3. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
unitary
instance
conform
nil
4. 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
class object
NSString
asynchronous message
5. The time after a program is launched and while it's running. Decisions made at during this time can be influenced by choices the user makes.
factory
reference counting
runtime
dynamic allocation
6. _____ allow indirect access and modification of a variable's value.
instance
protocol
memory leak
Pointers
7. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
double
dynamic allocation
namespace
deprecated
8. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
dynamic allocation
@implementation
[receiver message];
compile time
9. a+b; is an example of using a _____ operator
structures
framework
asynchronous message
binary
10. This symbol denotes a method as being an instance method
class object
-
asynchronous message
value
11. There are ____ fundamental building blocks in Objective-C
ARC
nonatomic
memory leak
9
12. Three main categories of more complicated data structures:_______ - arrays and structs
+
inheritance
adopt
pointers
13. The root class in Objective-C
dynamic allocation
abstract class
NSObject
weak
14. In object-oriented programming a procedure that can be executed by an object.
static typing
9
delegates
method
15. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
nil
Enumerations
Unsigned
procedures
16. _____ operators take 2 operands
dynamic typing
Binary
null
Interface Builder
17. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
dynamic allocation
Interface Builder
weak
mutex
18. Initializer method traditionally begin with the _____ prefix
init
compile time
subclass
framework
19. 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
properties
nil
class
20. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
C operators
mutex
framework
polymorphism
21. A remote message that doesn't return until the receiving application finishes responding to the message. Because the application that sends the message waits for an acknowledgment or return information from the receiving application - the two applica
C operators
%@
dereference (dereferencing)
synchronous message
22. 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.
pointers
Cocoa
runtime
link time
23. Objective-C is a _____ of the C language
inheritance
assign
superset
id
24. An object that acts on behalf of another object.
dispatch table
asynchronous message
delegate
designated initializer
25. The most flexible C data type: ______
struct
procedural programming language
attributes
delegate
26. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
@interface
dangling pointer
object
procedural programming language
27. In a format string the place holder for an object is ______
readonly
message expression
%@
framework
28. Placing a ____ before a normal variable name gives it's address
procedural programming language
adopt
ampersand (&)
delegates
29. Xcode sequence to convert non-ARC apps to ARC
[receiver message];
Signed
dynamic typing
Edit>Refactor>Convert to Objective-C ARC
30. An object id with a value of 0.
%@
nil
Binary
reference counting
31. Symbol used to denote a placeholder in a format string
superclass
%
designated
-
32. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
struct
implementation
factory
value
33. ______ data types are always zero or greate
Unsigned
+
%
ampersand (&)
34. C-style strings always end with a ____ character
null
deprecated
factory
encapsulation
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.
event
message expression
comma-separated
encapsulation
36. A ____ ____ is a situation where you free memory and then accidentally continue to use it
structures
dangling pointer
outlet
init
37. A struct may contain multiple ____ consisting of different data types
message expression
synchronous message
Encapsulation
fields
38. C-style strings are stored in an array of _____
chars
-
pointers
Signed
39. 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.
category
link time
runtime
object
40. 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.
superclass
abstract class
ampersand (&)
instance
41. To destroy an object set the variable that points to it to _____
encapsulation
factory object
nil
double
42. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
message
receiver
%
message expression
43. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
doubles
procedural programming language
event
Pointers
44. 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.
developer intent
inheritance
AppKit
delegate
45. Property attribute where the setter stores the assigned value but does not perform any memory management.
designated
assign
adopt
dereference (dereferencing)
46. In object-oriented programming the object that is sent a message.
chars
instance
floating-point
receiver
47. 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
framework
remote object
formal protocol
48. In Objective-C floats are more commonly used than ______
AppKit
subclass
Encapsulation
doubles
49. 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
outlet
Unsigned
class method
conform
50. An architecture that facilitates communication between objects in different address spaces.
Edit>Refactor>Convert to Objective-C ARC
distributed objects
readonly
9