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 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.
id
asynchronous message
inheritance hierarchy
Product>Profile>Leaks>Profile
2. 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
ARC
deprecated
compile time
3. 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 Builder
id
factory
polymorphism
4. 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
%@
instance
delegate
synchronous message
5. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
Categories
precedence
instance variable
procedures
6. Instance variables are optional in iOS if ________ are used
interface
properties
designated initializer
init
7. 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.
protocol
namespace
reference counting
runtime
8. Property attribute that synthesizes accessors that are not thread safe
cycles
square brackets
Protocols
nonatomic
9. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
instance
instance
cannot
Categories
10. There are ____ fundamental building blocks in Objective-C
Smalltalk
9
Pointers
remote object
11. Objective-C methods are called using ____ _____
square brackets
compile time
conform
namespace
12. A message sent from one application to an object in another application.
remote message
event
assignment
-
13. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
doubles
framework
receiver
asterisk (*)
14. Objective-C binds methods and arguments at _____ instead of compile time
Cocoa
conform
runtime
compile time
15. Objective-C is a _____ of the C language
memory leak
Product>Profile>Leaks>Profile
developer intent
superset
16. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
inheritance
Product>Profile>Leaks>Profile
cycles
long long
17. a+b; is an example of using a _____ operator
dynamic allocation
null
superset
binary
18. When creating a class implementation file you begin with the _____ keyword and close with the @end keyword
implementation
receiver
long long
@implementation
19. An object of unknown class. Interface is published through protocol declaration.
anonymous object
instance
@interface
chars
20. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
null
pointers
formal protocol
21. The first index in an array is valued at ____
ampersand (&)
zero
pointer
long long
22. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
inheritance
procedures
interface
comma-separated
23. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
Unitary
properties
delegate
24. In object-oriented programming a procedure that can be executed by an object.
namespace
event
method
binary
25. 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.
delegates
properties
category
object
26. 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.
NSObject
adopt
namespace
value
27. A set of method definitions that is segregated from the rest of the class definition.
[receiver message];
category
properties
comma-separated
28. _____ allow indirect access and modification of a variable's value.
init
reference counting
implementation
Pointers
29. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
Edit>Refactor>Convert to Objective-C ARC
Protocols
mutex
asterisk (*)
30. _____ operators take 2 operands
factory object
Binary
structures
formal protocol
31. When creating a class header file you begin with the _____ keyword and close with the @end keyword
procedures
selector
polymorphism
@interface
32. An object in another application - one that's a potential receiver for a remote message.
class
structures
remote object
polymorphism
33. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
NSString
strong
receiver
dispatch table
34. 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.
instance
comma-separated
selector
informal protocol
35. Finding the method implementation to invoke in response to the message
conform
ampersand (&)
dynamic binding
weak
36. Symbol used to denote a placeholder in a format string
%
link time
dispatch table
C operators
37. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
instance
-
weak
outlet
38. Placing a ____ before a normal variable name gives it's address
floating-point
ampersand (&)
class method
dangling pointer
39. Property attribute that synthesizes only a getter for the property
null
[receiver message];
instance variable
readonly
40. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
ARC
interface
struct
superclass
41. A compiler feature that provides automated memory management
selector
AppKit
ARC
readonly
42. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
dynamic typing
struct
class
dispatch table
43. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
instance method
static typing
runtime
Smalltalk
44. A class is said to do this when it declares that it implements all the methods in the protocol.
subclass
superset
Binary
adopt
45. C-style strings are stored in an array of _____
chars
assignment
developer intent
encapsulation
46. _____ allow you to add new methods to existing classes
Categories
dynamic typing
Smalltalk
strong
47. An object id with a value of 0.
nil
memory leak
abstract superclass
AppKit
48. 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
factory object
designated initializer
readwrite
49. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
value
dangling pointer
compile time
factory
50. A variable that points to the memory address of another value
pointer
assign
%@
remote object
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