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. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
cannot
value
weak
Protocols
2. 3 Common Float data types: float - _____ - CGFloat
reference counting
distributed objects
double
delegate
3. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
copy
comma-separated
precedence
class
4. Data types are divided into two main categories: integer and ______
instance method
abstract superclass
floating-point
properties
5. Another name for a class that's defined solely so that other classes can inherit from it.
abstract superclass
event
Unsigned
message
6. The part of an Objective-C class specification that declares its public interface which includes its superclass name & instances variables and public-method prototypes.
asterisk (*)
message
interface
assign
7. _____ allow indirect access and modification of a variable's value.
procedural programming language
class method
Interface Builder
Pointers
8. _____ 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'.
NSObject
dynamic binding
Encapsulation
factory
9. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
abstract superclass
inheritance
class
%@
10. ARC is susceptible to retain _____
cycles
Smalltalk
@implementation
Interface Builder
11. A set of method definitions that is segregated from the rest of the class definition.
zero
unitary
delegate
category
12. 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
memory leak
structures
compile time
long long
13. In a format string the place holder for an object is ______
attributes
Binary
%@
abstract class
14. 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.
event
Signed
id
protocol
15. 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.
reference counting
dangling pointer
encapsulation
assignment
16. 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.
remote message
[receiver message];
Interface Builder
abstract class
17. 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
inheritance
synchronous message
9
18. An object in another application - one that's a potential receiver for a remote message.
null
NSString
remote object
Pointers
19. 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.
developer intent
AppKit
chars
synchronous message
20. Xcode sequence to examine an app for memory leaks or retain cycles
Product>Profile>Leaks>Profile
factory object
Unsigned
cycles
21. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
floating-point
framework
asterisk (*)
polymorphism
22. 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.
cannot
abstract class
formal protocol
procedures
23. A class that's one step above another class in the inheritance hierarchy; the class through which a subclass inherits methods and instance variables.
link time
properties
superclass
adopt
24. The process of setting or reading the value at an address pointed to by a pointer
factory object
distributed objects
dereference (dereferencing)
synchronous message
25. The time when source code is compiled; constrained by the amount and kind of information encoded in source files.
receiver
developer intent
compile time
polymorphism
26. 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).
weak
implementation
inheritance hierarchy
instance
27. When creating a class header file you begin with the _____ keyword and close with the @end keyword
formal protocol
Pointers
procedures
@interface
28. Objective-C binds methods and arguments at _____ instead of compile time
compile time
runtime
factory object
abstract superclass
29. ____ provide a concise & elegant method for defining a discrete set of values
pointers
superset
Enumerations
init
30. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
runtime
protocol
dereference (dereferencing)
weak
31. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
precedence
long long
square brackets
outlet
32. The most flexible C data type: ______
dereference (dereferencing)
struct
Pointers
Product>Profile>Leaks>Profile
33. In a home building analogy a ____ is the blueprint and the object is the house
class
@interface
superclass
delegate
34. A variable that points to the memory address of another value
pointer
C operators
delegate
dynamic typing
35. ______ operators take a single operand
chars
Unitary
dynamic allocation
remote message
36. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
Binary
chars
abstract superclass
comma-separated
37. A message sent from one application to an object in another application.
long long
remote message
Smalltalk
doubles
38. A prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
delegates
class
copy
runtime
39. Consider: [NSString alloc]. 'alloc' is an example of a(n) class method rather than a _______ method
attributes
runtime
Product>Profile>Leaks>Profile
instance
40. An architecture that facilitates communication between objects in different address spaces.
distributed objects
message expression
AppKit
properties
41. A method that can operate on class objects rather than instances of the class.
delegates
class method
runtime
init
42. Any class that's one step below another class in the inheritance hierarchy.
outlet
Protocols
init
subclass
43. _____ operators take 2 operands
outlet
runtime
Binary
message
44. In object-oriented programming - the method selector (name) and accompanying parameters that tell the receiving object in a message expression what to do.
9
floating-point
inheritance hierarchy
message
45. _____ allow you to add new methods to existing classes
delegate
asterisk (*)
Categories
weak
46. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
assignment
superclass
instance
instance variable
47. Objective-C is a _____ of the C language
developer intent
mutex
Signed
superset
48. Property attribute where the setter stores the assigned value but does not perform any memory management.
namespace
event
chars
assign
49. _____ data types can be both positive and negative
instance
namespace
Protocols
Signed
50. Property attribute that causes the setter to store a strong reference to the assigned value
runtime
double
struct
strong
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