Tuesday, March 27, 2018

Example of GD Library to Draw Smiley Face using PHP


--------------------------------------------------------------------------------------------------------------------------
Prepared By : Uday Shah (HOD - IT)
Contact No : 7600044051
E-Mail : rupareleducation@gmail.com

Example of GD Library to Draw Smiley Face 


<?php
     // create a 200*200 image
     $img imagecreatetruecolor(200200);

     // allocate some colors
     $white imagecolorallocate($img255255255);
     $red   imagecolorallocate($img255,   0,   0);
     $green imagecolorallocate($img,   0255,   0);
     $blue  imagecolorallocate($img,   0,   0255);

     // draw the head
     imagearc($img100100200200,  0360$white);
     // mouth
     imagearc($img10010015015025155$red);
     // left and then the right eye
     imagearc($img,  60,  75,  50,  50,  0360$green);
     imagearc($img140,  75,  50,  50,  0360$blue);

     // output image in the browser
     header("Content-type: image/png");
     imagepng($img);

     // free memory
     imagedestroy($img);

?>
The above example will output something similar to


Tuesday, March 20, 2018

PHP : One Mark Question and Answer for B.C.A., M.C.A. and all IT Students

--------------------------------------------------------------------------------------------------------------------------
Prepared By : Uday Shah (HOD-IT)
E-Mail : rupareleducation@gmail.com
Contact No : 7600044051



PHP SHORT QUESTIONS

#Press the follow button to get update.


1) What is PHP?
PHP is a web language based on scripts that allows developers to dynamically create generated web pages.

2) What does the initials of PHP stand for?
PHP means PHP: Hypertext Preprocessor.

3) Which programming language does PHP resemble to?
PHP syntax resembles Perl and C

4) What does PEAR stands for?
PEAR means “PHP Extension and Application Repository”. it extends PHP and provides a higher level of programming for web developers.

5) What is the actually used PHP version?
Version 5 is the actually used version of PHP.

6) What are the correct and the most two common ways to start and finish a PHP block of code?
The two most  common ways to start and finish a PHP script are: <?php [    PHP code—- ] ?> and <? [—  PHP code  —] ?>

7) How can we display the output directly to the browser?
To be able to display the output directly to the browser, we have to use the special tags <?= and ?>.

8) What is the main difference between PHP 4 and PHP 5?
PHP 5 presents many additional OOP (Object Oriented Programming) features.

9) Is multiple inheritances supported in PHP?
PHP includes only single inheritance, it means that a class can be extended from only one single class using the keyword ‘extended’.

10) What is the meaning of a final class and a final method?
‘final’ is introduced in PHP5. Final class means that this class cannot be extended and a final method cannot be override.

11) How comparison of objects is done in PHP5?
We use the operator ‘==’ to test is two object are instanced from the same class and have same attributes and equal values. We can test if two object are refering to the same instance of the same class by the use of the identity operator ‘===’.

12) How can PHP and HTML interact?
It is possible to generate HTML through PHP scripts, and it is possible to pass informations from HTML to PHP.

13) What type of operation is needed when passing values through a form or an URL?
If we would like to pass values througn a form or an URL then we need to encode and to decode them using htmlspecialchars() and urlencode().

14) How can PHP and Javascript interact?
PHP and Javascript cannot directly interacts since PHP is a server side language and Javascript is a client side language. However we can exchange variables since PHP is able to generate Javascript code to be executed by the browser and it is possible to pass specific variables back to PHP via the URL.

15) What is needed to be able to use image function?
GD library is needed to be able execute image functions.

16) What is the use of the function ‘imagetypes()’?
imagetypes() gives the image format and types supported by the current version of GD-PHP.

17) What are the functions to be used to get the image’s properties (size, width and height)?
The functions are getimagesize() for size, imagesx() for width and imagesy() for height.

18) How failures in execution are handled with include() and require() functions?
If the function require() cannot access to the file then it ends with a fatal error. However, the include() function gives a warning and the PHP script continues to execute.

19) What is the main difference between require() and require_once()?
require() and require_once() perform the same task except that the second function checks if the PHP script is already included or not before executing it. (same for include_once() and include())

20) How can I display text with a PHP script?
1 <!--?php echo "Method 1"; print "Method 2"; ?-->

21) How can we display information of a variable and readable by human with PHP?
To be able to display a human-readable result we use print_r().

22) How is it possible to set an infinite execution time for PHP script?
The set_time_limit(0) added at the beginning of a script sets to infinite the time of execution to not have the PHP error ‘maximum execution time exceeded’.It is also possible to specify this in the php.ini file.

23) What does the PHP error ‘Parse error in PHP – unexpected T_variable at line x’ means?
This is a PHP syntax error expressing that a mistake at the line x stops parsing and executing the
program.

24) What should we do to be able to export data into an Excel file?
The most common and used way is to get data into a format supported by Excel. For example, it is possible to write a .csv file, to choose for example comma as separator between fields and then to open the file with Excel.

25) What is the function file_get_contents() usefull for?
file_get_contents() lets reading a file and storing it in a string variable.

26) How can we connect to a MySQL database from a PHP script?
To be able to connect to a MySQL database, we must use mysql_connect() function as follows:
1
<!--?php $database = mysql_connect("HOST", "USER_NAME", "PASSWORD");
mysql_select_db("DATABASE_NAME",$database); ?-->

27) What is the function mysql_pconnect() usefull for?
mysql_pconnect() ensure a persistent connection to the database, it means that the connection do no close when the the PHP script ends.

28) How the result set of Mysql be handled in PHP?
The result set can be handled using mysql_fetch_array, mysql_fetch_assoc, mysql_fetch_object or mysql_fetch_row.

29) How is it possible to know the number of rows returned in result set?
The function mysql_num_rows() returns the number of rows in a result set.

30) Which function gives us the number of affected entries by a query?
mysql_affected_rows() return the number of entries affected by an SQL query.

31) What is the difference between mysql_fetch_object() and mysql_fetch_array()?
The mysql_fetch_object() function collects the first single matching record where mysql_fetch_array() collects all matching records from the table in an array.

32) How can we access the data sent through the URL with the GET method?
In order to access the data sent via the GET method, we you use $_GET array like this:
$variable = $_GET[“var”]; this will now contain ‘value’

33) How can we access the data sent through the URL with the POST method?
To access the data sent this way, you use the $_POST array.
Imagine you have a form field called ‘var’ on the form, when the user clicks submit to the post form, you
can then access the value like this:
$_POST[“var”];

34) How can we check the value of a given variable is a number?
It is possible to use the dedicated function, is_numeric() to check whether it is a number or not.
35) How can we check the value of a given variable is alphanumeric?
It is possible to use the dedicated function, ctype_alnum to check whether it is an alphanumeric value or not.

36) How do I check if a given variable is empty?
If we want to check whether a variable has a value or not, it is possible to use the empty() function.

37) What does the unlink() function means?
The unlink() function is dedicated for file system handling. It simply deletes the file given as entry.

38) What does the unset() function means?
The unset() function is dedicated for variable management. It will make a variable undefined.

39) How do I escape data before storing it into the database?
addslashes function enables us to escape data before storage into the database.

40) How is it possible to remove escape characters from a string?
The stripslashes function enables us to remove the escape characters before apostrophes in a string.

41) How can we automatically escape incoming data?
We have to enable the Magic quotes entry in the configuration file of PHP.

42) What does the function get_magic_quotes_gpc() means?
The function get_magic_quotes_gpc() tells us whether the magic quotes is switched on or no.

43) Is it possible to remove the HTML tags from data?
The strip_tags() function enables us to clean a string from the HTML tags.

44) How can we define a variable accessible in functions of a PHP script?
This feature is possible using the global keyword.

45) How is it possible to return a value from a function?
A function returns a value using the instruction ‘return $value;’.

46) What is the most convenient hashing method to be used to hash passwords?
It is preferable to use crypt() which natively supports several hashing algorithms or the function hash() which supports more variants than crypt() rather than using the common hashing algorithms such as md5, sha1 or sha256 because they are conceived to be fast. hence, hashing passwords with these algorithms can vulnerability.

47) Which cryptographic extension provide generation and verification of digital signatures?
The PHP-openssl extension provides several cryptographic operations including generation and verification of digital signatures.

48) How a constant is defined in a PHP script?
The define() directive lets us defining a constant as follows:
define (“ACONSTANT”, 123);

49) How is the ternary conditional operator used in PHP?
It is composed of three expressions: a condition, and two operands describing what instruction should be
performed when the specified condition is true or false as follows:
Expression_1 ? Expression_2 : Expression_3;

50) What is the function func_num_args() used for?
The function func_num_args() is used to give the number of parameters passed into a function.
51) If the variable $var1 is set to 10 and the $var2 is set to the character var1, what’s the value of $
$var2?
$$var2

contains the value 10.

52) In PHP, objects are they passed by value or by reference?
In PHP, objects passed by value.

53) what is the definition of a session?
A session is a logical object enabling us to preserve temporary data across multiple PHP pages.

54) How to initiate a session in PHP?
The use of the function session_start() lets us activating a session.

55) When sessions ends?
Sessions automatically ends when the PHP script finish executing, but can be manually ended using the session_write_close().

56) What does $GLOBALS means?
$GLOBALS is associative array including references to all variables which are currently defined in the global scope of the script.

57) What does $_SERVER means?
$_SERVER is an array including information created by the web server such as paths, headers, and script locations.

58) What does $_COOKIE means?
$_COOKIE is an associative array of variables sent to the current PHP script using the HTTP Cookies.

59) What does the scope of variables means?
The scope of a variable is the context within which it is defined. For the most part all PHP variables only have a single scope. This single scope spans included and required files as well.

60) What are the two main string operators?
The first is the concatenation operator (‘.’), which returns the concatenation of its right and left arguments. The second is (‘.=’), which appends the argument on the right to the argument on the left.

61) What does the array operator ‘===’ means?
$a === $b TRUE if $a and $b have the same key/value pairs in the same order and of the same types.

62) What is the differences between $a != $b and $a !== $b?
!= means inequality (TRUE if $a is not equal to $b) and !== means non-identity (TRUE if $a is not identical to $b).

63) How can we determine whether a PHP variable is an instantiated object of a certain class?
To be able to verify whether a PHP variable is an instantiated object of a certain class we use instanceof.

64) How can we determine whether a variable is set?
The boolean function isset determines if a variable is set and is not NULL.

65) What is the difference between the functions strstr() and stristr()?
The string function strstr(string allString, string occ) returns part of allString from the first occurrence of occ to the end of allString. This function is case-sensitive. stristr() is identical to strstr() except that it is case insensitive.

66) what is the difference between for and foreach?
for is expressed as follows:
for (expr1; expr2; expr3)
statement

The first expression is executed once at the beginning. In each iteration, expr2 is evaluated. If it is TRUE, the loop continues and the statements inside for are executed. If it evaluates to FALSE, the execution of the loop ends. expr3 is tested at the end of each iteration.

However, foreach provides an easy way to iterate over arrays and it is only used with arrays and objects.

67) Is it possible to submit a form with a dedicated button?
It is possible to use the document.form.submit() function to submit the form. For example: <input
type=button value=”SUBMIT” onClick=”document.form.submit()”>
68) What is the difference between ereg_replace() and eregi_replace()?
The function eregi_replace() is identical to the function ereg_replace() except that it ignores case
distinction when matching alphabetic characters.

69) Is it possible to destroy a cookie?
Yes, it is possible by setting the cookie with a past expiration time.

70) What is the default session time in php?
The default session time in php is until closing of browser

Differences between GET, POST and REQUEST methods ?
GET and POST are used to send information from client browser to web server. In case of GET the information is send
via GET method in name/value pair and is URL encoded. The default GET has a limit of 512 characters. The POST
method transfers the information via HTTP Headers. The POST method does not have any restriction in data size to be
sent. POST is used for sending data securely and ASCII and binary type’s data. The $_REQUEST contains the content of
both $_GET, $_POST and $_COOKIE.

71) What is session and why do we use it?
Session is a super global variable that preserve data across subsequent pages. Session uniquely defines each user with
a session ID, so it helps making customized web application where user tracking is needed.

72) What is cookie and why do we use it?
Cookie is a small piece of information stored in client browser. It is a technique used to identify a user using the
information stored in their browser (if already visited that website) . Using PHP we can both set and get COOKIE.

73) What is AJAX?
AJAX (Asynchronous JavaScript and XML) is a technique which allows updating parts of a web page, without reloading
the whole page. Data is exchanged asynchronously in small amounts of data with the server.

74) What is jQuery?
jQuery is a fast, small, and feature-rich JavaScript library. It is an easy-to-use API which makes things like HTML
document traversal and manipulation, event handling, animation, and Ajax much simpler across a multitude of browsers.

75) What is the latest current version of PHP?
php 5.3

76) What are the differences between GET and POST methods in form submitting?
On the server side, the main difference between GET and POST is where the submitted is stored.
The $_GET array stores data submitted by the GET method. The $_POST array stores data
submitted by the POST method.
On the browser side, the difference is that data submitted by the GET method will be displayed in the
browser’s address field. Data submitted by the POST method will not be displayed anywhere on the
browser.
GET method is mostly used for submitting a small amount and less sensitive data.
POST method is mostly used for submitting a large amount or sensitive data.

77) What are the differences between require and include?
Both include and require used to include a file but when included file not found
Include send Warning where as Require send Fatal Error .

78) How can we get second of the current time using date function?
$second = date("s");

79) What is meant by nl2br()?
Inserts HTML line breaks () before all newlines in a string.

80) What is use of header() function in php ? What is the limitation of HEADER()?
In PHP Important to notice the Limitation of HEADER() function is that header() must be called before any actual output is send. Means must use header function before HTML or any echo statement

81) What is the maximum length of a table name, a database name, or a field name in MySQL?
Database name: 64 characters
Table name: 64 characters
Column name: 64 characters

82)what types of loops exist in php?
for,while,do while and foreach

83)How to create a mysql connection?
mysql_connect(servername,username,password);

84)How to select a database?
mysql_select_db($db_name);

85)How to execute an sql query? How to fetch its result ?
$my_qry = mysql_query("SELECT * FROM `users` WHERE `u_id`='1'; ");
$result = mysql_fetch_array($my_qry);
echo $result['First_name'];

86)How we can retrieve the data in the result set of MySQL using PHP?
1. mysql_fetch_row
2. mysql_fetch_array
3. mysql_fetch_object
4. mysql_fetch_assoc

87)What is the use of explode() function ?
Syntax : array explode ( string $delimiter , string $string [, int $limit ] );
This function breaks a string into an array. Each of the array elements is a substring of string formed
by splitting it on boundaries formed by the string delimiter.

88)What is the difference between mysql_fetch_array() and mysql_fetch_assoc() ?
mysql_fetch_assoc() function Fetch a result row as an associative array, While mysql_fetch_array() fetches an associative array, a numeric array, or both

89)What is the importance of "action" attribute in a html form?
The action attribute determines where to send the form-data in the formsubmission.

90)How send email using php?
To send email using PHP, you use the mail() function.This mail() function accepts 5 parameters as follows (the last 2 are optional). You need webserver, you can't send email from localhost.
eg :
mail($to,$subject,$message,$headers);


#Press the follow button to get update.


Best Of Luck 

Please share and comment it... Thank you.

Monday, March 19, 2018

PHP : One Mark 168 Question for Web Development Using PHP for B.C.A., M.C.A. and IT Students


--------------------------------------------------------------------------------------------------------------------------
Developed By : Uday Shah (HOD - IT)
E-Mail : rupareleducation@gmail.com
Contact No : 7600044051



Web Development Using PHP

1.         IIS full form is ………. .
Ans.    Internet Information Service

2.         Which of the following protocol is supported by IIS.
Ans.    HTTP , FTP , HTTPS 

3.         Which component is used to access IIS.
Ans.    Microsoft Management Control     

4.         What option is to be selected from control panel to access IIS.
Ans.    Administrative Tool

5.         IIS is product of ……….. company.
 Ans.   Microsoft       

6.         Apache is derived from the word ………. .
Ans.    Pattchy

7.         Apache can execute ……….. and ……….. scripting languages.
Ans.    PHP, JSP

8.         Apache is widely used on ………… operating system.
Ans.    UNIX 

9.         Full Form of HTTP.
Ans.    Hyper Text Transfer Protocol

10.       HTTP is known as?
Ans.    Request/ Response procotol            

11.       What is the responsibility of Client?
Ans.    Send the request and Display the design part

12.       Which symbol is used to join the values of control in the URL?
Ans.    ?         

13.       Which value is the default in the method property of form?
Ans.    Get                 

14.       What does the error code between 400 and 499 indicates?
 Ans.   Successfully Loaded and URL is incorrect

15.       Who designing https?
Ans.    Netscape Communications Corporation

16.       In which type of URL full path is not required?
Ans.    Relative         

17.       HTTPS Uses ……….. .
Ans.    Encryption decryption         

18.       The error, “ page is moved permanently or temporary” indicates which kind of error number?
Ans.    300-399          


19.       While using which method of form the user thinks a new link is opened each time the form is
 Submitted.
Ans.     Post

20.       ……….. method of form hides all the information in URL to user.
Ans.    None of the

21.       Relative path of URL is also referred to as?
Ans.    Implied path 

22.       What does the error number 500-599 indicate?
Ans.    Logical or Syntax error       

23.       ………… provides secure connection.
Ans.    HTTPS                      

24.       Full form of FTP.
Ans.    File Transfer Protocol         

25.       FTP is used for………. .
Ans.    Upload file to sever , Transfer file to sever

26.       FTP can be connected………… and ………. Ways.
 Ans.   Username and Password,Anonymously    

27.       Which is correct form below to connect to FTP?
Ans.    ftp://www.website.com                    

28.       FTP uses ………… and ……….. ports.
 Ans.   Command, Data       

29.       Command port is also referred as ………….  .
Ans.    Control                      

30.       Using FTP data can be transfer using ……… or ……… mode.
Ans.    Ascii, Binary 

31.       FTP is not ………… protocol.
Ans.    Securer                      

32.       Which of the following are possible attacks for using FTP.
Ans.     Bounce , Spoof , Brute Force

33.       Widely used FTP software is ……….. .
Ans.    File Zilla        

34.       ISP stands for………. .
Ans.    Internet Service Provider                

35.       Sometimes ISP is also known as …………. .
Ans.    IAP    

36.       Which ISP service user fiber optics lines?
Ans.    Cable 

37.       DSL Stands for………. .
Ans.    Digital Subscriber Line        

38.       Bharti and HTML ………. are ISP providers.
Ans.    Cable, DSL, Dial UP

39.       Sify broadway is ………….. providers.
Ans.    Cable             


40.       ISP are for…………. .
Ans.    Internet service         


41.       ……….. Standard network protocol used to transfer files one host to another host.
Ans.    FTP   

41.        
Web hosting is a kind of …………. .
 Ans.   Internet Hosting Service

42.         Full Form of LAMP.
Ans.    Linux, Apache, MySQL, and PHP 

43.         Types of hosting server…………and…………. .
Ans.    Windows, Linux       

44.         ……….Hosting service provides sub name.
Ans.    Free

45.         Full Form of VDS……….. .
Ans.    Virtual Dedicated Server                 

46.         VDS is also known as ………….. .
Ans.    VPS   

47.         Full Form of VPS………….. .
Ans.    Virtual Private Server          

48.         Web hosting selling the server to other companies are ………..service provider.
Ans.    Reseller

49.         Which of the following is hosting company?
Ans.    Go Daddy     

50.       Virtual host can be………and ……….Based.
Ans.     IP, Name                  

51.       For IP-Based the physical server should have respectively different IP-Address configuration……...?
Ans.    True

52.       In………web server receives a request; It looks for the host name in the HTTP header.
Ans.    Name Based  

53.       Full Form of SCTP……….. .
Ans.    Stream Control Transmission Protocol                  

54.       Multihoming is commonly used in……….. .
Ans.    Web Management

55.       Full Form of IP………. .
Ans.    Internet Protocol      

56.       Full Form of P2P………. .
 Ans.   Peer To Peer & Point To Point       

57.       A server is a ………..that is running one or more server programs which share their resources with clients.
Ans.    Host               

58.       Which of the following function correct from below…….…. .
Ans.     getenv ( )                   

59.       Which of the following is environment variable……….. .?
Ans.    Script_name

60.       In Xampp, where document root is found……….. .?
Ans.    /xampp/htdocs

61.       PHP was developed by?
Ans.    Rasmus Ledorf

62.       PHP is compatible with?
Ans.    Apache, IIS, Netscape Enterprise Service             

63.       Web server for PHP is required to be rebooted?
 Ans.   False  

64.       PHP is ……….. .
Ans.    Dynamic Scripting Language  & Server Side Scripting

65.       Which is the default port number listened by PHP?
Ans.    8080   

66.       To execute PHP programs ………… is used.
Ans.    http://localhost            or   http://localhost:8080                   

67.       Where should the file of PHP saved?
Ans.    C:/Program Files/Xampp/htdocs    

68.       PHP generally works with which server?
Ans.    Apache                      

69.       Xampp is a ………….. .
Ans.    Control Panel

70.       For viewing server configuration which functions is used?
Ans.    Phpinfo( );                 

71.       Extension used to save the file of PHP?
Ans.    .PHP

72.       A dynamic web page consist of 3components, Which are they?
Ans.    Client  & Server  &  Data Base                   

73.       Database used with PHP is……….. .
Ans.    My SQL                    

74.       Full Form of PHP is ……….. .
Ans.    Personal Home Page

75.       Does PHP support OOPS concept?
Ans.    Yes     

76.       PHP is ……….. Product
Ans.    Freeware                   

77.       HTML can be written in PHP script?
Ans.    Yes

78.       Which of the following is a super global variable?
Ans.    $_GET          

79.       In which version the Zend Engine II was introduced?
Ans.    Version 5

80.       With windows Xp which version of IIS is used?
Ans.    5.1                              

81.       How to configure the IIS?
Ans.    Open Control Panel and in that Administrative Tool                                                        
           
82.       Which function is used to check whether the apache server is properly installed?
Ans.    phpinfo( )

83.       How to configure the Apache server?
Ans.    Open httpd.conf File

84.       The web server is stable what does it means?
Ans.    Server does not require to be restarted

85.       Which version introduced the concept of OOPS?
Ans.    Version 3                   

86.       Next to Resmus Ledorf who introduced newer PHP?
Ans.    Zev Suraski   

87.       Server side code is………
Ans.    Scripting

88.       PHP is freeware, What does it means?
Ans.    Is not a licensed product       and      Easily free of download       

89.       Apache is widely used in which Operating System?
Ans.    UNIX             

90.       From which site PHP can be downloaded?
Ans.     www.php.net/downloads.php        

91.       Apache has special ………… module
Ans.    Compiled                   

92.       What the Apache server consist of?
Ans.    Extensions of language        

93.       Which of following justify why PHP is used?
Ans.    HTML support

94.       Xampp is………. .
Ans.    Control Panel           

95.       Xampp is product of………. .
Ans.    Apache Company    

96.       The term sve means?
Ans.    Service           

97.       Full Form of INI is …………. .
Ans.    Initialization  

98.       Which is configuration file…….. ?
Ans.    .ini, .htaccess 

99.       php.ini-production is used for………. .
Ans.    Environment Testing           

100.     Which of the function to check configurations………. .
Ans.    phpinfo ( )                 

101.     In which folder of PHP .ini file is found………. .
Ans.    (a) Xampp/PHP        

102.     Each statement in .ini file is stared with …………. .
Ans.     ;

103.     For what htaccess is used for………?
Ans.    Custom error and     Set environment variables                                                   

104.     Dot in htaccess makes it ……….. .
Ans.    Hidden                       

105.     Comments can be marked using ………. .
Ans.    #

106.     Which keyword is used for error documents in .htaccess file ……….. .
Ans.     ErrorDocument       

107.     to set environment variable which is the correct way……….. .
Ans.    SetEnv

108.     Variable should always be in ……….. .
Ans.    All uppercase letter   

109.         Web page is created by _____ and ___ language.
Ans.    Markup and HTML Tags

110.         The word web page is used when talking about ______.
Ans.    Scripting Language

111.         Website is a term for _____.
Ans.    Set of Web server

112.         Full form of URL is _____.
Ans.    Uniform Resource Locator

113.         Which of the following is not a search engine?
Ans.    Facebook

114.         Which of the following is tutorial website?
Ans.    www.w3cshcool.com

115.         Static web are the _____ which works only with client.
Ans.    HTML document

116.         Static web pages are also known as _____ or _____.
Ans.    Flat, Stationary

117.         Does non-technical or client can maintain static web?
Ans.    No

118.       A dynamic web page consists of 3 components, which are they?
Ans.    Client, Server, Database

119.       In dynamic web page there is _____ interaction.
Ans.    User and Server

120.       Client side language is understood by ______.
Ans.    Browser

121.       Which of the following is client side language?
Ans.    HTML

122.       Responsibility of client is _____.
Ans.    Send request to server

123.       What can be done using client side language?
Ans.    Validation and Designing

124.       Can client side language interact with database?
Ans.    No

125.       Responsibility of server is ______.
Ans.    Process and request, give response back

126.       From the list below which is not server side language?
Ans.    HTML

127.       Server side language can make use of client side language?
Ans.    Yes

128.       Server side code is ______ independent.
Ans.    Browser

129.       Server side code cannot be visible in ______.
Ans.    View Source

130.       Client side uses _____ language.
Ans.    HTML, JavaScript, Static Web

131.       Server requires ______ after submission of form.
Ans.    Page Refresh

132.       Server can be _____ as well as ______.
Ans.    Hardware, Software and Computer, Computer Application

133.       PHP was developed by?
Ans.    Rasmus Ledorf

134.
       PHP is compatible with?
Ans.    Apache, IIS, Netscape Enterprise Service

135.       Web server for PHP is required to be rebooted?
Ans.    False

136.       PHP is _____.
Ans.    Dynamic Scripting Language, Server Side Scripting

137.       ASP Stands for____.
Ans.    Active Server Page.

138.       ASP and ASP.Net are products of ______ company.
Ans.    Microsoft

139.       Which of the following is sued to write ASP pages?
Ans.    JavaScript or VBScript

140.       ASP.NET is ____ and not _____.
Ans.    Compiled, Interpreted

141.       ASP.Net requires which web server.
Ans.    IIS

142.       ASP.Net does not work for which Operating System?
Ans.    Unix, Linux

143.       Cold Fusion is a ______ based language.
Ans.    Tag

144.       Cold Fusion was introduced by _____.
Ans.    Allaire

145.       Cold Fusion is a product of ______.
Ans.    MacroMedia

146.       JSP full form is _____.
Ans.    Java Server Page

147.       JSP was introduced in the year _____ by _____ company.
Ans.    1999, Sun Micro System

148.       Which web server is used for executing JSP?
Ans.    Apache, Tomcat or Jetty

149.       Client side script executed by _____.
Ans.    Browser 

150    _____ defines a cookie to be sent along with the rest of the HTTP headers.
Ans.    set cookies 

151   Which function tell you whether one string is equal to another?
Ans.    strcmp()

152    Which mathematical function returns the largest integer that less then or equal to that argument?
Ans.   ceil()

153    Which function returns TRUE if the exists and is readable?
Ans.   file_exists()

154    Which function return the number of arguments passed to the function.
 Ans. func_num_args()

155    What is the full form of DOM?
 Ans. Document Object Model

156    Which of the  method is used for date object to find full year?
Ans.  Date(Y) return Full Year

157    GD Library is useful to create the JPG/GIF/PNG image. True or false.
 Ans. True

158    Which function is allocate a color for an image  and return a color identifier.
 Ans.  Color allocate

159    Where the sessions are stored?
 Ans.  In variable

160     Which function is used to set session name.
 Ans. Session_name(“  ”)

161    Which function is used to connect to MySql Database?
 Ans.  Mysql_connect()

162     mysql_fetch_array() returns _______.
 Ans.  Array

163     Which function is used to create a table in mysql.
 Ans.   Create table

164      Which function is used to execute any SQL statement.
 Ans.    Mysql_query()

165      jQuery is a lightweight _______ library that emphasizes interaction between
            JavaScript.
Ans.   Java Script

166      Animation can be done using the JQuery true or false.
 Ans.   True

167     Explain Jquery focus () method.
 Ans.   The Focus Event occurs when element get Focus.

168      Explain jQuery resize method.
Ans. Resize event occurs when Browser window changes in it’s size.

Best Of Luck

Please Share and Comment it. Thank You...