SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
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 prototype for a particular kind of object; declares instance variables and defines methods for all members of the class.
class
9
-
readwrite
2. 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.
NSString
AppKit
structures
strong
3. In computer science the mathematical concept of 'order of operations' is known as the 'order of ______'
readwrite
precedence
doubles
abstract superclass
4. The 6 main categories of operators are: ____ - arithmetic - comparison - logical - bitwise and membership
class
floating-point
remote object
assignment
5. In object-oriented programming a procedure that can be executed by an object.
attributes
method
cannot
instance variable
6. A class is said to do this when it declares that it implements all the methods in the protocol.
Cocoa
dangling pointer
adopt
null
7. Placing a ____ before a normal variable name gives it's address
ampersand (&)
weak
interface
dynamic allocation
8. A message sent from one application to an object in another application.
copy
factory object
subclass
remote message
9. In object-oriented programming the hierarchy of classes that's defined by the arrangement of superclasses and subclasses. Every class (except root classes such as NSObject) has a superclass and any class may have an unlimited number of subclasses.
inheritance hierarchy
namespace
class object
%
10. A set of method definitions that is segregated from the rest of the class definition.
namespace
square brackets
static typing
category
11. C-style strings always end with a ____ character
factory
instance variable
null
unitary
12. 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.
message
asynchronous message
Interface Builder
Binary
13. In Objective-C floats are more commonly used than ______
doubles
struct
conform
NSObject
14. Procedures (like verbs) are processes that manipulate or transform data and in Objective-C these 3 elements are _____ - functions and methods
9
C operators
Product>Profile>Leaks>Profile
link time
15. Objective-C methods are called using ____ _____
square brackets
receiver
factory object
event
16. An advanced object-oriented development platform in Mac OS X; a set of frameworks whose primary programming interfaces are in Objective-C.
%@
formal protocol
assign
Cocoa
17. ____ provide a concise & elegant method for defining a discrete set of values
assign
class
Enumerations
developer intent
18. The nine fundamental building blocks of Objective-C can be dividing into 2 categories: data and _______
null
C operators
deprecated
procedures
19. Three main categories of more complicated data structures:_______ - arrays and structs
pointers
class
selector
Cocoa
20. When creating a class header file you begin with the _____ keyword and close with the @end keyword
instance
init
@interface
struct
21. The _____ function can be used to print a message to the console
printf( )
Binary
instance method
static typing
22. Initializer method traditionally begin with the _____ prefix
nil
encapsulation
formal protocol
init
23. 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).
dispatch table
message expression
deprecated
cannot
24. Objective-C is a _____ of the C language
superset
readwrite
dynamic allocation
remote object
25. Xcode sequence to convert non-ARC apps to ARC
Edit>Refactor>Convert to Objective-C ARC
abstract superclass
chars
object
26. Data types are divided into two main categories: integer and ______
procedural programming language
floating-point
delegate
method
27. This symbol denotes a method as being a class method
+
interface
static typing
class
28. Protocols are adopted by adding a ____________ list of protocols inside angled brackets after the superclass declaration in a class's @interface block
Unitary
null
%@
comma-separated
29. An object of unknown class. Interface is published through protocol declaration.
link time
deprecated
superclass
anonymous object
30. The time when files compiled from different source modules are linked into a single program. Decisions made by the linker are constrained by the compiled code and ultimately by the information contained in source code.
formal protocol
class
Unitary
link time
31. 7 Common Integer data types: BOOL - char- short - int - long - _____ - NSInteger
long long
method
class
abstract class
32. The first index in an array is valued at ____
protocol
attributes
asynchronous message
zero
33. A ____ ____ is a situation where you free memory and then accidentally continue to use it
printf( )
doubles
dangling pointer
instance variable
34. A way to package a logically related set of classes & protocols and functions together with localized strings & online documentation and other pertinent files.
framework
cycles
-
instance
35. A language such as C that organizes a program as a set of procedures that have definite beginnings and ends.
null
cannot
procedural programming language
nonatomic
36. 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.
message expression
Categories
remote object
runtime
37. Two additional foundational building blocks of Objective-C distinct from data and procedure type foundations: ________ and Categories/Extensions
memory leak
copy
designated
Protocols
38. Each class should have a ______ initializer a single method responsible for performing all of the object's setup and initialization.
designated
selector
nonatomic
asynchronous message
39. Xcode sequence to examine an app for memory leaks or retain cycles
remote message
id
subclass
Product>Profile>Leaks>Profile
40. In object-oriented programming the ability of a superclass to pass its characteristics (methods and instance variables) on to its subclasses.
init
Categories
inheritance
Interface Builder
41. a+b; is an example of using a _____ operator
binary
attributes
zero
outlet
42. The process of setting or reading the value at an address pointed to by a pointer
dereference (dereferencing)
9
fields
object
43. 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.
remote object
designated initializer
Edit>Refactor>Convert to Objective-C ARC
instance
44. 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
comma-separated
receiver
pointer
45. In the Objective-C language the declaration of a group of methods not associated with any particular class.
receiver
encapsulation
designated initializer
protocol
46. 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
Signed
copy
message expression
47. _____ 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'.
struct
readonly
%
Encapsulation
48. Property attribute that causes the setter to store a zeroing weak reference to the assigned value
instance variable
Categories
Unitary
weak
49. 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).
copy
class method
implementation
runtime
50. Same as class object. (first way to say it.)
factory
@interface
abstract superclass
implementation