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. 3 Common Float data types: float - _____ - CGFloat
9
dispatch table
double
outlet
2. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
remote message
value
long long
formal protocol
3. Symbol used to denote a placeholder in a format string
factory object
asterisk (*)
%
compile time
4. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
anonymous object
struct
framework
5. An object that acts on behalf of another object.
Binary
delegate
ARC
class object
6. Objective-C's protocols are really about communicating _____ _______
developer intent
Enumerations
encapsulation
anonymous object
7. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
attributes
instance
unitary
assignment
8. A struct may contain multiple ____ consisting of different data types
procedural programming language
procedures
fields
remote object
9. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
dynamic typing
link time
delegates
mutex
10. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
dynamic typing
event
Cocoa
doubles
11. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
polymorphism
class
Cocoa
attributes
12. Initializer method traditionally begin with the _____ prefix
pointer
readonly
init
inheritance hierarchy
13. a++; is an example of using a _____ operator
double
unitary
runtime
init
14. A variable that points to the memory address of another value
pointer
class
abstract superclass
doubles
15. The general type for any kind of object regardless of class; defined as a pointer to an object data structure; can be used for both class objects and instances of a class.
superclass
id
anonymous object
procedural programming language
16. A logical subdivision of a program within which all names must be unique. Symbols in one do not conflict with identically named symbols in another.
dynamic binding
anonymous object
attributes
namespace
17. A protocol declared as a category usually as a category of the NSObject class.
pointer
protocol
informal protocol
abstract superclass
18. 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
binary
value
dynamic typing
19. The root class in Objective-C
synchronous message
class
double
NSObject
20. Objective-C binds methods and arguments at _____ instead of compile time
remote message
runtime
pointer
abstract class
21. Objective-C methods are called using ____ _____
instance variable
asynchronous message
square brackets
id
22. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
printf( )
@implementation
receiver
@interface
23. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
adopt
Interface Builder
deprecated
strong
24. 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.
nonatomic
link time
instance
dynamic typing
25. Placing a ____ before a normal variable name gives it's address
C operators
structures
cannot
ampersand (&)
26. 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
memory leak
Pointers
outlet
27. The init... method that has primary responsibility for initializing new instances of a class. Each class defines or inherits its own. Through messages to self other init... methods in the same class directly or indirectly invoke it and then it - thro
designated initializer
runtime
remote object
compile time
28. C-style strings are stored in an array of _____
anonymous object
zero
chars
Encapsulation
29. Any method that can be used by an instance of a class rather than by the class object.
asterisk (*)
-
instance method
readwrite
30. C-style strings always end with a ____ character
init
+
Unsigned
null
31. 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
instance method
category
nil
32. 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
delegate
precedence
fields
synchronous message
33. Property attribute that synthesizes both a getter and setter for the property
readwrite
assign
instance method
Interface Builder
34. The most flexible C data type: ______
struct
runtime
class method
structures
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
C operators
readonly
Unitary
36. Property attribute that causes the setter to store a copy of the assigned value
Binary
copy
receiver
class
37. 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.
fields
abstract class
@implementation
asynchronous message
38. A method that can operate on class objects rather than instances of the class.
dangling pointer
class method
assignment
procedural programming language
39. 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.
weak
instance
message expression
runtime
40. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
namespace
event
implementation
delegate
41. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
procedural programming language
readwrite
interface
weak
42. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
id
strong
Encapsulation
43. ____ provide a concise & elegant method for defining a discrete set of values
Categories
superclass
Enumerations
abstract class
44. A message sent from one application to an object in another application.
superset
factory object
remote message
runtime
45. The process of setting or reading the value at an address pointed to by a pointer
class
event
instance
dereference (dereferencing)
46. A ____ ____ is a situation where you free memory and then accidentally continue to use it
dangling pointer
dispatch table
inheritance hierarchy
Protocols
47. 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.
Signed
precedence
properties
formal protocol
48. To destroy an object set the variable that points to it to _____
long long
fields
nil
link time
49. A class is said to do this when it declares that it implements all the methods in the protocol.
C operators
adopt
Edit>Refactor>Convert to Objective-C ARC
superclass
50. 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.
fields
AppKit
instance
designated initializer
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