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 C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
AppKit
subclass
value
unitary
2. ______ operators take a single operand
NSObject
NSString
instance variable
Unitary
3. 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.
distributed objects
delegates
inheritance hierarchy
long long
4. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
encapsulation
dispatch table
ARC
5. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
binary
deprecated
interface
runtime
6. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
NSString
Encapsulation
nil
weak
7. Square bracket syntax for calling a method
superset
[receiver message];
printf( )
mutex
8. Discovering the class of an object at runtime rather than at compile time.
object
dynamic typing
+
dereference (dereferencing)
9. Objective-C is a _____ of the C language
dynamic allocation
structures
superset
Interface Builder
10. Initializer method traditionally begin with the _____ prefix
%@
instance variable
init
dynamic allocation
11. All objects are created on the _____
C operators
+
heap
inheritance hierarchy
12. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
long long
precedence
double
readwrite
13. An object of unknown class. Interface is published through protocol declaration.
dispatch table
anonymous object
developer intent
encapsulation
14. A class is said to do this when it declares that it implements all the methods in the protocol.
properties
abstract class
binary
adopt
15. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
precedence
message
reference counting
@implementation
16. Instance variables are optional in iOS if ________ are used
dangling pointer
copy
9
properties
17. An object id with a value of 0.
distributed objects
Product>Profile>Leaks>Profile
nil
remote object
18. ______ data types are always zero or greate
procedural programming language
Unsigned
properties
class
19. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
nonatomic
runtime
inheritance
encapsulation
20. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
implementation
long long
structures
interface
21. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
dispatch table
asterisk (*)
+
properties
22. Property attribute that synthesizes accessors that are not thread safe
zero
9
instance method
nonatomic
23. Symbol used to denote a placeholder in a format string
NSObject
%
asterisk (*)
ARC
24. 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.
Unitary
dynamic allocation
encapsulation
long long
25. 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.
adopt
dynamic allocation
factory
fields
26. 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.
static typing
dangling pointer
outlet
%
27. A compiler feature that provides automated memory management
selector
null
framework
ARC
28. 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.
attributes
C operators
init
AppKit
29. 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.
long long
Smalltalk
Interface Builder
Unitary
30. C-style strings are stored in an array of _____
class
Protocols
chars
ampersand (&)
31. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
pointer
Pointers
long long
dynamic allocation
32. 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.
asynchronous message
runtime
Categories
@implementation
33. 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
outlet
init
pointers
34. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
reference counting
readwrite
polymorphism
9
35. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
dynamic allocation
binary
@implementation
Binary
36. A protocol declared as a category usually as a category of the NSObject class.
NSObject
informal protocol
doubles
assignment
37. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dynamic typing
[receiver message];
dangling pointer
category
38. 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.
procedures
factory
copy
selector
39. There are ____ fundamental building blocks in Objective-C
framework
properties
9
init
40. _____ data types can be both positive and negative
%
Signed
runtime
distributed objects
41. The _____ function can be used to print a message to the console
encapsulation
printf( )
message
namespace
42. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Interface Builder
init
Protocols
conform
43. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
init
class object
framework
informal protocol
44. Placing a ____ before a normal variable name gives it's address
class object
inheritance hierarchy
ampersand (&)
factory
45. A struct may contain multiple ____ consisting of different data types
@implementation
inheritance hierarchy
binary
fields
46. Objective-C methods are called using ____ _____
nil
zero
runtime
square brackets
47. In object-oriented programming a procedure that can be executed by an object.
method
class method
assign
null
48. In the Objective-C language the declaration of a group of methods not associated with any particular class.
implementation
long long
protocol
comma-separated
49. Objective-C's protocols are really about communicating _____ _______
developer intent
struct
delegates
instance variable
50. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
comma-separated
Pointers
procedures
C operators