1. Question:What is the use of "enctype" attribute in a html form? 

    Answer
    The enctype attribute determines how the form-data should be encoded when submitting it to the server. We need to set enctype as "multipart/form-data" when we are using a form for uploading files






    1. Report
  2. Question:Define exceptions.
               

    Answer
    In programming, often involves unforeseen happenings that disrupt the flow of events.These  unexpected happenings are known as exceptions.






    1. Report
  3. Question:What are the types of key of array?

     

    Answer
    Each array consists of two components:  key and a value. Keys can be numerical or associative. Numerical key use numeric value and associative key use string value.







    1. Report
  4. Question:Between echo () and print () functions which one is the faster and why?

     

    Answer
    The echo() function is a tad faster than print() function; because it returns nothing, whereas print () will return 1 if the statement is successfully output. 







    1. Report
  5. Question:What are class and object?

     

    Answer
    Class: Classes are intended to represent those real-life items that we would like to manipulate within an application.

    Object: A class provides a basis from which we can create specific instances of the entity the class models, better known as objects. For example, an employee management application may include an Employee class. we can then call upon this class to create and maintain specific instances.






    1. Report
Copyright © 2025. Powered by Intellect Software Ltd