Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

MODULE 1

SET 1

INTRODUCTION
INSYSSKY develops custom softwares catering to the client’s demand using the most latest
technologies. In addition to this, it gives technical consultancy and system maintenance
services to its clients.

WHAT IS THIS TASK ALL ABOUT


This booklet comprises 10 questions and candidates need to attempt any 6 questions. Each
question carries 5 marks. Total time allotted is 2 hours.

1. Create a php program to construct the following pattern,using nested for loop

***************

*************

***********

*********

*******

*****

***

2. Create a PHP script which displays the capital and country name from the below array $ceu.
Sort the list by the language of the state.
$ceu = array( "Italy"=>"Rome", "Luxembourg"=>"Luxembourg", "Belgium"=> "Brussels",
"Denmark"=>"Copenhagen", "Finland"=>"Helsinki", "France" => "Paris",
"Slovakia"=>"Bratislava", "Slovenia"=>"Ljubljana", "Germany" => "Berlin", "Greece" =>
"Athens", "Ireland"=>"Dublin", "Netherlands"=>"Amsterdam", "Portugal"=>"Lisbon",
"Spain"=>"Madrid", "Sweden"=>"Stockholm", "United Kingdom"=>"London",
"Cyprus"=>"Nicosia", "Lithuania"=>"Vilnius", "Czech Republic"=>"Prague",
"Estonia"=>"Tallin", "Hungary"=>"Budapest", "Latvia"=>"Riga", "Malta"=>"Valetta",
"Austria" => "Vienna", "Poland"=>"Warsaw") ;

Sample Output :

The capital of the Netherlands is Amsterdam.

3. Create a table EMPLOYEE DETAILS having columns, EMP_ID, EMP_NAME,


EMP_BASICSALARY, EMP_DA, EMP_TA, EMP_DATE_OF_JOINING. EMP_ID should
be set as the primary key.Ensure that no value should be NULL.

4. How to print following number table using php:

5. Write a PHP program which iterates the integers from 1 to 100. For multiples of three print
"Hello" instead of the number and for the multiples of six print "World". For numbers which
are multiples of both three and six print "HelloWorld".
6. Write a query to update the value of the column ‘BASIC SALARY’ where EMP_ID="1"
from the Table EMPLOYEE DETAILS

7. Write a PHP script that creates the table(using LOOP).

8. Create a contact us form with 3 fields (name, email, message) and store in Database with all
form data.

9. Write a SQL statement to insert multiple rows under the column names,
ORIGINAL_PRICE, PROMOTION_NAME, DISCOUNT, MATERIAL_NAME,
NET_PRICE with values in a table named SALES_PROMOTION.

10. Write a SQL statement to drop the index indx_job_id from job_history table.

SET 2

1. Create a php program to construct the following pattern,using nested for loop

12
123
1234
12345
123456
1234567
12345678

2. Write a php program which iterates numbers from 1 to 100.For the numbers multiple of
5,print Five instead of the number,for numbers multiple of 8,print Eight instead of the number
and the for the number which is the multiple of 10,print Multiple of 10.

3. Write a program to create Chess board in PHP using for loop

Description:

Write a PHP program using a nested for loop that creates a chess board.

Conditions:
● You can use an html table having width=”400px” and take “30px” as cell height and
width for check boxes.

4. Write a SQL statement to drop the index indx_job_id from job_history table.

5. Write a PHP program which iterates the integers from 1 to 50. For multiples of three print
"Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are
multiples of both three and five print "FizzBuzz".

6. Create a table EMPLOYEE DETAILS having columns, EMP_ID, EMP_NAME,


EMP_BASICSALARY, EMP_DA, EMP_TA, EMP_DATE_OF_JOINING. EMP_ID should be
set as the primary key.Ensure that no value should be NULL.

7. Creating simple login form with 2 input fields(username/password)

· With GET or POST method


· Do server side validation
· Authentication of supplied user(must have a ready database in mysql)
8. Write a program to drop the column MATERIAL_NAME FROM table
‘STOCK_DETAILS’ and then insert a new column STOCK_NAME to the table.

9. Create a PHP script which displays the capital and country name from the below array
$ceu. Sort the list by the language of the state.

$ceu = array( "Italy"=>"Rome", "Luxembourg"=>"Luxembourg", "Belgium"=> "Brussels",


"Denmark"=>"Copenhagen", "Finland"=>"Helsinki", "France" => "Paris",
"Slovakia"=>"Bratislava", "Slovenia"=>"Ljubljana", "Germany" => "Berlin", "Greece" =>
"Athens", "Ireland"=>"Dublin", "Netherlands"=>"Amsterdam", "Portugal"=>"Lisbon",
"Spain"=>"Madrid", "Sweden"=>"Stockholm", "United Kingdom"=>"London",
"Cyprus"=>"Nicosia", "Lithuania"=>"Vilnius", "Czech Republic"=>"Prague",
"Estonia"=>"Tallin", "Hungary"=>"Budapest", "Latvia"=>"Riga", "Malta"=>"Valetta",
"Austria" => "Vienna", "Poland"=>"Warsaw") ;

Sample Output :

The capital of the Netherlands is Amsterdam.


10. Write the SQL statement Insert values Mark, 11,A,80,100, Sam,13,B,78,100 ,
Liza,8,C,76,100 , Niki,21,C,44,100, Suzi,32,B,34,100 into the column names
NAME,ROLL_NUMBER,SECTION, MARKS_OBTAINED, TOTAL MARKS respectively
into the table STUDENT DETAILS and then display details of those students who scored
more than 70.

You might also like