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.
dereference (dereferencing)
synchronous message
static typing
method
2. The root class in Objective-C
protocol
attributes
reference counting
NSObject
3. ______ data types are always zero or greate
double
nil
unitary
Unsigned
4. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
message expression
NSObject
structures
procedural programming language
5. 3 Common Float data types: float - _____ - CGFloat
polymorphism
double
dynamic binding
NSObject
6. 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.
class object
@interface
id
factory object
7. Zeroing weak referencing should be used for _____ and data sources to prevent inadvertent retain cycles
zero
long long
delegates
%
8. All objects are created on the _____
Encapsulation
heap
delegate
cycles
9. Square bracket syntax for calling a method
[receiver message];
memory leak
pointer
abstract superclass
10. ______ operators take a single operand
outlet
struct
Unitary
instance
11. Three main categories of more complicated data structures:_______ - arrays and structs
abstract class
pointers
object
runtime
12. Finding the method implementation to invoke in response to the message
selector
Categories
namespace
dynamic binding
13. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
designated
unitary
message
anonymous object
14. 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).
reference counting
doubles
message expression
printf( )
15. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
long long
remote message
instance method
polymorphism
16. Property attribute that causes the setter to store a copy of the assigned value
cannot
comma-separated
copy
dereference (dereferencing)
17. 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.
conform
ampersand (&)
instance
selector
18. 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.
Signed
subclass
dispatch table
instance variable
19. 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.
abstract class
implementation
namespace
category
20. To destroy an object set the variable that points to it to _____
nil
heap
AppKit
cannot
21. Instance variables are optional in iOS if ________ are used
event
long long
properties
instance method
22. A message sent from one application to an object in another application.
remote message
namespace
reference counting
Binary
23. The part of an Objective-C class specification that defines public methods (those declared in the class's interface) as well as private methods (those not declared in the class's interface).
procedures
implementation
dynamic binding
superset
24. 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
runtime
event
Binary
synchronous message
25. An object of unknown class. Interface is published through protocol declaration.
anonymous object
abstract class
readonly
id
26. A variable that points to the memory address of another value
cannot
pointer
object
dynamic typing
27. 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.
designated
NSString
developer intent
object
28. 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.
delegates
dynamic typing
adopt
encapsulation
29. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
asterisk (*)
factory object
runtime
deprecated
30. _____ allow you to add new methods to existing classes
struct
Categories
fields
designated initializer
31. In object-oriented programming a procedure that can be executed by an object.
C operators
method
struct
cannot
32. _____ data types can be both positive and negative
fields
@interface
Signed
adopt
33. A set of method definitions that is segregated from the rest of the class definition.
assignment
category
procedural programming language
developer intent
34. 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.
runtime
factory object
dynamic typing
assignment
35. 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
event
@interface
null
36. A ____ _____ is where you forget to free up memory
memory leak
procedures
inheritance hierarchy
init
37. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
instance
abstract superclass
[receiver message];
category
38. This symbol denotes a method as being a class method
+
distributed objects
superset
init
39. Initializer method traditionally begin with the _____ prefix
remote object
fields
informal protocol
init
40. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
attributes
9
C operators
protocol
41. Same as class object. (second way to say it.)
subclass
id
factory object
asterisk (*)
42. A compiler feature that provides automated memory management
remote object
asterisk (*)
pointers
ARC
43. In a format string the place holder for an object is ______
%@
assign
delegates
[receiver message];
44. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
heap
assignment
compile time
memory leak
45. An object in another application - one that's a potential receiver for a remote message.
link time
doubles
remote object
informal protocol
46. Any method that can be used by an instance of a class rather than by the class object.
Unsigned
@interface
instance method
cannot
47. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Encapsulation
init
readwrite
framework
48. C-style strings are stored in an array of _____
delegate
chars
deprecated
heap
49. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
Binary
Smalltalk
assignment
50. 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.
namespace
memory leak
@implementation
asterisk (*)
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