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. 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.
AppKit
value
mutex
runtime
2. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
interface
remote message
procedural programming language
strong
3. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
Edit>Refactor>Convert to Objective-C ARC
runtime
subclass
4. The most flexible C data type: ______
struct
pointers
Unitary
dispatch table
5. Property attribute that causes the setter to store a strong reference to the assigned value
remote message
strong
dynamic binding
inheritance
6. 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.
Cocoa
strong
Enumerations
outlet
7. ARC is susceptible to retain _____
cycles
Categories
superclass
designated initializer
8. 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
namespace
encapsulation
precedence
conform
9. Data types are divided into two main categories: integer and ______
null
%@
floating-point
instance variable
10. When creating a class header file you begin with the _____ keyword and close with the @end keyword
@interface
factory
C operators
nil
11. Pointers are declared by placing a(n) ___ between the type declaration and the variable name
Unsigned
asterisk (*)
NSString
protocol
12. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
dereference (dereferencing)
comma-separated
binary
attributes
13. In the Objective-C language an object that belongs to (is a member of) a particular class; created at runtime according to the specification in the class definition.
instance
static typing
delegates
NSString
14. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
weak
distributed objects
cycles
9
15. Three main categories of more complicated data structures:_______ - arrays and structs
instance
attributes
designated initializer
pointers
16. Giving the compiler information about what kind of object an instance is - by typing it as a pointer to a class.
Signed
procedures
abstract class
static typing
17. 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
instance
runtime
properties
18. A _______ method is one that is likely to be unsupported in the future. It's use should be discontinued.
synchronous message
instance
nonatomic
deprecated
19. 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.
instance variable
class object
runtime
-
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.
subclass
Interface Builder
inheritance
conform
21. Property attribute that causes the setter to store a copy of the assigned value
Binary
copy
subclass
memory leak
22. A ____ ____ is a situation where you free memory and then accidentally continue to use it
abstract class
dispatch table
subclass
dangling pointer
23. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
binary
NSObject
outlet
inheritance
24. ____ provide a concise & elegant method for defining a discrete set of values
floating-point
static typing
Signed
Enumerations
25. Property attribute that synthesizes accessors that are not thread safe
adopt
procedural programming language
readonly
nonatomic
26. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
C operators
delegates
id
runtime
27. ______ operators take a single operand
factory
Signed
Unitary
class
28. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
instance variable
Smalltalk
procedural programming language
attributes
29. Finding the method implementation to invoke in response to the message
dynamic binding
developer intent
abstract class
Signed
30. This symbol denotes a method as being a class method
+
Smalltalk
informal protocol
instance method
31. To destroy an object set the variable that points to it to _____
instance
Pointers
nil
runtime
32. C-style strings are stored in an array of _____
developer intent
message
AppKit
chars
33. 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.
fields
procedural programming language
designated
encapsulation
34. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
designated initializer
message
nil
-
35. The _____ function can be used to print a message to the console
abstract superclass
polymorphism
factory object
printf( )
36. An object of unknown class. Interface is published through protocol declaration.
superclass
square brackets
pointer
anonymous object
37. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
polymorphism
asterisk (*)
compile time
distributed objects
38. _____ operators take 2 operands
method
conform
AppKit
Binary
39. A ____ _____ is where you forget to free up memory
Pointers
memory leak
ARC
Categories
40. Instance variables are optional in iOS if ________ are used
encapsulation
formal protocol
properties
value
41. The first index in an array is valued at ____
instance
zero
binary
asynchronous message
42. _____ 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'.
remote object
Encapsulation
runtime
namespace
43. A set of method definitions that is segregated from the rest of the class definition.
dynamic allocation
readwrite
category
cannot
44. A protocol declared as a category usually as a category of the NSObject class.
Smalltalk
informal protocol
@interface
runtime
45. Short for mutual exclusion semaphore. An object used to synchronize thread execution.
pointer
mutex
comma-separated
Encapsulation
46. In object-oriented programming a procedure that can be executed by an object.
abstract class
class object
method
9
47. An object in another application - one that's a potential receiver for a remote message.
double
synchronous message
chars
remote object
48. 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.
delegate
object
Protocols
class object
49. Any class that's one step below another class in the inheritance hierarchy.
selector
class
subclass
deprecated
50. 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).
message expression
protocol
anonymous object
designated
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