Sunteți pe pagina 1din 3

BCA 4th Semester

030010403: Open Source Web Based Programming

Practical Problem and Assessment Policy


Practical No. 1
Practical Problem

Objective(s)
Pre-requisite
Duration for
completion
PEO(s) to be achieved

PO(s) to be achieved

CO(s) to be achieved

Solution must contain


Nature of submission
References for solving
the problem
Sample Testing data
and outcome
Post Laboratory
questions

Out of Marks
Secured by the
student
Signature
Date

Enrollment No.
Group : C
Consider a website for cricketers of India which shows details about cricketers of
India. The website shall have following pages:
a. Home page which shows login form on one side and list of cricketers on the other
side.
b. Add page for adding new cricketer's details with fields Firstname, Lastname,
Experience, 5 images, expertise, description.
c. Show details page for showing details of particular cricketer.
d. Image gallery page which shows photos of cricketers with his name.
To provide knowledge of creating dynamic web pages
HTML
2
PEO1: To provide sound foundation in the fundamentals of computer application
alongwith analytical, problem-solving, design and communication skill for life-long
learning in chosen field.
PEO2: To provide quality practical skill of tools and technologies to solve industry
problems.
PEO3: To provide depth of knowledge to prepare for further academic study as well
as research.
PO1: Proficiency in and ability to apply knowledge of computer science and
application and mathematics through different equations, probability and statistics.
PO2: Ability to design and develop system, component or process as well as test and
maintain it.
CO-1. Analyze and identify the importance of open source web based
development.
CO-2. Understand the basic concepts of programming with PHP.
Program
Handwritten
http://www.w3schools.com/html/
NA
1.

Which are the possible values in type attribute of <input> tag? Write purpose of
each.
2. Have you used CSS in your program? If yes, for what purpose? If no, is there any
scope to use it?
3. Discuss at least two attributes of form tag with its purpose and possible values.
4. Why HTML is said as pre-requisite to learn and use PHP programming?
Assessment
Solution achieves the desired
Viva
objective(s)
10
5

BCA 4th Semester


030010403: Open Source Web Based Programming

Practical Problem and Assessment Policy


Practical No. 2
Practical Problem

Enrollment No.

Group : C

Q.1 Find and correct the error in the code, if not then write the output:
<?php $a1 = 5; $a2 = 6; $a3 = 7;
$a = ($a1 > $a2 || $a3 > $a2) ;
echo $a; ?>
<?php if(define('PI', 3.14))
echo "constant defined";
else
echo "constant not defined";
echo $PI; ?>
<?php for($i=0;$i<10;$i++){
for($j=9;$j<20;$j++){
if($j == 12)
break;
echo $i."=>".$j."<br>";
} } ?>
<?php
$arr = array('Krishna','Shiva','Ganesha');
$arr[20] = 'Indra';
unset($arr[0]);
$arr[] = 'Vinayaka';
$arr[] = 'Rama';
print_r($arr)
?>
Q.2 Add appropriate code in below given code to get output shown in image:

Code:
<?php
$students = array('13bca001' => array('Student' => 'Rakesh','Marks'=>568,'Out
of'=>700));
$students['13bca002'] = array('Student' => 'Praveen','Marks'=>795,'Out
of'=>900);
$students['13bca003'] = array('Student' => 'Vina','Marks'=>1276,'Out
of'=>1300);
?>
Objective(s)
Pre-requisite
Duration for
completion

To provide knowledge of creating dynamic web pages


PHP Basic concepts - variable, operator, control structure
2

BCA 4th Semester


030010403: Open Source Web Based Programming

Practical Problem and Assessment Policy


PEO(s) to be achieved

PO(s) to be achieved

CO(s) to be achieved

Solution must contain


Nature of submission
References for solving
the problem
Sample Testing data
and outcome
Post Laboratory
questions

Out of Marks
Secured by the
student
Signature
Date

PEO1: To provide sound foundation in the fundamentals of computer application


alongwith analytical, problem-solving, design and communication skill for life-long
learning in chosen field.
PEO2: To provide quality practical skill of tools and technologies to solve industry
problems.
PEO3: To provide depth of knowledge to prepare for further academic study as well
as research.
PO1: Proficiency in and ability to apply knowledge of computer science and
application and mathematics through different equations, probability and statistics.
PO2: Ability to design and develop system, component or process as well as test and
maintain it.
CO-1. Analyze and identify the importance of open source web based
development.
CO-2. Understand the basic concepts of programming with PHP.
Program
Handwritten
Steven Holzner, The complete Reference PHP, McGrow Hill chapter #1,2
NA
1.
2.
3.

Which loop is best suited to access array elements? Why?


Give example and output of heardoc syntax of writing string.
Change the code of 4th question in Q.1 to get below given output:

4.

Change the code of 3rd question in Q.1 to get below given output:

Assessment
Solution achieves the desired
objective(s)
10

Viva
5

S-ar putea să vă placă și