Web Design and PHP (PGDCA)



KERALA STATE RUTRONIX



Web Design and PHP

(PGDCA)

Question code:  B4
Time: 2 hours
Maximum Marks: 100
Note: Write the answers for Questions from 1 to 40 in the MCQ answer sheet

Part - 1 Choose the most appropriate answer
(20 x 1 Mark = 20 Marks)

1) Choose the correct HTML tag to make a text bold.
a) <bb>
b) <bld>
c)<bold>
d) <b>

2) Which of the following is not a browser?
a) Internet Explorer
b) Opera
c) Windows Explorer
d) Firefox

3) Which of the following is an invalid variable name in PHP?
a) $my_Var
b) $myar
C) $my-Var
d) $my12Var

4) PHP statements are terminated by .............
a) .
b) </php>
c) ;
d) None of these

5) What is the correct syntax to create a pop up "Hello World" in JavaScript?
a) response.write("Hello World");
b) document.write("Hello World");
c) alert("Hello World");
d) None of these

6) What is the correct HTML for adding a background color?
a) <body bgcolor="yellow">
b) <body color="yellow">
c) <background>yellow </background>
d) None of these

7) Which of the following HTML tag is used to create unordered list
a) <ul>
b) <list>
c) <Unordered>
d) None of these

8) Which of the following is not used to transmit data from an HTML form to a server?
a) gat
b) post
c) send
d) None of these

9) Which of the following is the attribute of body tag?
a) <hr>
b) <bold>
1) <bgcolor>
d) <table>

10) Which among the following PHP function is used to open files?
a) fopen()
5) flopen()
c) filopen()
c) fileopen()

11) What is the correct HTML for inserting an image
a) <img>image.gif</img>
b) <img src ="image.gif">
c) <img href="image.gif">
d) None of these

12) In an HTML document, appears in the very top line of the users browser
a) HEAD
b) BODY
c) TITLE
d) FORM

13) In HTML, .................. attribute tells the browser how much space to include between the walls of the table and between individual cells.
a) cell padding
b) cell spacing
c) border
d) cols

14) Which of these are all <table> tags?
a) <table><tr><td>
b) <thead><body><tr>
c) <table><tr><tt>
d) <table><head><tfoot>

15) In Javascript, ............. function will print the current webpage when executed.
a) document.print()
b) window.print()
c) window.write()
d) document.write()

16) Which method is more secured to send data in PHP?
a) $_POST
b) &_GET
c) Both a & b
d) None of these

17) in HTML hyperlinks are created using ..
............... tag
a) <href>
b) <link>
c) <ref>
d)<goto>

18) ................. Is a special variable, which can hold more than one value at a time
a) Array
b) Class
c) Structure
d) None of these

19) ......…...... PHP function is used to return the length of string
a) strength()
b) str()
c) len()
d) strlen()

20) What will be the equivalent statement of x+=y?
a) y = y + x;
b) x = x + y;
c) x = y;
d) None of these

Part - II Fill in the blanks
(10 x 1 Mark = 10 Marks)

21) The id selector in CSS is defined using ...…...…..... symbol.

22) ....…............. function is used to check whether a variable is set or not

23) PHP code is executed on the .....…..… side

24) A PHP variable names must be prefixed with a ...................

25) The .....….…….. PHP function is used to set a cookie.

26) In PHP, concatenation operator is represented by .........…...….

27) The ...…......... tag creates a new row of a table

28) .…..…...…... tag is used to place text in subscript position 

29) The tag ................ creates a horizontal line in an HTML page.

30) in HTML, ..................... is an invisible 
character that takes up one space.

Part III State whether True or Falsa
(10 x 1 Mark = 10 Marks)

31) Javascript is a Client side scripting language.

32) <Break> tag is used to break a line

33) PHP is only executed in LINUX

34) HTML is a case sensitive language

35) Dale Flow Diagram also called the bubble chart

36) HTML headings are defined with the <h0> to <h6> tags

37) A CSS comment begins with "/*" and ends with"*/"

38) The set cookie function must appear before the <HTML> tag.

39) The purpose of JavaScript prompt is to gather information from the user

40) in PHP, trim() function is used to remove all whitespace in string

Part - IV Give the output of the codes given below
(5 x 2 Marks = 10 Marks)

41)
<?php
$cars=array ("BMW","swift"," Alto","Toyota");
echo $cars[1]."and".$cars[2]."are Indian Cars.";
?>

42)
<?php
$i=1;
while ($i<=5)
{
echo "The number is ".$i"<br/>";
$i++;
}
?>
43)
<?pap
$x= array ("one","two","three");
foreach ($x as $Value)
{
echo $Value. "<br />";
}
?>

44)
<?php
echo strlen("Kerala State Rutronix");
?>

45)
<?php
for($i=8; $i<=10; $i++)
{
echo "The number is".$i."<br/>";
}

Part - V Give Expansion of the following
(10 x 1 Mark = 10 Marks)

46) PHP

47) HTML

48) PDF

49) CSS

50) WYSIWYG

51) PNG

52) FTP
 
53) GIF

54) RGB

55) JPEG

Part - VI Answer the following questions (Any Six)
(6 x 5 Marks = 30 Marks)

56) What is the difference between GET method and POST method in PHP?

57) What are the various date and time functions used in JavaScript?

58) Explain the various looping statements in PHP with its syntax and give examples for each

59) Explain frames and their attributes in HTML.

60) What is the use of LINK, VLINK and ALINK attributes in an HTML document

61) What are the various list elements in HTML?

62) Name five arithmetic operators in JavaScript and illustrate with examples

63) Explain the three parts in CSS syntax

Part VII Answer the following (Any One)
(1 x 10 Marks 10 Marks)

64) Write a Javascript code to redirect a page 5 seconds after the page is loaded to another page "sample.php"

65) Write a PHP program to display data stored in a table sorted by studName column.
Table Names studentDetails and its structure is as shown below.

Column
Type
StudName
Varchar(20)
Age
Int(5)
Course
Int(10)
DOB
Date

Comments

Popular posts from this blog

PDCFA Practical Exam Previous Questions

PDCFA Practical Previous Questions

PDCFA - Accounting Previous Questions