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. Objective-C borrows much of its syntax from ______ one of the earliest object-oriented languages
Smalltalk
reference counting
readwrite
class method
2. Property attribute where the setter stores the assigned value but does not perform any memory management.
reference counting
Smalltalk
superclass
assign
3. Property attribute that synthesizes accessors that are not thread safe
precedence
nonatomic
class
remote message
4. Xcode sequence to convert non-ARC apps to ARC
weak
properties
Edit>Refactor>Convert to Objective-C ARC
link time
5. ____ provide a concise & elegant method for defining a discrete set of values
informal protocol
Cocoa
developer intent
Enumerations
6. 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.
superset
abstract class
dynamic typing
double
7. In object-oriented programming the object that is sent a message.
receiver
memory leak
dynamic typing
init
8. A method that can operate on class objects rather than instances of the class.
Pointers
C operators
struct
class method
9. 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.
subclass
dispatch table
designated
id
10. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
distributed objects
designated
cycles
+
11. 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.
Cocoa
init
designated
dynamic allocation
12. 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.
superclass
instance variable
inheritance hierarchy
reference counting
13. Objective-C methods are called using ____ _____
developer intent
square brackets
Signed
@interface
14. Objective-C binds methods and arguments at _____ instead of compile time
9
runtime
polymorphism
cycles
15. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
%@
Pointers
formal protocol
comma-separated
16. An object of unknown class. Interface is published through protocol declaration.
interface
anonymous object
dynamic allocation
designated
17. Finding the method implementation to invoke in response to the message
dynamic binding
factory object
unitary
long long
18. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
init
class method
readonly
procedural programming language
19. Initializer method traditionally begin with the _____ prefix
init
NSObject
mutex
readonly
20. 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.
adopt
object
Interface Builder
asynchronous message
21. A set of method definitions that is segregated from the rest of the class definition.
polymorphism
chars
inheritance
category
22. The direct or indirect report of external activity especially user activity on the keyboard and mouse.
implementation
heap
event
%
23. An instance variable that points to another object; _____ instance variables are a way for an object to keep track of the other objects to which it may need to send messages.
event
strong
outlet
%
24. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
compile time
designated
message
chars
25. Created by the compiler - lacks instance variables and can't be statically typed but otherwise behave like all other objects. As the receiver in a message expression - a it is represented by the class name.
class object
link time
Smalltalk
value
26. 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.
object
Binary
message expression
+
27. Symbol used to denote a placeholder in a format string
%
long long
Pointers
Categories
28. 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
assignment
value
ampersand (&)
29. 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.
copy
chars
runtime
attributes
30. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
asterisk (*)
strong
implementation
receiver
31. The Objective-C runtime table that contains entries that associate method selectors with the class-specific addresses of the methods they identify.
dispatch table
Interface Builder
delegate
[receiver message];
32. If you are compiling an application with ARC (Automatic reference Counting) you _______ store Objective-C objects inside a struct
cannot
unitary
cycles
developer intent
33. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
double
reference counting
inheritance
@interface
34. A struct may contain multiple ____ consisting of different data types
factory
Enumerations
class
fields
35. Objective-C's protocols are really about communicating _____ _______
readonly
Signed
%@
developer intent
36. When creating a class header file you begin with the _____ keyword and close with the @end keyword
Categories
subclass
delegate
@interface
37. _____ operators take 2 operands
Binary
encapsulation
developer intent
fields
38. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
asynchronous message
[receiver message];
Edit>Refactor>Convert to Objective-C ARC
39. In object-oriented programming the ability of different objects to respond each in its own way - to the same message.
outlet
polymorphism
struct
message expression
40. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
@interface
Categories
remote message
C operators
41. 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
Pointers
dispatch table
conform
asterisk (*)
42. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
namespace
pointers
interface
Smalltalk
43. The root class in Objective-C
class
NSObject
ARC
method
44. The first index in an array is valued at ____
factory
implementation
zero
AppKit
45. An object that acts on behalf of another object.
printf( )
delegate
static typing
remote message
46. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
doubles
assignment
asynchronous message
framework
47. The most flexible C data type: ______
procedural programming language
struct
printf( )
@implementation
48. Three main categories of more complicated data structures:_______ - arrays and structs
Interface Builder
Binary
instance
pointers
49. 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
delegates
Product>Profile>Leaks>Profile
instance method
50. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
distributed objects
precedence
designated initializer
procedures
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