Do You Know Everything About Objective-c?

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By K_Enidaa
K
K_Enidaa
Community Contributor
Quizzes Created: 15 | Total Attempts: 5,011
| Attempts: 125 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. What's the filename extension for implementation program files? 

Explanation

The filename extension for implementation program files is .m. This extension is commonly used in programming languages such as Objective-C and MATLAB to denote implementation files. These files contain the actual code and logic that make up the program. By using the .m extension, it is easier for developers and compilers to identify and differentiate these files from other types of files in the project.

Submit
Please wait...
About This Quiz
Do You Know Everything About Objective-c? - Quiz

Back then in the 1980s, Objective-C was Apple's pride and joy. Times have changed, but the significance of Objective-C hasn't faded. Today, we're testing your knowledge on this... see moregeneral-purpose, object-oriented programming. Let's see are you an Objective-C expert! see less

2. Where does Objective-C derive its object syntax from?

Explanation

Objective-C derives its object syntax from Smalltalk. Smalltalk is an object-oriented programming language that was developed in the 1970s. Objective-C, which was created in the 1980s, borrowed many of its object-oriented features and syntax from Smalltalk. This includes concepts such as message passing, dynamic typing, and the use of square brackets for method calls. By incorporating Smalltalk's object syntax, Objective-C was able to provide a powerful and flexible programming language for developing software applications.

Submit
3. What's Objective-C model of object-oriented programming based on?

Explanation

Objective-C model of object-oriented programming is based on message passing to object instances. In Objective-C, objects communicate with each other by sending messages. When a message is sent to an object, the object's method corresponding to that message is executed. This allows objects to interact and collaborate with each other, forming the basis of object-oriented programming in Objective-C.

Submit
4. Which protocols does Objective-C use?

Explanation

Objective-C uses both informal and formal protocols. Informal protocols are a way to define a set of methods that objects can choose to implement, providing a flexible way to extend functionality. Formal protocols, on the other hand, are a more structured approach where a set of methods must be implemented by conforming objects. By supporting both types of protocols, Objective-C allows developers to choose the level of flexibility and structure they need in their code.

Submit
5. What's "Objective-C without the C"? 

Explanation

Swift is the correct answer because it is known as "Objective-C without the C." Swift is a programming language developed by Apple that is designed to be more modern, safe, and easier to use than Objective-C. It is compatible with Objective-C and can be used alongside it in iOS and macOS development. Swift eliminates the need for many of the complex and error-prone features of Objective-C, making it a more streamlined and efficient language for developing applications.

Submit
6. What does syntax allow? 

Explanation

Syntax allows for the pseudo-naming of arguments. This means that when writing code, you can use descriptive names for the arguments instead of the actual variable names. This can make the code more readable and easier to understand for both the programmer and other individuals who may need to work with the code. Pseudo-naming of arguments is a feature provided by the syntax of programming languages.

Submit
7. Which statement is true?

Explanation

Objective-C can send messages to an object that may not respond. This means that Objective-C allows for the sending of messages to an object without requiring the object to have a defined response or method implementation. This flexibility allows for dynamic messaging and handling of potential errors or unexpected scenarios in Objective-C programming.

Submit
8. What is posing?

Explanation

Posing refers to the act of allowing a class to replace another class within a program. This means that one class can take on the functionality and behavior of another class, providing flexibility and customization options within the program. This concept is often used in object-oriented programming to facilitate easier modifications and updates to the program's code.

Submit
9. What do you use to write methods? 

Explanation

Interface declarations are used to define methods in programming. An interface is a collection of abstract methods that can be implemented by classes. By using interface declarations, programmers can define the methods that need to be implemented by a class, without specifying how they should be implemented. This allows for code reusability and ensures that classes implementing the interface have the required methods. Therefore, interface declarations are the correct choice for writing methods.

Submit
10. What was Objective-C for Apple back in the 1980s? 

Explanation

Objective-C was Apple's main programming language in the 1980s. It was not a language that wasn't used at all or stolen from Apple's opponent. It was also not Apple's second created language. Objective-C was widely used by Apple for developing software and applications during that time period.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 18, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 18, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • May 06, 2018
    Quiz Created by
    K_Enidaa
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What's the filename extension for implementation program...
Where does Objective-C derive its object syntax from?
What's Objective-C model of object-oriented programming based on?
Which protocols does Objective-C use?
What's "Objective-C without the C"? 
What does syntax allow? 
Which statement is true?
What is posing?
What do you use to write methods? 
What was Objective-C for Apple back in the 1980s? 
Alert!

Advertisement