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. 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.
outlet
link time
message
compile time
2. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
selector
unitary
message
attributes
3. In Objective-C floats are more commonly used than ______
floating-point
Interface Builder
superset
doubles
4. 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.
reference counting
procedural programming language
binary
compile time
5. ____ provide a concise & elegant method for defining a discrete set of values
9
Enumerations
heap
Interface Builder
6. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
protocol
init
superset
7. _____ operators take 2 operands
NSObject
compile time
Binary
adopt
8. Finding the method implementation to invoke in response to the message
inheritance hierarchy
encapsulation
dynamic binding
dispatch table
9. Property attribute that synthesizes only a getter for the property
binary
attributes
readonly
heap
10. A struct may contain multiple ____ consisting of different data types
category
namespace
Protocols
fields
11. 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).
namespace
-
heap
message expression
12. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
procedural programming language
struct
Protocols
protocol
13. Symbol used to denote a placeholder in a format string
Interface Builder
compile time
Smalltalk
%
14. ______ operators take a single operand
assign
reference counting
9
Unitary
15. _____ data types can be both positive and negative
Binary
9
delegates
Signed
16. A compiler feature that provides automated memory management
nonatomic
ARC
Product>Profile>Leaks>Profile
@implementation
17. Placing a ____ before a normal variable name gives it's address
ampersand (&)
AppKit
designated initializer
framework
18. Xcode sequence to examine an app for memory leaks or retain cycles
synchronous message
dereference (dereferencing)
designated initializer
Product>Profile>Leaks>Profile
19. Square bracket syntax for calling a method
comma-separated
[receiver message];
nonatomic
heap
20. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
informal protocol
value
chars
polymorphism
21. _____ is one of the main advantages of object-oriented code and allows objects to 'hide away' much of their complexity operating at times like a proverbial 'black-box'.
Encapsulation
designated
method
static typing
22. The most flexible C data type: ______
struct
selector
properties
ARC
23. Property attribute where the setter stores the assigned value but does not perform any memory management.
comma-separated
assign
formal protocol
double
24. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
procedural programming language
adopt
dispatch table
polymorphism
25. 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
Cocoa
category
runtime
designated initializer
26. _____ allow you to add new methods to existing classes
unitary
Categories
Enumerations
null
27. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
dangling pointer
instance variable
static typing
Pointers
28. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
null
designated
+
compile time
29. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
designated initializer
superclass
@interface
square brackets
30. 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.
Interface Builder
unitary
[receiver message];
dynamic allocation
31. All objects are created on the _____
selector
heap
NSString
reference counting
32. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
subclass
asterisk (*)
ARC
dynamic binding
33. 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.
instance variable
id
abstract class
event
34. 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
conform
readwrite
namespace
Unitary
35. 3 Common Float data types: float - _____ - CGFloat
[receiver message];
double
developer intent
pointer
36. Property attribute that synthesizes both a getter and setter for the property
double
Encapsulation
readwrite
weak
37. ARC is susceptible to retain _____
cycles
adopt
null
@interface
38. 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
@interface
9
39. Another name for a class that's defined solely so that other classes can inherit from it.
printf( )
abstract superclass
mutex
+
40. Objective-C objects should use strong or weak ______
C operators
procedural programming language
attributes
framework
41. A message sent from one application to an object in another application.
remote message
encapsulation
struct
heap
42. Objective-C methods are called using ____ _____
deprecated
superset
square brackets
polymorphism
43. The root class in Objective-C
assignment
C operators
NSObject
outlet
44. Objective-C binds methods and arguments at _____ instead of compile time
runtime
ampersand (&)
superclass
class object
45. 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.
informal protocol
factory object
AppKit
doubles
46. 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
abstract class
id
procedural programming language
47. 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.
outlet
implementation
abstract class
Interface Builder
48. The _____ function can be used to print a message to the console
instance
implementation
printf( )
Unitary
49. An architecture that facilitates communication between objects in different address spaces.
informal protocol
distributed objects
copy
encapsulation
50. In a home building analogy a ____ is the blueprint and the object is the house
class
delegate
null
subclass
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