WorksheetsWAD
Total questions: 53
Worksheet time: 2hrs 46mins
Which tag is used for php
<?php
?>
<style>
<php ?>
<php
/php>
What are the two types of array in php
Indexed, sequence
Associative, sequence
Indexed, associative
None
In php the keyword to be used before function name is
Function
Static
function
FUNCTION
Choose the correct option About HTML elements
Elements in HTML describes the way of presenting the content in the browser.
All elements must have atleast one attribute associated with it.
Element names are case in-sensitive
None of the above
Which one of the following is a form element?
text box.
radio button.
submit button.
All of these.
Which one of the following is incorrect?
<label> tag in HTML is used for creating a tag for form elements.
id attribute is used with <label> to reduce the clickable area of form elements
<label> can be used to increase the clickable area of buttons
none of the above
Choose the correct option.
Default method in HTML is GET or POST
Use of method attribute determines by which method the datas in the form will be submitted.
Method can be POST or GET.
Default method in HTML is GET.
Which tag indicates the presence of javascript
<css>
<script type="text/javascript">
<?php>
<style>
When the javascript code is written inside html it will be saved as
.html
.css
.js
none of the above
Javascript is
client side scripting language
server side scripting language
both client and server side scripting language
none of the above
Javascript is _________ language.
Programming
Scripting
Application
applet
JavaScript is ______ Side Scripting Language.
JSP
Servlet
Server
Browser
JavaScript Code can be called by using _________.
RMI
Function / Method
Triggering Event
Preprocessor
What does DHTML stands for?
Document HTML
Data-Binding HTML
Dynamic HTML
Digital HTML
Which kind of scripting language is DHTML?
Client side
Server side
Both 1 & 2
None of the above
What kind of pages get created from DHTML?
Static
Dynamic
Hyper
Global
The APPLET tag is used to start an applet from both an HTML document and from an applet viewer.
a. True
b. False
What invokes immediately after the start() method and also any time the applet needs to repaint itself in the browser?
a. stop()
b. init()
c. paint()
d. destroy()
What is a host?
A person hosting a party
A computer which stores web resources
A computer which services a person
A computer which stores data
How can you create an e-mail link?
<mail href="a@b">
<mail>a@b</mail>
<a href="a@b">
<a href="mailto:a@b.com">
The tag that signals to a computer that the file it is reading is an HTML document is _____________ .
<web>
<!DOCTYPE html>
<head>
<html>
1. All variables in PHP start with which symbol?
$
!
&
How do you get information from a form that is submitted using the "get" method?
Request.QueryString;
$_GET[];
Request.Form;
Which one of these variables has an illegal name?
$my-Var
$myVar
$my_Var
Which method is more secure GET and POST method ?
GET
POST
PHP is a _______________________ language commonly used for web applications.
Server Side Scripting Language
Client Side Scripting Language
Programming Language
UI Development Programming
PHP variables are_____ ?
Multitype variables
Single type variable
Double type variables
Triple Type Variable
The simplest data-storing structure in any programming language
Lists
Array
Queue
List
A programming language used for webpage functionality such as interactivity, data processing, animation, and development of purpose built apps such as mobile and desktop apps and more.
HTML5
CSS
JS
C#
Which of the following is NOT a valid starting character for JS variable names?
Uppercase Letter
Lowercase Letter
Dollar Sign
Underscore
Which of the following is NOT a valid component of a function declaration?
Function keyword
Function name
Pair of Square Braces
Pair of Curly Braces
Which of the following is a symbol that must NOT be present in any JS Variable?
A
z
_
%
Which of the Tag Pair is used to enable JS script writing in HTML?
<br>
<script>
<JS>
<code>
Which funtion is used when a JS application must ensure that the user gets the information that is displayed?
Alert box
Prompt Box
Combo Box
Confirm Box
In JS used to write comments
++
=
//
--
What are the two types of array in php
Indexed, sequence
Associative, sequence
Indexed, associative
None
$a=array("Timmy","Jimmy");
Is an example of
Indexed array
Associative array
Sequence array
None
$a=array(10=>"Jimmy",20=>"mummy");
Is an example of
Sequence array
Indexed array
Associative array
None
<?php
function add()
{
global $a=10;
echo $a;
}
add();
$a+=10;
?>
Output is
10
15
20
30
$a="deepan";
$b="Deepan";
if(strcmp($a,$b))
{
echo "equal";
}
else{
echo " not equal";}
Output is
Equal
Not equal
Error
None
$a="IT is favorite department";
$b=sub_string($a,"bes",7,14);
echo $b;
Output is
IT is best department
IT is bes department
Error
IT is favorite department
Choose the appropriate tag to get the content in browser as follows:
<html>
<body>
______
Johny Johny!
Yes Papa
______
</body>
</html>
Johny Johny!
Yes Papa
(a)
Choose the correct option About HTML elements
Elements in HTML describes the way of presenting the content in the browser.
All elements must have atleast one attribute associated with it.
Element names are case in-sensitive
None of the above
Which one of the following is a form element?
text box.
radio button.
submit button.
All of these.
<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>
<?php
echo "Hello World!";
?>
</body>
</html>
My first PHP page
Hello World!
Hello World!
My first PHP page
echo "Hello World!";
<!DOCTYPE html>
<html>
<body>
<?php
ECHO "Hello World!<br>";
echo "Hello World!<br>";
EcHo "Hello World!<br>";
?>
</body>
</html>
The Result..?
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
PHP scripts are executed on the server
True
False
<!DOCTYPE html>
<html>
<body>
<?php
$color = "red";
echo "My car is " . $color . "<br>";
echo "My house is " . $COLOR . "<br>";
echo "My boat is " . $coLOR . "<br>";
?>
</body>
</html>
the result..?
My car is red
My house is
My boat is
My car is red
My house is
My car is red
<!DOCTYPE html>
<html>
<body>
<?php
// You can also use comments to leave out parts of a code line
$x = 5 /* + 15 */ + 5;
echo $x;
?>
</body>
</html>
the result..?
10
5
15
<!DOCTYPE html>
<html>
<body>
<?php
$txt = "Hello world!";
$x = 5;
$y = 10.5;
echo $txt;
echo "<br>";
echo $x;
echo "<br>";
echo $y;
?>
</body>
</html>
the result..?
Hello world!
5
10.5
Hello world!
5
10.5
