1. Question:

    Difference between get and post method?

     

    Answer

    GET Method:get method is used for submitting small amount of data. Data shows in the URL, so it is not secure.

    POST Method:post method is used for submitting small amount of data. Data does not show URL, so it is  secure.







    1. Report
  2. Question:What is regular expression? 

    Answer
    Ans: The symbolic representation of data is called regular expression. 
    The syntax of regular expression is:
    Variable_name.method_name(/searching_word/modifiers,”parsed_value”);







    1. Report
  3. Question:What is cross site scripting? Define SQL injection. 

    Answer
    Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications which allow code injection by malicious web users into the web pages viewed by other users. 
    
    Examples of such code include HTML code and client-side scripts. SQL injection is a code injection technique that exploits a security vulnerability occurring in the database layer of an application.
    
    The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed






    1. Report
  4. Question:How many ways you can write into a file? 

    Answer
    Ans: r+,W, w+, A, a+, X,x+






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

     

    Answer
    Class: Classes are intended to represent those real-life items that coder like to manipulate within an application.
    object: An instance of class is called object.







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