Internet programming and web server management. UE Past Papers Questions.


View All Courses

(1362) Question Category: Practical

Write an object oriented PHP script that accepts two numbers from the user and checks if the sum of the two numbers is the prime number that is greater than 2000.

  1. Make sure that the user enters the numbers that are below 2000 and the numbers are NOT prime numbers. Display appropriate message for each condition using PHP echo tag.
  2. Allow the user to enter the new numbers every time she/he tries to enter the numbers without refreshing the page.

Answer / Solution

UNSOLVED

(1363) Question Category: Practical

Write the output of the followinf code

<?php

$a=4;$b=7;

do{

++$a;

$b--;

}while($b>1);

printf(“%d”,$a);

?>

Answer / Solution

UNSOLVED

(1364) Question Category: Practical

Write the output of the code below

<?php

$a=5;

$b=0;

while($b<6){

$a++;

++$b;

if($b%2==0)

$n=$a+$b;

}

printf(“%d”,$n);

?>

Answer / Solution

UNSOLVED


View All Courses
News & Updates | Recently
Recent Updates
questions

2024-05-02: questions

Questions Uploaded on 2024-05-02


questions

2024-03-29: questions

Questions Uploaded on 2024-03-29


questions

2024-03-19: questions

Questions Uploaded on 2024-03-19

Dismissible in 10 seconds