{"id":32953,"date":"2024-12-15T07:11:56","date_gmt":"2024-12-15T01:41:56","guid":{"rendered":"https:\/\/samacheerkalvi.guide\/?p=32953"},"modified":"2024-12-16T11:01:24","modified_gmt":"2024-12-16T05:31:24","slug":"samacheer-kalvi-12th-computer-applications-guide-chapter-4","status":"publish","type":"post","link":"https:\/\/samacheerkalvi.guide\/samacheer-kalvi-12th-computer-applications-guide-chapter-4\/","title":{"rendered":"Samacheer Kalvi 12th Computer Applications Guide Chapter 4 Introduction to Hypertext Pre-Processor"},"content":{"rendered":"

Tamilnadu State Board New Syllabus Samacheer Kalvi 12th Computer Applications Guide<\/a> Pdf Chapter 4 Introduction to Hypertext Pre-Processor Text Book Back Questions and Answers, Notes.<\/p>\n

Tamilnadu Samacheer Kalvi 12th Computer Applications Solutions Chapter 4 Introduction to Hypertext Pre-Processor<\/h2>\n

12th Computer Applications Guide Introduction to Hypertext Pre-Processor Text Book Questions and Answers<\/h3>\n

Part I<\/span><\/p>\n

Choose The Correct Answers<\/span><\/p>\n

Question 1.
\nWhat does PHP stand for?
\na) Personal Home Page
\nb) Hypertext Preprocessor
\nc) Pretext Hypertext Processor
\nd) Pre-processor Home Page
\nAnswer:
\nb) Hypertext Preprocessor<\/p>\n

\"Samacheer<\/p>\n

Question 2.
\nWhat does PHP files have a default file extension?
\na) .html
\nb) .xml
\nc) .php
\nd) .ph
\nAnswer:
\nc) .php<\/p>\n

Question 3.
\nA PHP script should start with………….. and end with …………….
\na) <php>
\nb) < ? php ?>
\nc) < ? ? >
\nd) < ?php ? >
\nAnswer:
\nb) < ? php ?><\/p>\n

Question 4.
\nWhich of the following must be installed on your computer so as to run PHP script?
\na) Adobe
\nb) windows
\nc) Apache
\nd) IIS
\nAnswer:
\nc) Apache<\/p>\n

\"Samacheer<\/p>\n

Question 5.
\nWe can use to ………… comment a single line?
\ni) \/?
\nii) \/\/
\niii) #
\niv) \/* *\/
\na) Only (ii)
\nb) (i), (iii) and (iv)
\nc) (ii), (iii) and (iv)
\nd) Both (ii) and (iv)
\ne) Both (ii) and (iii)
\nAnswer:
\ne) Both (ii) and (iii)<\/p>\n

Question 6.
\nWhich of the following PHP statement\/statements will store 41 in variable num?
\n(i) $x = 41;
\n(ii) $x = ’41’;
\n(iii) (i) $x = “41”;
\na) Both (i) and (ii)
\nb) All of the mentioned,
\nc) Only (iii)
\nd) Only (i)
\nAnswer:
\nd) Only (i)<\/p>\n

\"Samacheer<\/p>\n

Question 7.
\nWhat will be the output of the following PHP code?
\n<?php
\n$num = 1;
\n$num1 = 2;
\nprint $num . \u201c+\u2018 $numl ;
\na) 3
\nb) 1+2
\nc) 1.+.2
\nd) Error
\nAnswer:
\nc) 1.+.2<\/p>\n

Question 8.
\nWhich of the following PHP statements will output Hello World on the screen?
\na) echo (“Hello World”);
\nb) print (“Hello
\nWorld”);
\nc) printf (“Hello World”);
\nd) sprintf (“Hello
\nWorld”);
\nAnswer:
\na) echo (“Hello World”);<\/p>\n

Question 9.
\nWhich statement will output $x on the screen?
\na) echo “\\$x”;
\nb) echo “$$x”;
\nc) echo “\/$x”;
\nd) echo “$x;
\nAnswer:
\nb) echo “$$x”;<\/p>\n

\"Samacheer<\/p>\n

Question 10.
\nWhich of the below symbols is a newline character?
\na) \\r
\nb) \\n
\nc) \/n
\nd) \/r
\nAnswer:
\na) \\r<\/p>\n

Part II<\/span><\/p>\n

Short Answers<\/span><\/p>\n

Question 1.
\nWhat are the common usages of PHP?
\nAnswer:<\/p>\n

    \n
  • It is a very simple and lightweight open-source server-side scripting language.<\/li>\n
  • It can easily embed with HTML and other client-side scripting languages like CSS (Cascading Style Sheets) and Javascript.<\/li>\n
  • It also creates dynamic and interactive Webpages in the red time Web development projects.<\/li>\n<\/ul>\n

    Question 2.
    \nWhat is a Web server?
    \nAnswer:<\/p>\n

      \n
    • A Web sewer is Software that uses HTTP (Hypertext Transfer Protocol) to serve the files that form Web pages to users<\/li>\n
    • Web server software that runs on server hardware, governs the server-side scripting compilation into an intermediate bytecode that is then interpreted by the runtime engine,<\/li>\n<\/ul>\n

      Question 3.
      \nWhat are the types of a scripting language?
      \nAnswer:
      \nWeb scripting languages are classified into two types, client-side and server-side scripting language. PHP is completely different from Client-side scripting language like Javascript. The PHP code entirely executes on Webserver which is installed in the remote machine.<\/p>\n

      Question 4.
      \nDifferentiate between Client and Server?
      \nAnswer:<\/p>\n\n\n\n\n\n\n
      Client<\/td>\nServer<\/td>\n<\/tr>\n
      The client-side environment used to run scripts is usually a browser.<\/td>\nThe server-side environment that runs a scripting language Is a web server.<\/td>\n<\/tr>\n
      Does not need server Interaction<\/td>\nRequires server interaction.<\/td>\n<\/tr>\n
      Example: HTML, CSS, JavaScript etc.<\/td>\nExample PHP, ASP.net, Ruby on Rails, Python, etc.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

      \"Samacheer<\/p>\n

      Question 5.
      \nGive few examples of Web Browser?
      \nAnswer:<\/p>\n

        \n
      • Internet Explorer<\/li>\n
      • UC Browser<\/li>\n
      • Opera<\/li>\n
      • Google Chrome and<\/li>\n
      • Mozilla Firefox.<\/li>\n<\/ul>\n

        Question 6.
        \nWhat is a URL?
        \nAnswer:<\/p>\n

          \n
        • URL is the abbreviation of Uniform Resource Locator<\/li>\n
        • It is the address of a specific Web page or fiie on the Internet,<\/li>\n
        • URL is made up four parts-protocols, hostname, folder name and fiie name,<\/li>\n
        • Example: http:\/\/www.googie.com\/<\/li>\n<\/ul>\n

          Question 7.
          \nIs PHP a case sensitive language?
          \nAnswer:
          \nYes, smaller case & uppercase letters are different in PHP.<\/p>\n

          Examples
          \nIf you defined a variable in lowercase, then you need to use it in lowercase everywhere In the program.<\/p>\n

          \"Samacheer<\/p>\n

          Question 8.
          \nHow to declare variables in PHP?
          \nAnswer:<\/p>\n

            \n
          • Variable name must always begin with a $ symbol.<\/li>\n
          • Variable name can never start with a number,<\/li>\n
          • Variable names are case-sensitive.<\/li>\n<\/ul>\n

            Question 9.
            \nDefine Client-Server Architecture.
            \nAnswer:
            \nThe client-server architecture introduces an application sharing mechanism between two different hardware systems over the network (Internet\/intranet).<\/p>\n

            Question 10.
            \nDefine Web server.
            \nAnswer:
            \nA Web server is Software that uses HTTP (Hyper-text Transfer Protocol) to serve the files that form
            \nWeb pages to users.<\/p>\n

            \"Samacheer<\/p>\n

            Part III<\/span><\/p>\n

            Explain in brief answer<\/span><\/p>\n

            Question 1.
            \nWrite the features of server side scripting language.
            \nAnswer:<\/p>\n

              \n
            • Server-side scripting offers greater protection for user privacy<\/li>\n
            • It often reduces the loading rime for web pages<\/li>\n
            • Some browsers don’t fully support JavaScript, so server-side scripting is essential to run dynamic pages on these browsers.<\/li>\n<\/ul>\n

              Question 2.
              \nWrite is the purpose of Web servers?
              \nAnswer:<\/p>\n

                \n
              1. Webserver is software which is running in server hardware.<\/li>\n
              2. It takes the responsibilities for the compilation and execution of server-side scripting languages.<\/li>\n
              3. After receiving the request from the client machine the Web server tries to compile and interpret the PHP code which is available in remote machine.<\/li>\n
              4. Next a response will be generated and sent back to the client machine over the network from Webserver.<\/li>\n<\/ol>\n

                \"Samacheer<\/p>\n

                Question 3.
                \nDifferentiate Server side and Client Side Scripting language.
                \nAnswer:<\/p>\n\n\n\n\n\n\n\n\n
                Basis for
                \ncomparison<\/td>\n
                Server-side scripting<\/td>\nCiient-side scripting<\/td>\n<\/tr>\n
                Basic<\/td>\nWorks in the back end which could not be visible at the client end.<\/td>\nWorks at the front end and script are visible among the users.<\/td>\n<\/tr>\n
                Processing<\/td>\nRequires server interaction.<\/td>\nDoes not need interaction with the server.<\/td>\n<\/tr>\n
                Languages involved<\/td>\nPHP, ASP.net, Ruby on Rails, ColdFusion, Python, et\u00adcetera.<\/td>\nHTML, CSS, JavaScript, etc.<\/td>\n<\/tr>\n
                Affect<\/td>\nCould effectively customize the web pages and provide dynamic websites.<\/td>\nCan reduce the load to the server.<\/td>\n<\/tr>\n
                Security<\/td>\nRelatively secure.<\/td>\nInsecure<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

                Question 4.
                \nIn how many ways you can embed PHP code in an HTML page?
                \nAnswer:<\/p>\n

                  \n
                1. PHP script can be written inside of HTML code and save the file with an extension of .php. The embedded PHP file gets executed in the Webserver, the browser receives only the HTML and other client-side files.<\/li>\n
                2. Php files can also be embedded with css and js files.<\/li>\n
                3. Using template engines like Smarty, DWOO, Mustache, Blade we can embed PHP files.<\/li>\n<\/ol>\n

                  \"Samacheer<\/p>\n

                  Question 5.
                  \nWrite short notes on PHP operator.
                  \nAnswer:
                  \nAn operator is a symbol which is used to perform mathematical and logical operations in programming languages.
                  \nDifferent types of the operator in PHP are:<\/p>\n

                    \n
                  1. Arithmetic operators<\/li>\n
                  2. Assignment operators<\/li>\n
                  3. Comparison operators<\/li>\n
                  4. Increment\/Decrement operators<\/li>\n
                  5. Logical operators and<\/li>\n
                  6. String operators<\/li>\n<\/ol>\n

                    Part IV<\/span><\/p>\n

                    Explain In Detail<\/span><\/p>\n

                    Question 1.
                    \nExplain client-side and server-side scripting language.
                    \nAnswer:
                    \nWeb scripting languages are classified into two types, client-side and server-side scripting language.
                    \nClient-side Environment<\/p>\n

                      \n
                    • The client-side environment used to run scripts is usually a browser.<\/li>\n
                    • The processing takes place on the end-users computer.<\/li>\n
                    • The source code is transferred from the webserver to the user’s computer over the internet and run directly in the browser,<\/li>\n
                    • The scripting language needs to be enabled on the client computer. Sometimes if a user is conscious of security risks they may switch the scripting facility off. .<\/li>\n
                    • When this is the case a message usually pops up to alert the user when the script Is attempting to run.<\/li>\n<\/ul>\n

                      Server-side Environment<\/p>\n

                        \n
                      • A server is a computer system that serves as a central repository of data and programs and is shared by clients<\/li>\n
                      • The server-side environment that runs a scripting language is a web server.<\/li>\n
                      • A user’s request is fulfilled by running a script directly on the webserver to generate dynamic HTML pages.<\/li>\n
                      • This HTML is then sent to the client browser.<\/li>\n
                      • It is usually used to provide interactive websites that interface to databases or other data stores on the server.<\/li>\n
                      • This is different from client-side scripting where scripts are run by the viewing web browser, usually in JavaScript.<\/li>\n
                      • The primary advantage to server-side scripting is the ability to highly customize the response based on the user’s requirements, access rights, or queries into data stores.<\/li>\n<\/ul>\n

                        \"Samacheer<\/p>\n

                        Question 2.
                        \nDiscuss in detail Website develop\u00acment activities.
                        \nAnswer:
                        \nThe process of development also includes Web content generation, Web page designing, Website security, and so on.
                        \nPHP Script:<\/p>\n

                          \n
                        1. Website or Web page is developed by the programmer using PHP script. Finally, the entire Website codes are moved to the Web server path in a remote server machine.<\/li>\n
                        2. From the client-side, the end-user opens a browser, types the URL of the Website or Webpage, and initiates the request to the remote server machine over the network.<\/li>\n
                        3. After receiving the request from the client machine the Web server tries to compile and interpret the PHP code which is available in a remote machine.<\/li>\n
                        4. Next, a response will be generated and sent back to the client machine over the network from Webserver.<\/li>\n
                        5. Finally, the browser which is installed in the client machine receives the response and displays the output to the user.<\/li>\n<\/ol>\n

                          Question 3.
                          \nExplain the process of Webserver installation.
                          \nAnswer:
                          \nThe following are the steps to install and config\u00acure Apache Httpd Web server and PHP module in windows server machine.
                          \nStep 1:
                          \nGo to the Apache foundation Website and download the Httpd Web server Software.
                          \nhttps:\/\/httpd.apache.org\/download.cgi<\/p>\n

                          Step 2:<\/p>\n

                            \n
                          • After downloading. MSI file from Apache foundation Website, the user launches the. MSI file and clicks next and next button to finish the installation on the server machine.<\/li>\n
                          • The software takes default port number 130 or 130130.<\/li>\n
                          • Once the user finished, the Web server software is installed and configured on the server hardware machine as a service.<\/li>\n<\/ul>\n

                            Step 3:<\/p>\n

                              \n
                            • To test the installation of the Apache Http Web server, enter the following URL from your Web browser which is installed in your client machine.
                              \nhttps:\/\/iocalhost:130\/ or https:\/\/ localhost:130130<\/li>\n
                            • The output page that says “Its works”<\/li>\n<\/ul>\n

                              Step 4:<\/p>\n

                                \n
                              • Administrator user can start, stop and restart the Web server service at any time via the Windows Control panel.<\/li>\n
                              • Once the services stops, the client machine will not receive the response message from server machine.<\/li>\n<\/ul>\n

                                Step 5:<\/p>\n

                                  \n
                                • Webserver’s configuration setting file “httpd. conf ” is located in the conf directory under the apache installation directory.<\/li>\n
                                • Edit this file and enable the PHP module to run PHP scripting language.<\/li>\n<\/ul>\n

                                  Question 4.
                                  \nDiscuss in detail PHP data types.
                                  \nAnswer:
                                  \nPHP scripting language supports 13 primitive data types.
                                  \nData Types plays important role in all programming languages to classify the data according to the logic.
                                  \nPHP supports the following data types.<\/p>\n

                                    \n
                                  1. String<\/li>\n
                                  2. Integer<\/li>\n
                                  3. Float<\/li>\n
                                  4. Boolean<\/li>\n
                                  5. Array<\/li>\n
                                  6. Object<\/li>\n
                                  7. NULL<\/li>\n
                                  8. Resource<\/li>\n<\/ol>\n\n\n\n\n\n\n\n\n\n\n\n
                                    Data type<\/td>\nExplanation<\/td>\nExample<\/td>\n<\/tr>\n
                                    String<\/td>\nThe string is a collection of characters within the double or single quotes<\/td>\n$x = “Computer Application!”;<\/td>\n<\/tr>\n
                                    Integer<\/td>\nAn integer is a data type which contains non-decimal numbers.<\/td>\n$x = 59135;<\/td>\n<\/tr>\n
                                    Float<\/td>\nFloat is a data type which contains decimal numbers,<\/td>\n$x = 19.15;<\/td>\n<\/tr>\n
                                    Boolean<\/td>\nBoolean is a data type which denotes the possible two states, TRUE or FALSE<\/td>\n$x = true;
                                    \n$y = false;<\/td>\n<\/tr>\n
                                    Array<\/td>\nThe array is a data type which has multiple values in a single variable.<\/td>\n$cars = arrayC’Computer”,”Laptop”, Mobile”);<\/td>\n<\/tr>\n
                                    Object<\/td>\nIt is a data type which contains information about data and function inside the class.<\/td>\n$school_obj = new School ();<\/td>\n<\/tr>\n
                                    NULL<\/td>\nNull Is a special data type which contains s single value; NULL<\/td>\n$x = null;<\/td>\n<\/tr>\n
                                    Resources<\/td>\nThe resource is a specific variable, it has a reference to an external resource.<\/td>\nShandle = fopen(“note.txt” “r”); var_dump($handle);<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

                                    Question 5.
                                    \nExplain operators in PHP with examples.
                                    \nAnswer:
                                    \nThe operator is a symbol that is used to perform mathematical and logical operations in programming languages,
                                    \nDifferent types of the operator in PHP are:<\/p>\n

                                      \n
                                    1. Arithmetic operators,<\/li>\n
                                    2. Assignment operators,<\/li>\n
                                    3. Comparison operators,<\/li>\n
                                    4. Increment\/Decrement operators,<\/li>\n
                                    5. Logical operators, and<\/li>\n
                                    6. String operators,<\/li>\n
                                    7. Arithmetic operators<\/li>\n<\/ol>\n

                                      The Arithmetic operators in PHP perform genera! arithmetical operations, such as addition, subtraction, multiplication and division etc<\/p>\n\n\n\n\n\n\n\n\n
                                      Symbol<\/td>\nOperator Name<\/td>\nPurpose<\/td>\n<\/tr>\n
                                      +<\/td>\nAddition<\/td>\nThis operator performs the process of adding numbers<\/td>\n<\/tr>\n
                                      –<\/td>\nSubtraction<\/td>\nThis operator performs the process of subtracting numbers<\/td>\n<\/tr>\n
                                      *<\/td>\nMultiplication<\/td>\nThis operator performs the process of multiplying numbers<\/td>\n<\/tr>\n
                                      \/<\/td>\nDivision<\/td>\nThis operator performs the process of dividing numbers<\/td>\n<\/tr>\n
                                      %<\/td>\nModulus<\/td>\nThis operator performs the process of finding remainder in division<\/p>\n

                                      operation of two numbers<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

                                      Assignment Operators:<\/p>\n

                                        \n
                                      • Assignment operators are performed with numeric values to store a value to a variable.<\/li>\n
                                      • The default assignment operator is This operator sets the left side operant value of expression to right side variable.<\/li>\n<\/ul>\n\n\n\n\n\n\n\n\n\n
                                        Assignment<\/td>\nSimilar to<\/td>\nDescription<\/td>\n<\/tr>\n
                                        x = y<\/td>\nx = y<\/td>\nThis operator sets the left side operant value of expression to right side variable<\/td>\n<\/tr>\n
                                        x += y<\/td>\nx = x+ y<\/td>\nAddition<\/td>\n<\/tr>\n
                                        x- = y<\/td>\nx = x – y<\/td>\nSubtraction<\/td>\n<\/tr>\n
                                        x* = y<\/td>\nx = x*y<\/td>\nMultiplication<\/td>\n<\/tr>\n
                                        x\/ = y<\/td>\nx = x\/y<\/td>\nDivision<\/td>\n<\/tr>\n
                                        x % = y<\/td>\nx = x % y<\/td>\nModulus<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

                                        Comparison Operators:<\/p>\n

                                          \n
                                        • Comparison operators perform an action to compare two values.<\/li>\n
                                        • These values may contain integer or string data types (Numbers or Strings).<\/li>\n<\/ul>\n\n\n\n\n\n\n\n\n
                                          Symbol<\/td>\nOperator Name<\/td>\nSymbol<\/td>\nOperator Name<\/td>\n<\/tr>\n
                                          ==<\/td>\nEqual<\/td>\n><\/td>\nGreater than<\/td>\n<\/tr>\n
                                          ===<\/td>\nIdentical<\/td>\n<<\/td>\nless than<\/td>\n<\/tr>\n
                                          ! =<\/td>\nNot equal<\/td>\n>=<\/td>\nGreater than or equal to<\/td>\n<\/tr>\n
                                          <><\/td>\nNot equal<\/td>\n<=<\/td>\nLess than or equal to<\/td>\n<\/tr>\n
                                          !==<\/td>\nNot identical<\/td>\n<\/td>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

                                          Increment and Decrement Operators:<\/p>\n

                                            \n
                                          • Increment and decrement operators are used to perform the task of increasing or decreasing the variable’s value.<\/li>\n
                                          • This operator is mostly used during iterations in the program logics.<\/li>\n<\/ul>\n\n\n\n\n\n\n\n
                                            Operator<\/td>\nName<\/td>\nDescription<\/td>\n<\/tr>\n
                                            ++$x<\/td>\nPre-increment<\/td>\nIncrement $x value by one, then returns $x<\/td>\n<\/tr>\n
                                            $x++<\/td>\nPost-increment<\/td>\nReturns $x, then increments $x by one<\/td>\n<\/tr>\n
                                            \u2014$x<\/td>\nPre-decrement<\/td>\nDecrements $x by one, then returns $x<\/td>\n<\/tr>\n
                                            $x~<\/td>\nPost-decrement<\/td>\nReturns $x, then decrements $x by one<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

                                            Logical Operators:
                                            \nLogical Operators are used to combine conditional statements.<\/p>\n\n\n\n\n\n\n\n
                                            Symbol<\/td>\nOperator Name<\/td>\nExample<\/td>\nResult<\/td>\n<\/tr>\n
                                            &&<\/td>\nAnd<\/td>\n$x && $y<\/td>\nTrue if both $x and $y are true<\/td>\n<\/tr>\n
                                            ||<\/td>\nOr<\/td>\n$x || $y<\/td>\nTrue if either $x or $y is true<\/td>\n<\/tr>\n
                                            !<\/td>\nNot<\/td>\n!$x<\/td>\nTrue if $x is not true<\/td>\n<\/tr>\n
                                            xor<\/td>\nXor<\/td>\n$x xor $y<\/td>\nTrue if either $x or $y is true, but not both<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

                                            String Operators:
                                            \nTwo operators are used to perform string related operations such as Concatenation and Concatenation assignment (Appends).<\/p>\n\n\n\n\n\n
                                            Operator<\/td>\nName<\/td>\nExample<\/td>\nResult<\/td>\n<\/tr>\n
                                            <\/td>\nConcatenation<\/td>\n$textl . $ text2<\/td>\nConcatenation of $txtl and $txt2<\/td>\n<\/tr>\n
                                            .=<\/td>\nConcatenation<\/td>\n$textl .= $ text2<\/td>\nAppends $txt2 to $txtl<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

                                            \"Samacheer<\/p>\n

                                            12th Computer Applications Guide Introduction to Hypertext Pre-Processor Additional Important Questions and Answers<\/h3>\n

                                            Part A<\/span><\/p>\n

                                            Choose The Correct Answers:<\/span><\/p>\n

                                            Question 1.
                                            \nThe variable in PHP begins with a dollar ………… symbol.
                                            \na) @
                                            \nb) #
                                            \nc) $
                                            \nd) %
                                            \nAnswer:
                                            \nc) $<\/p>\n

                                            Question 2.
                                            \n……………………… Scripting languages was introduced to support Internet online business.
                                            \n(a) Server
                                            \n(b) Client
                                            \n(c) Web
                                            \n(d) Online
                                            \nAnswer:
                                            \n(c) Web<\/p>\n

                                            \"Samacheer<\/p>\n

                                            Question 3.
                                            \nIn PHP, a Variable name can never start with a ………….
                                            \na) alphabet
                                            \nb) number
                                            \nc) both a and b
                                            \nd) either a or b
                                            \nAnswer:
                                            \nb) number<\/p>\n

                                            Question 4.
                                            \nPHP scripting language supports …………. primitive data types.
                                            \na) 10
                                            \nb) 11
                                            \nc) 12
                                            \nd) 13
                                            \nAnswer:
                                            \nd) 13<\/p>\n

                                            \"Samacheer<\/p>\n

                                            Question 5.
                                            \nCSS means
                                            \n(a) combined script style
                                            \n(b) cascading style sheets
                                            \n(c) calculated spreadsheet
                                            \n(d) consecutive script sheets
                                            \nAnswer:
                                            \n(b) cascading style sheets<\/p>\n

                                            Question 6.
                                            \nPHP was invented in ………….
                                            \na) 1992
                                            \nb) 1993
                                            \nc) 1994
                                            \nd) 1995
                                            \nAnswer:
                                            \nc) 1994<\/p>\n

                                            Question 7.
                                            \nPHP can embed with ………….
                                            \na) HTML
                                            \nb) CSS
                                            \nc) Javascript
                                            \nd) All of the above
                                            \nAnswer:
                                            \nd) All of the above<\/p>\n

                                            \"Samacheer<\/p>\n

                                            Question 8.
                                            \nJSP means
                                            \n(a) Joint Server photographs
                                            \n(b) Java Server pages
                                            \n(c) Java Script program
                                            \n(d) Active script pages
                                            \nAnswer:
                                            \n(b) Java Server pages<\/p>\n

                                            Question 9.
                                            \nPHP also creates ………… Webpages in thereat time Web development projects,
                                            \na) Dynamic
                                            \nb) interactive
                                            \nc) both a and b
                                            \nd) None of these
                                            \nAnswer:
                                            \nc) both a and b<\/p>\n

                                            Question 10.
                                            \n78.9 % of Website are developed by ………… scripting language.
                                            \na) ASP
                                            \nb) JSP
                                            \nc) VbScript
                                            \nd) PHP
                                            \nAnswer:
                                            \nd) PHP<\/p>\n

                                            \"Samacheer<\/p>\n

                                            Question 11.
                                            \nWhich of the following is an assignment operator?
                                            \na) =
                                            \nb) = =
                                            \nc) = = =
                                            \nd) ! = =
                                            \nAnswer:
                                            \na) =<\/p>\n

                                            Question 12.
                                            \nCGI stands for
                                            \n(a) Common Gateway Interface
                                            \n(b) Call Gateway Interrupt
                                            \n(c) Cold Gateway Interface
                                            \n(d) Client Gateway Interface
                                            \nAnswer:
                                            \n(a) Common Gateway Interface<\/p>\n

                                            Question 13.
                                            \nWhich of the following is a non-identical operator?
                                            \na) =
                                            \nb) = =
                                            \nc) = = =
                                            \nd) ! = =
                                            \nAnswer:
                                            \nd) ! = =<\/p>\n

                                            \"Samacheer<\/p>\n

                                            Question 14.
                                            \nWhich of the following is an equal operator?
                                            \na) =
                                            \nb) = =
                                            \nc) = = =
                                            \nd) ! = =
                                            \nAnswer:
                                            \nb) = =<\/p>\n

                                            Question 15.
                                            \nFind the Correct one
                                            \n(i) PHP is an open source
                                            \n(ii) Apache tom cat supports PHP
                                            \n(iii) MS-ITS Supports PHP
                                            \n(a) Only (i) is true
                                            \n(b) (ii), (iii) – True
                                            \n(c) (i), (ii) – True
                                            \n(d) (i), (ii), (iii) – True
                                            \nAnswer:
                                            \n(d) (i), (ii), (iii) – True<\/p>\n

                                            Question 16.
                                            \n………….is a collection of characters within the double or single quotes
                                            \na) String
                                            \nb) Boolean
                                            \nc) Integer
                                            \nd) Float
                                            \nAnswer:
                                            \na) String<\/p>\n

                                            Question 17.
                                            \nBoolean is a data type which denotes …………
                                            \na) Integer numbers
                                            \nb) Decimal point numbers
                                            \nc) True or False state
                                            \nd) Array
                                            \nAnswer:
                                            \nc) True or False state<\/p>\n

                                            \"Samacheer<\/p>\n

                                            Question 18.
                                            \n…………is a data type which has multiple values in a single variable.
                                            \na) Integer numbers
                                            \nb) Decimal point numbers
                                            \nc) True or False state
                                            \nd) Array
                                            \nAnswer:
                                            \nd) Array<\/p>\n

                                            Question 19.
                                            \nHow many client-server architecture models there?
                                            \n(a) 2
                                            \n(b) 3
                                            \n(c) 4
                                            \n(d) 5
                                            \nAnswer:
                                            \n(b) 3<\/p>\n

                                            Question 20.
                                            \n………… is a data type which contains information about data and function inside the class.
                                            \na) Integer numbers
                                            \nb) Array
                                            \nc) True or False state
                                            \nd) Array
                                            \nAnswer:
                                            \nd) Array<\/p>\n

                                            \"Samacheer<\/p>\n

                                            Abbreviations:<\/span><\/p>\n

                                              \n
                                            • ASP – Active Server Page<\/li>\n
                                            • JSP – Java Server page<\/li>\n
                                            • CSS – CascadingStyle Sheets<\/li>\n
                                            • PHP – Hypertext Pre-processor<\/li>\n
                                            • WWW – World Wide Web<\/li>\n
                                            • CGI – Common Gatewaylnterface<\/li>\n
                                            • OOPs – Object-Oriented Programming<\/li>\n<\/ul>\n

                                              Choose the incorrect sentences:<\/span><\/p>\n

                                              1. a) 25% of Websites are developed by PHP scripting language.
                                              \nb) PHP is a Case Sensitive
                                              \nc) PHP is a Simplicity Program language
                                              \nd) PHP is an Open Source
                                              \nAnswer:
                                              \nb) PHP is a Case Sensitive<\/p>\n

                                              2. a) PHP is an Efficiency Program language
                                              \nb) PHP is a Platform dependent Program language
                                              \nc) PHP is a Security Program language
                                              \nd) PHP is a Flexibility Program language
                                              \nAnswer:
                                              \nb) PHP \u00a1s a Platform dependent Program language<\/p>\n

                                              3. a) PHP is a Real-Time Access Monitoring Program
                                              \nlanguage
                                              \nb) PHP Script should with \u201c<Tag name>\u201d and closes with \u201c<\/Tagname>\u2019
                                              \nc) PHP files have a default file extension is .php.
                                              \nd) PHP stands for Personal Home Page
                                              \nAnswer:
                                              \nb) PHP Script should with \u201c<Tag name>\u201d and closes with \u201c<\/Tagname>\u2019<\/p>\n

                                              \"Samacheer<\/p>\n

                                              4. a) PHP can be executed via an interpreter which is installed in the Web servers or CGI.
                                              \nb) PHP is an open-source community development initiation.
                                              \nc) Website or Web page is developed by the programmer using PHP script only.
                                              \nd) Three types of PHP Syntax are available.
                                              \nAnswer:
                                              \nc) Website or Web page is developed by the programmer using PHP script only.<\/p>\n

                                              5. a) PHP script can be written inside of HTML code and save the file with an extension of .php.
                                              \nb) The embedded PHP file gets executed in the Web server.
                                              \nc) The browser receives only the HTML and other client-side files.
                                              \nd) The raw PHP code \u00a1s visible \u00a1n browser which means that Compiler
                                              \nAnswer:
                                              \nd) The raw PHP code \u00a1s visible \u00a1n browser which means that Compiler<\/p>\n

                                              \"Samacheer<\/p>\n

                                              Find the odd one on the following<\/span><\/p>\n

                                              1. a) Python
                                              \nb) C++
                                              \nc) PHP
                                              \nd) C
                                              \nAnswer:
                                              \na) Python<\/p>\n

                                              2. a) Microsoft SQL Server
                                              \nb) Apache
                                              \nc) Tomcat
                                              \nd) Microsoft IIS
                                              \nAnswer:
                                              \na) Microsoft SQL Server<\/p>\n

                                              3. a) Default Syntax
                                              \nb) Short open Tags
                                              \nc) HTML Script embed Tags
                                              \nd) Open Source
                                              \nAnswer:
                                              \nd) Open Source<\/p>\n

                                              \"Samacheer<\/p>\n

                                              4. a) Array
                                              \nb) Object
                                              \nc) Structure
                                              \nd) NULL
                                              \nAnswer:
                                              \nd) NULL<\/p>\n

                                              5. a) Integer
                                              \nb) Octal
                                              \nc) Boolean
                                              \nd) Float
                                              \nAnswer:
                                              \nb) Octal<\/p>\n

                                              6. a) String
                                              \nb) Binary
                                              \nc) Resource
                                              \nd) Boolean
                                              \nAnswer:
                                              \nb) Binary<\/p>\n

                                              \"Samacheer<\/p>\n

                                              7. a) Arithmetic operators
                                              \nb) Assignment operators
                                              \nc) Comparison operators
                                              \nd) Conditional Operator
                                              \nAnswer:
                                              \nd) Conditional Operator<\/p>\n

                                              8. a) Increment operators
                                              \nb) Decrement operators
                                              \nc) Bitwise operator
                                              \nd) Logical operators
                                              \nAnswer:
                                              \nc) Bitwise operator<\/p>\n

                                              9. a) Ternary Operator
                                              \nb) String operators.
                                              \nc) Arithmetic Operator
                                              \nd) Decrement Operator
                                              \nAnswer:
                                              \na) Ternary Operator<\/p>\n

                                              \"Samacheer<\/p>\n

                                              10. a) Average
                                              \nb) Multiplication
                                              \nc) Addition
                                              \nd) Modulus
                                              \nAnswer:
                                              \na) Average<\/p>\n

                                              11. a) XOR
                                              \nb) XNOR
                                              \nc) AND
                                              \nd) OR
                                              \nAnswer:
                                              \nb) XNOR<\/p>\n

                                              12. a) =
                                              \nb) = =
                                              \nc) = = =
                                              \nd) !=
                                              \nAnswer:
                                              \na) =<\/p>\n

                                              13. a) ! =
                                              \nb) != –
                                              \nc) < >
                                              \nd)()
                                              \nAnswer:
                                              \nd)()<\/p>\n

                                              14. a) &&
                                              \nb) ||
                                              \nc) !!
                                              \nd) !
                                              \nAnswer:
                                              \nc) !!<\/p>\n

                                              \"Samacheer<\/p>\n

                                              15. a) +
                                              \nb) –
                                              \nc) x
                                              \nd) \/
                                              \nAnswer:
                                              \nc) x<\/p>\n

                                              Match the following:<\/span><\/p>\n

                                              1. String – Structured Information
                                              \n2. Integer – Data and Function
                                              \n3. Float – Database Connection
                                              \n4. Boolean – Single value
                                              \n5. Array – True\/False
                                              \n6. Object – Multiple values
                                              \n7. NULL – Decimal numbers
                                              \n8. Resource – Non- Decimal numbers
                                              \n9. Var_dump() – Remainder
                                              \n10. Modulus – Collection of characters
                                              \nAnswer:
                                              \n1. Collection of characters
                                              \n2. Decimal numbers
                                              \n3. No-Decimal number
                                              \n4. True\/False
                                              \n5. Multiple values
                                              \n6. Data and functions
                                              \n7. Single value
                                              \n8. Database Connection
                                              \n9. Structured information
                                              \n10. Remainder<\/p>\n

                                              \"Samacheer<\/p>\n

                                              Assertion and Reason<\/span><\/p>\n

                                              Question 1.
                                              \nAssertion (A): The Web-based Internet application ensures the success of critical business in real-world competitions.
                                              \nReason (R): The legacy programming languages meet the expectations of the latest Internet concepts and executions.
                                              \na) Both (A) and (R) are correct and (R) is the correct explanation of (A)
                                              \nb) Both (A) and (R) are correct, but (R) is not the correct explanation of (A)
                                              \nc) (A) is true and (R) is false
                                              \nd) (A) is false and (R) is true
                                              \nAnswer:
                                              \nb) Both (A) and (R) are correct, but (R) is not the correct explanation of (A)<\/p>\n

                                              Question 2.
                                              \nAssertion (A): The Web-based Internet application ensures the success of critical business in real-world competitions.
                                              \nReason (R): The legacy programming languages meet the expectations of the latest Internet concepts and executions.
                                              \na) Both (A) and (R) are correct and (R) is the correct explanation of (A)
                                              \nb) Both (A) and (R) are correct, but (R) is not the correct explanation of (A)
                                              \nc) (A) is true and (R) is false
                                              \nd) (A) is false and (R) is true
                                              \nAnswer:
                                              \nc) (A) is true and (R) is false<\/p>\n

                                              \"Samacheer<\/p>\n

                                              Question 3.
                                              \nAssertion (A): PHP is a competitor and alternative for other server-side scripting languages like HTML and CSS.
                                              \nReason (R): Recent statistics of server-side scripting language usage depict that 78.9 % of Websites are developed by PHP scripting language.
                                              \na) Both (A) and (R) are correct and (R) is the correct explanation of (A)
                                              \nb) Both (A) and (R) are correct, but (R) is not the correct explanation of (A)
                                              \nc) (A) is true and (R) is false
                                              \nd) (A) is false and (R) is true
                                              \nAnswer:
                                              \nd) (A) is false and (R) is true<\/p>\n

                                              Question 4.
                                              \nAssertion (A): in the evolution of network architecture, various critical networks related problems are getting resolved by the client-server architecture model.
                                              \nReason (R): The client-server architecture introduces an application sharing mechanism between two different hardware systems over the network (Internet\/intranet).
                                              \na) Both (A) and (R) are correct and (R) is the correct explanation of (A)
                                              \nb) Both (A) and (R) are correct, but (R) is not the correct explanation of (A)
                                              \nc) (A) is true and (R) is false
                                              \nd) (A) is false and (R) is true
                                              \nAnswer:
                                              \nb) Both (A) and (R) are correct, but (R) is not the correct explanation of (A)<\/p>\n

                                              \"Samacheer<\/p>\n

                                              Question 5.
                                              \nAssertion (A): HTTP means HyperText Transfer Protocol. HTTP is the underlying protocol used by the World Wide Web
                                              \nReason (R); This protocol defines how messages are formatted and transmitted, and what actions Web servers and browsers should take in response to various commands
                                              \na) Both (A) and (R) are correct and (R) is the correct explanation of (A)
                                              \nb) Both (A) and (R) are correct, but (R) is not the correct explanation of (A)
                                              \nc) (A) is true and (R) is false
                                              \nd) (A) is false and (R) is true
                                              \nAnswer:
                                              \na) Both (A) and (R) are correct and (R) is the correct explanation of (A)<\/p>\n

                                              \"Samacheer<\/p>\n

                                              Part B<\/span><\/p>\n

                                              Short Answers<\/span><\/p>\n

                                              Question 1.
                                              \nDefine Web browser?
                                              \nAnswer:<\/p>\n

                                                \n
                                              • Web Browser: A Web browser (commonly referred to as a browser) is a software application for accessing information on the World Wide Web.<\/li>\n
                                              • Each individual Web page, image, and video is identified by a distinct URL, enabling browsers to retrieve and display them on the user\u2019s device.<\/li>\n<\/ul>\n

                                                Question 2.
                                                \nClassification of Client-Server Architecture Model.
                                                \nAnswer:
                                                \nClient-server architecture is classified into three types, as follows<\/p>\n

                                                  \n
                                                • Single Tier Architecture<\/li>\n
                                                • Two-Tier Architecture<\/li>\n
                                                • N\/Multi\/Three tire architecture.<\/li>\n<\/ul>\n

                                                  Question 3.
                                                  \nWrite a note on HTTP?
                                                  \nAnswer:
                                                  \nHTTP:<\/p>\n

                                                    \n
                                                  1. HTTP HyperText Transfer Protocol.<\/li>\n
                                                  2. HTTP is the underlying protocol used by the World Wide Web.<\/li>\n
                                                  3. This protocol defines how messages are formatted and transmitted.<\/li>\n
                                                  4. The actions were taken by web servers and browsers in response to various commands.<\/li>\n<\/ol>\n

                                                    Question 4.
                                                    \nWrite a note on the var-dump function?
                                                    \nAnswer:
                                                    \nVar_dump:<\/p>\n

                                                      \n
                                                    1. The var_dump( ) function is used to dump information about a variable.<\/li>\n
                                                    2. This function displays structured information such as the type and value of the given variable.<\/li>\n
                                                    3. Arrays and objects are explored recursively with values intended to show structure.<\/li>\n<\/ol>\n

                                                      Part C<\/span><\/p>\n

                                                      Explain in brief answer<\/span><\/p>\n

                                                      Question 1.
                                                      \nExplain important features of PHP?
                                                      \nAnswer:<\/p>\n

                                                        \n
                                                      1. PHP is an Open Source<\/li>\n
                                                      2. PHP is a Case Sensitive<\/li>\n
                                                      3. PHP is a Simplicity Program language<\/li>\n
                                                      4. PHP is an Efficiency Program language<\/li>\n
                                                      5. PHP is a Platform Independent Program language<\/li>\n
                                                      6. PHP is a Security Program language<\/li>\n
                                                      7. PHP is a Flexibility Program language<\/li>\n
                                                      8. PHP is a Real-Time Access Monitoring Program language<\/li>\n<\/ol>\n

                                                        \"Samacheer<\/p>\n

                                                        Question 2.
                                                        \nWrite a short note on Var_dump() function with Example.
                                                        \nAnswer:<\/p>\n

                                                          \n
                                                        • The var_dump() function is used to dump information about a variable.<\/li>\n
                                                        • This function displays structured information such as the type and value of the given variable.<\/li>\n
                                                        • Arrays and objects are explored recursively with values intended to show structure.<\/li>\n<\/ul>\n

                                                          Example;
                                                          \n<?php
                                                          \n$x = “COMPUTER APPLICATION!”;
                                                          \n$x = null; var_dump($x);
                                                          \n?>
                                                          \nOUTPUT; NULL<\/p>\n

                                                          Question 3.
                                                          \nWhat do you mean by Resources?
                                                          \nAnswer:<\/p>\n

                                                            \n
                                                          • The resource is a specific variable.<\/li>\n
                                                          • It has a reference to an external resource.<\/li>\n
                                                          • These variables hold specific handlers to handle files and database connections irrespective PHP program.<\/li>\n<\/ul>\n

                                                            \"Samacheer<\/p>\n

                                                            Part D<\/span><\/p>\n

                                                            Explain in Detail<\/span><\/p>\n

                                                            Question 1.
                                                            \nWhat are the three types of syntax in PHP? Explain them in detail.
                                                            \nAnswer:
                                                            \nDefault Syntax;
                                                            \nThe default Syntax begins with “<?php”and closes with”?>”
                                                            \n\"Samacheer<\/p>\n

                                                            Short open Tags<\/p>\n

                                                              \n
                                                            • The Short open Tags begins with “<?” and closes with”?>”<\/li>\n
                                                            • But admin user has to enable Short style tags settings in the php.ini file on the server.<\/li>\n<\/ul>\n

                                                              \"Samacheer<\/p>\n

                                                              HTML Script embed Tags:
                                                              \nHTML Script embed Tags look just like HTML script tags.
                                                              \n\"Samacheer<\/p>\n","protected":false},"excerpt":{"rendered":"

                                                              Tamilnadu State Board New Syllabus Samacheer Kalvi 12th Computer Applications Guide Pdf Chapter 4 Introduction to Hypertext Pre-Processor Text Book Back Questions and Answers, Notes. Tamilnadu Samacheer Kalvi 12th Computer Applications Solutions Chapter 4 Introduction to Hypertext Pre-Processor 12th Computer Applications Guide Introduction to Hypertext Pre-Processor Text Book Questions and Answers Part I Choose The …<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":["post-32953","post","type-post","status-publish","format-standard","hentry","category-class-12"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/samacheerkalvi.guide\/wp-json\/wp\/v2\/posts\/32953"}],"collection":[{"href":"https:\/\/samacheerkalvi.guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samacheerkalvi.guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samacheerkalvi.guide\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/samacheerkalvi.guide\/wp-json\/wp\/v2\/comments?post=32953"}],"version-history":[{"count":1,"href":"https:\/\/samacheerkalvi.guide\/wp-json\/wp\/v2\/posts\/32953\/revisions"}],"predecessor-version":[{"id":41622,"href":"https:\/\/samacheerkalvi.guide\/wp-json\/wp\/v2\/posts\/32953\/revisions\/41622"}],"wp:attachment":[{"href":"https:\/\/samacheerkalvi.guide\/wp-json\/wp\/v2\/media?parent=32953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samacheerkalvi.guide\/wp-json\/wp\/v2\/categories?post=32953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samacheerkalvi.guide\/wp-json\/wp\/v2\/tags?post=32953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}