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. 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
factory
reference counting
superclass
2. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
message
struct
Pointers
polymorphism
3. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
delegate
NSObject
message
precedence
4. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
Unsigned
superset
Cocoa
dangling pointer
5. ______ data types are always zero or greate
structures
factory object
static typing
Unsigned
6. 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
copy
Enumerations
link time
7. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
Unsigned
@interface
adopt
8. Property attribute that synthesizes both a getter and setter for the property
deprecated
C operators
NSObject
readwrite
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
strong
double
superclass
conform
10. 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.
Smalltalk
instance
mutex
Protocols
11. In a home building analogy a ____ is the blueprint and the object is the house
adopt
message
class
category
12. A struct may contain multiple ____ consisting of different data types
remote object
fields
Enumerations
encapsulation
13. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
binary
nil
namespace
C operators
14. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
strong
namespace
doubles
@implementation
15. Three main categories of more complicated data structures:_______ - arrays and structs
polymorphism
pointers
receiver
value
16. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
memory leak
instance
AppKit
object
17. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
readonly
printf( )
delegate
18. ARC is susceptible to retain _____
cycles
abstract class
Edit>Refactor>Convert to Objective-C ARC
framework
19. The most flexible C data type: ______
class object
readwrite
reference counting
struct
20. Data types are divided into two main categories: integer and ______
floating-point
pointer
instance
Edit>Refactor>Convert to Objective-C ARC
21. A method that can operate on class objects rather than instances of the class.
fields
NSObject
class method
asynchronous message
22. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
designated initializer
adopt
C operators
23. Xcode sequence to convert non-ARC apps to ARC
class
formal protocol
floating-point
Edit>Refactor>Convert to Objective-C ARC
24. An object of unknown class. Interface is published through protocol declaration.
procedural programming language
anonymous object
assignment
@implementation
25. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
abstract superclass
framework
assign
26. This symbol denotes a method as being a class method
+
selector
class
Unsigned
27. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
printf( )
fields
mutex
NSString
28. C-style strings always end with a ____ character
compile time
nil
null
abstract superclass
29. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
deprecated
reference counting
cycles
copy
30. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
cycles
Enumerations
Smalltalk
delegates
31. Property attribute that synthesizes accessors that are not thread safe
Encapsulation
nonatomic
NSString
Unitary
32. In Objective-C floats are more commonly used than ______
[receiver message];
precedence
delegate
doubles
33. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
Cocoa
comma-separated
selector
init
34. A ____ ____ is a situation where you free memory and then accidentally continue to use it
deprecated
dangling pointer
@interface
class
35. 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.
Signed
@implementation
Interface Builder
doubles
36. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
superclass
delegates
zero
37. Objective-C binds methods and arguments at _____ instead of compile time
runtime
dispatch table
message
protocol
38. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Protocols
procedures
remote object
assignment
39. An architecture that facilitates communication between objects in different address spaces.
+
distributed objects
Cocoa
C operators
40. A message sent from one application to an object in another application.
remote message
dangling pointer
remote object
protocol
41. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
double
delegates
mutex
cannot
42. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
C operators
synchronous message
inheritance
dispatch table
43. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
adopt
polymorphism
9
event
44. Initializer method traditionally begin with the _____ prefix
init
readwrite
adopt
class
45. ____ provide a concise & elegant method for defining a discrete set of values
unitary
Enumerations
formal protocol
remote message
46. Another name for a class that's defined solely so that other classes can inherit from it.
instance
formal protocol
Edit>Refactor>Convert to Objective-C ARC
abstract superclass
47. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
pointers
procedural programming language
+
factory object
48. To destroy an object set the variable that points to it to _____
structures
nil
weak
init
49. 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.
procedural programming language
reference counting
precedence
%@
50. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
Binary
superclass
instance method
asynchronous message
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests