153k views
25 votes
PHP is based on C rather than ______.

Select one:


a. PEARL


b. JAVA


c. PERL


d. COBOL

User Godsent
by
3.9k points

2 Answers

6 votes

Final answer:

The programming language PHP is based on C and not Perl. PHP was designed primarily for web development but can also be used for other types of programming, and its syntax incorporates elements from various languages.

Step-by-step explanation:

PHP is based on the C programming language. The correct answer to the question 'PHP is based on C rather than ______' is c. PERL.

PHP, or Hypertext Preprocessor, has a syntax that has borrowed elements from C, Perl, and other languages, but its foundational base is predominantly from C. The language was created to facilitate web development and is widely used for server-side scripting, command-line scripting, and writing desktop applications.

PHP offers web developers a great deal of flexibility and powerful features, making it an enduring and popular choice for creating dynamic web pages and applications.

User Rudy Seidinger
by
4.7k points
7 votes

Answer:

The answer is "option b and option d"

Step-by-step explanation:

In this question, both choice "b and c" is correct because Java is compiled and run on a JVM and it uses the byte code. On the other hand, PHP has interpreted language, that compiled into the bytecode after that the output engine interpreted. Similarly, the COBOL is used for enterprise, finance, and administrative systems, and PHP is used in web creation.

User ANoble
by
4.2k points