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. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
static typing
weak
dangling pointer
synchronous message
2. A variable that points to the memory address of another value
dispatch table
strong
runtime
pointer
3. 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.
framework
object
Protocols
9
4. This symbol denotes a method as being an instance method
dynamic allocation
nil
-
Smalltalk
5. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
subclass
instance
message
cannot
6. Objective-C objects should use strong or weak ______
attributes
zero
strong
method
7. Property attribute that synthesizes both a getter and setter for the property
long long
readwrite
null
heap
8. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
nil
Interface Builder
@implementation
heap
9. 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
distributed objects
fields
conform
chars
10. Any class that's one step below another class in the inheritance hierarchy.
Edit>Refactor>Convert to Objective-C ARC
init
procedures
subclass
11. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
Encapsulation
init
deprecated
12. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
%
AppKit
procedural programming language
reference counting
13. The most flexible C data type: ______
properties
zero
struct
compile time
14. This symbol denotes a method as being a class method
+
init
square brackets
selector
15. A message sent from one application to an object in another application.
[receiver message];
remote message
fields
Unitary
16. Property attribute that synthesizes accessors that are not thread safe
fields
ARC
nonatomic
Smalltalk
17. _____ allow indirect access and modification of a variable's value.
message
Pointers
dynamic allocation
selector
18. Instance variables are optional in iOS if ________ are used
attributes
Interface Builder
class
properties
19. An object of unknown class. Interface is published through protocol declaration.
anonymous object
abstract superclass
attributes
Smalltalk
20. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
readonly
fields
delegates
square brackets
21. There are ____ fundamental building blocks in Objective-C
link time
@interface
9
superset
22. 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.
asterisk (*)
Unsigned
category
inheritance hierarchy
23. Data types are divided into two main categories: integer and ______
floating-point
distributed objects
structures
message expression
24. 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.
pointers
AppKit
implementation
informal protocol
25. 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
framework
structures
object
instance method
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.
double
outlet
readonly
properties
27. A class is said to do this when it declares that it implements all the methods in the protocol.
id
%
adopt
weak
28. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
comma-separated
NSObject
strong
Binary
29. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
category
Protocols
procedures
Interface Builder
30. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
distributed objects
Product>Profile>Leaks>Profile
message
Enumerations
31. Same as class object. (first way to say it.)
designated initializer
id
factory
dispatch table
32. Symbol used to denote a placeholder in a format string
reference counting
instance
%
remote object
33. Placing a ____ before a normal variable name gives it's address
dynamic binding
ampersand (&)
dynamic typing
dynamic allocation
34. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
[receiver message];
fields
precedence
procedural programming language
35. A struct may contain multiple ____ consisting of different data types
memory leak
fields
doubles
namespace
36. In a home building analogy a ____ is the blueprint and the object is the house
namespace
class
mutex
link time
37. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
square brackets
Cocoa
readwrite
38. _____ data types can be both positive and negative
Unitary
cannot
Signed
Protocols
39. Objective-C is a _____ of the C language
binary
superclass
superset
selector
40. Another name for a class that's defined solely so that other classes can inherit from it.
dereference (dereferencing)
binary
abstract superclass
dynamic binding
41. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
designated initializer
conform
nil
42. 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
Interface Builder
pointers
delegate
43. An object id with a value of 0.
nil
ampersand (&)
Enumerations
encapsulation
44. The process of setting or reading the value at an address pointed to by a pointer
message
implementation
dereference (dereferencing)
anonymous object
45. 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.
selector
Product>Profile>Leaks>Profile
class object
double
46. Objective-C methods are called using ____ _____
square brackets
Signed
pointer
inheritance hierarchy
47. A compiler feature that provides automated memory management
encapsulation
ARC
Categories
class object
48. 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.
Encapsulation
Smalltalk
structures
reference counting
49. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
static typing
double
Smalltalk
mutex
50. The first index in an array is valued at ____
Unitary
framework
zero
link time