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. 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.
[receiver message];
mutex
synchronous message
instance variable
2. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
pointer
assignment
binary
protocol
3. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
designated
AppKit
C operators
square brackets
4. Finding the method implementation to invoke in response to the message
precedence
attributes
class method
dynamic binding
5. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
message expression
class
instance
struct
6. A variable that points to the memory address of another value
doubles
Enumerations
pointer
protocol
7. The most flexible C data type: ______
init
abstract superclass
asterisk (*)
struct
8. An architecture that facilitates communication between objects in different address spaces.
distributed objects
Edit>Refactor>Convert to Objective-C ARC
zero
C operators
9. 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.
dispatch table
object
compile time
binary
10. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
Edit>Refactor>Convert to Objective-C ARC
[receiver message];
framework
double
11. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
null
asynchronous message
Protocols
factory object
12. 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
Unitary
assign
inheritance
13. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
delegates
Cocoa
runtime
interface
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).
memory leak
interface
message expression
Cocoa
15. ____ provide a concise & elegant method for defining a discrete set of values
namespace
@implementation
copy
Enumerations
16. An object in another application - one that's a potential receiver for a remote message.
polymorphism
runtime
class object
remote object
17. Any method that can be used by an instance of a class rather than by the class object.
instance method
nil
Encapsulation
dynamic typing
18. Property attribute that synthesizes both a getter and setter for the property
readwrite
dynamic binding
category
Unitary
19. a++; is an example of using a _____ operator
comma-separated
superclass
NSString
unitary
20. Discovering the class of an object at runtime rather than at compile time.
dynamic typing
informal protocol
interface
polymorphism
21. When creating a class header file you begin with the _____ keyword and close with the @end keyword
inheritance hierarchy
receiver
Interface Builder
@interface
22. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
long long
compile time
instance variable
Binary
23. 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.
selector
fields
cycles
assignment
24. Rather than using arrays in Objective-C we often are able to use it's collection classes of NSArray - NSSet and NSDictionary with _____ for strings
dangling pointer
readonly
superset
NSString
25. 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.
dynamic typing
inheritance hierarchy
asynchronous message
reference counting
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.
assignment
event
copy
namespace
27. Objective-C is a _____ of the C language
superset
synchronous message
copy
instance method
28. _____ 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'.
mutex
Categories
static typing
Encapsulation
29. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
dynamic allocation
deprecated
comma-separated
procedures
30. A ____ ____ is a situation where you free memory and then accidentally continue to use it
nil
dispatch table
@interface
dangling pointer
31. 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).
implementation
framework
message expression
Unsigned
32. 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.
readonly
Edit>Refactor>Convert to Objective-C ARC
abstract class
formal protocol
33. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
deprecated
readonly
struct
precedence
34. 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
abstract superclass
protocol
class
structures
35. _____ allow indirect access and modification of a variable's value.
id
Pointers
readwrite
procedural programming language
36. In object-oriented programming the object that is sent a message.
designated
Unitary
conform
receiver
37. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
Unsigned
%@
class
38. Data types are divided into two main categories: integer and ______
floating-point
Binary
message
Encapsulation
39. 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
designated
fields
remote object
40. Objective-C methods are called using ____ _____
square brackets
factory object
category
Enumerations
41. Any class that's one step below another class in the inheritance hierarchy.
anonymous object
subclass
instance variable
id
42. Another name for a class that's defined solely so that other classes can inherit from it.
zero
Encapsulation
abstract superclass
designated
43. A method that can operate on class objects rather than instances of the class.
factory object
id
class method
subclass
44. There are ____ fundamental building blocks in Objective-C
link time
assignment
designated
9
45. Property attribute where the setter stores the assigned value but does not perform any memory management.
assign
implementation
category
remote object
46. An object that acts on behalf of another object.
dispatch table
readonly
@implementation
delegate
47. A compiler feature that provides automated memory management
procedures
%@
ARC
dynamic typing
48. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
chars
attributes
link time
mutex
49. In C all functions pass their arguments by ____ which means the compiler makes local copies of those arguments
value
NSObject
Categories
memory leak
50. ARC is susceptible to retain _____
interface
C operators
cycles
factory
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